-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdoc-utils.css
210 lines (201 loc) · 4.08 KB
/
doc-utils.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
:root {
--header-index: 2;
--footer-index: 2;
--aside-index: 1;
--toTop-btn-index: 2;
--code-wrapper: #2d2d2d;
}
.flex-align-center {
display: flex;
align-items: center;
}
.flex-col {
display: center;
flex-direction: column;
}
.center {
display: flex;
justify-content: center;
align-items: center;
}
.component-container {
padding: 1.6rem;
margin: 3rem 0;
box-shadow: 0 0 10px -6px var(--primary-text);
border: 1px solid var(--secondary-text);
border-radius: 0.4rem;
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
}
.component-desc {
margin-top: 3.2rem;
}
.code_wrapper {
background: var(--secondary-color);
}
/* header */
.cl-header {
display: flex;
align-items: center;
justify-content: space-between;
grid-area: header;
background: var(--light-text);
color: var(--secondary-color);
padding: 1.6rem 5.4rem 1.6rem 4rem;
box-shadow: 0 0 10px -4px var(--secondary-text);
z-index: var(--header-index);
}
.btn.hamburger {
margin-right: 2rem;
display: none;
}
.hamburger i {
font-size: 1.2em;
}
.artsy-logo {
height: 5rem;
}
.right-side {
display: flex;
align-items:center;
gap: 2rem;
}
.mode-toggle {
cursor: pointer;
}
/* footer */
.cl-footer {
grid-area: footer;
min-width: 100vw;
padding: 1rem;
flex-direction: column;
gap: 1rem;
background: var(--light-text);
z-index: var(--footer-index);
}
.social-logos i,
.heart-logo {
width: 2rem;
height: 2rem;
display: grid;
place-content: center;
margin: 0.5rem;
}
.heart-logo {
color: var(--input-err);
}
/* aside */
.cl-aside {
grid-area: aside;
display: flex;
flex-direction: column;
padding: 3rem 0 0 6rem;
justify-content: center safe;
overflow: auto;
min-width: 30rem;
z-index: var(--aside-index);
}
.cl-aside a {
font-size: 1.8rem;
padding: 0.8rem;
}
.cl-aside a {
color: var(--secondary-color);
transition: padding 1s ease-out;
text-transform: capitalize;
}
.cl-aside > a:hover {
color: var(--primary-color);
padding-left: 2rem;
}
.active-tab {
cursor: pointer;
text-decoration: underline solid var(--primary-color);
text-underline-position: under;
}
/* main */
.cl-main {
grid-area: main;
overflow-y: auto;
padding: 5rem;
}
/* scrollbar css */
.cl-aside::-webkit-scrollbar,
.cl-main::-webkit-scrollbar {
width: 1rem;
}
.cl-aside::-webkit-scrollbar-thumb,
.cl-main::-webkit-scrollbar-thumb {
background: var(--secondary-color);
border-radius: 1rem;
}
.cl-body {
height: 100vh;
max-width: 100%;
background: var(--light-bg);
color: var(--primary-text);
display: grid;
grid-template-columns: auto auto repeat(4, 1fr);
grid-template-rows: auto 1fr 1fr 1fr 1fr auto;
grid-template-areas:
"header header header header header header"
"aside aside main main main main"
"aside aside main main main main"
"aside aside main main main main"
"aside aside main main main main"
"footer footer footer footer footer footer";
}
.list {
display: flex;
flex-direction: column;
margin: auto;
gap: 1rem;
}
.highlight-text {
background: var(--primary-color);
padding: 0 1rem;
color: var(--light-text);
border-radius: 1rem;
}
.to-top-btn {
position: absolute;
bottom: 5rem;
right: 5rem;
z-index: var(--toTop-btn-index);
}
.to-top-btn .fa-rocket {
transform: rotateZ(-45deg);
}
/* medeia queries */
@media screen and (max-width: 768px) {
.cl-body {
grid-template-columns: repeat(6, 1fr);
grid-template-areas:
"header header header header header header"
"main main main main main main"
"main main main main main main"
"main main main main main main"
"main main main main main main"
"footer footer footer footer footer footer";
}
.cl-aside {
position: absolute;
left: 0;
top: 7rem;
background: var(--light-bg);
height: calc(100vh - 16rem);
transform: translateX(-100%);
transition: translateX 2s ease-in;
}
.cl-aside.show {
transform: translateX(0);
transition: transform 1s ease-in;
}
.btn.hamburger {
display: flex;
}
.cl-header h3 {
display: none;
}
}