forked from aniketn7/DBK_stylebook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
129 lines (111 loc) · 2.48 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.navbar {
background-color: #e21833;
}
.nav-title {
color: rgb(255, 255, 255);
}
.outer-letter {
text-align: center;
}
.nav-btn {
background-color: black;
}
.label {
color: red;
}
.label-div {
margin: 7px;
}
.edit-div {
margin: 7px;
padding: 7px;
}
.grow-wrap {
/* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
display: grid;
}
.grow-wrap::after {
/* Note the weird space! Needed to preventy jumpy behavior */
content: attr(data-replicated-value) " ";
/* This is how textarea text behaves */
white-space: pre-wrap;
/* Hidden from view, clicks, and screen readers */
visibility: hidden;
}
.grow-wrap > textarea {
/* You could leave this, but after a user resizes, then it ruins the auto sizing */
resize: none;
/* Firefox shows scrollbar on growth, you can hide like this. */
/* overflow: hidden; */
}
.grow-wrap > textarea,
.grow-wrap::after {
/* Identical styling required!! */
border: 1px solid black;
padding: 0.5rem;
font: inherit;
/* Place on top of each other */
grid-area: 1 / 1 / 2 / 2;
}
mark {
background-color: rgba(255, 255, 0, 0.5); /* highlighter yellow with 50% transparency */
padding: 0;
}
.flag-button {
background-color: black;
color: white;
border: none;
padding: 8px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
transition-duration: 0.4s;
}
.flag-button:hover {
background-color: white;
color: black;
}
.sticky-header {
position: -webkit-sticky;
position: sticky;
top: 116px; /* Adjust according to your nav area height */
background-color: white;
z-index: 100;
}
.sticky-navbar {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1000;
/* Add any other desired styling for the navbar */
}
.favorite-icon {
margin-right: 10px;
cursor: pointer;
}
/* Letter NavBar */
.sticky-nav {
position: sticky;
top: 72px;
display: flex;
flex-wrap: wrap;
justify-content: center;
background-color: #e21833;
padding: 8px 16px;
z-index: 1000;
}
.sticky-nav a {
text-decoration: none;
color: white;
margin: 0 0.5rem;
padding: 0.2rem 0.4rem;
border-radius: 0.2rem;
transition: background-color 0.2s;
}
.sticky-nav a:hover {
background-color: white;
color: #e21833;
}