-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
281 lines (234 loc) · 7.14 KB
/
styles.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
body {
font-family: 'Hubot Sans', sans-serif; /* Changed to Hubot Sans */
margin: 0;
display: flex;
height: 100vh; /* Set the body to take up the full viewport height */
overflow: hidden; /* Prevent scrolling on body */
}
.container {
display: flex;
width: 100vw; /* Full width of the viewport */
height: 100vh; /* Full height of the viewport */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.sidebar {
width: 25%; /* Sidebar takes 25% of the page */
background-color: white; /* Sidebar color */
padding: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow-y: auto; /* Allow vertical scrolling */
overflow-x: hidden; /* Prevent horizontal scrolling */
box-sizing: border-box; /* Ensure padding is included in the width */
scrollbar-width: none; /* Hide scrollbar in Firefox */
}
.sidebar::-webkit-scrollbar {
display: none; /* Hide scrollbar in Chrome, Safari, and Edge */
}
/* Sidebar button grid (2x2) styling */
.sidebar-button-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* 2 columns */
grid-gap: 10px; /* Space between buttons */
margin-bottom: 20px; /* Space below button grid */
}
.sidebar-button {
background-color: #003366; /* Dark blue background */
color: white; /* White text */
border: none; /* Remove border */
border-radius: 5px; /* Rounded corners */
padding: 15px;
cursor: pointer;
text-align: center;
font-size: 16px; /* Adjust font size */
font-weight: bold;
underline: none;
}
.sidebar-search-container {
flex: 0 0 25%; /* Set to take 25% of sidebar */
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 20px; /* Add spacing below the container */
}
.search-bar {
width: 95%; /* Full width within the container */
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Sidebar content styling */
.sidebar-content {
flex: 0 0 75%; /* The rest of the sidebar (75%) is for other elements */
}
.ren-button {
background-color: #47B5FF; /* Light blue background for R En button */
}
.menu {
margin: 10px 0;
}
.submenu {
list-style-type: none;
padding: 0;
display: none;
padding-left: 20px; /* Indentation for submenu items */
}
.submenu li {
margin: 10px 0;
}
.menu-header {
cursor: pointer; /* Change cursor to pointer for better UX */
display: flex;
justify-content: space-between; /* This pushes the menu text to the left and the indicator to the right */
align-items: center; /* Vertically aligns the text and the indicator */
background-color: transparent;
}
.menu-indicator {
font-size: 18px;
margin-left: auto; /* Ensures that all indicators are aligned at the extreme right */
color: black;
}
.menu-link {
color: black;
text-decoration: none; /* This removes the underline */
}
.menu-link.selected {
color: #47B5FF; /* Color when selected */
}
.main-content-container {
display: flex;
flex-direction: row;
width: 70%; /* This contains both the main content and the empty space on the right */
box-sizing: border-box;
padding-left: 0; /* No padding directly here to allow better control inside the main content */
gap: 5%; /* Leave a 5% space between the sidebar and the main content */
}
.main-content {
width: 60%; /* Main content takes up 60% of the total width */
padding: 20px;
overflow-y: scroll; /* Allow vertical scrolling for main content */
overflow-x: hidden; /* Prevent horizontal scrolling */
display: flex; /* Use flexbox */
flex-direction: column; /* Stack content vertically */
box-sizing: border-box; /* Ensure padding is included in the width */
height: 100%;
scrollbar-width: none; /* Hide scrollbar in Firefox */
margin-left: 5%; /* Add 5% space between the sidebar and the main content */
}
.main-content::-webkit-scrollbar {
display: none; /* Hide scrollbar in Chrome, Safari, and Edge */
}
/* Main content elements take 60% of the available space */
.main-content-block {
flex: 0 0 60%;
margin-bottom: 20px; /* Add spacing between elements */
}
.right-empty-space {
width: 5%; /* Empty space on the right of the main content */
}
pre {
background-color: #f0f0f0;
padding: 10px;
overflow: auto;
position: relative; /* Add position relative for button positioning */
width: 100%; /* Ensure pre elements take up the space as needed */
color: black;
}
.copy-button {
position: absolute; /* Position button at the top right */
top: 10px;
right: 10px;
padding: 5px 10px;
background-color: #47B5FF;
color: black;
border-radius: 4px;
cursor: pointer;
border: 2px solid black;
}
.text-button {
background: none; /* Remove background */
border: none; /* Remove border */
color: black; /* Make the text black */
cursor: pointer; /* Show pointer on hover */
font-size: 16px; /* Adjust font size */
padding: 0; /* Remove default padding */
margin-right: 10px; /* Space between buttons */
text-align: left;
}
.text-button.selected {
color: #47B5FF; /* Color when selected */
}
.text-button:hover {
color: #47B5FF; /* Color when selected */
}
.text-button.scrolled {
color: #47B5FF; /* Change text color */
}
.fixed-buttons {
display: flex; /* Use flexbox layout */
flex-direction: column; /* Stack buttons vertically */
gap: 10px;
position: absolute; /* Keep buttons fixed */
top: 10px; /* Adjust as needed */
right: 20px; /* Adjust as needed */
z-index: 1000; /* Ensure buttons are on top */
transition: top 0.3s ease; /* Smooth transition effect */
}
.fixed-buttons.scrolled {
color: #47B5FF; /* Change text color */
}
/* Apply to all paragraphs before or after the <pre> block */
pre + p,
pre ~ p,
p + pre,
p ~ pre {
width: 100%;
margin: 20px 0;
}
/* Apply to all headings before or after the <pre> block */
pre + h1, pre + h2, pre + h3, pre + h4, pre + h5, pre + h6,
pre ~ h1, pre ~ h2, pre ~ h3, pre ~ h4, pre ~ h5, pre ~ h6,
h1 + pre, h2 + pre, h3 + pre, h4 + pre, h5 + pre, h6 + pre,
h1 ~ pre, h2 ~ pre, h3 ~ pre, h4 ~ pre, h5 ~ pre, h6 ~ pre {
width: 100%;
margin: 20px 0;
}
button {
cursor: pointer;
margin-top: 10px;
}
.parent {
height: 100vh;
}
.sidebar, .main-content {
height: 100%;
}
.fixed-buttons .text-button.active {
color: #47B5FF;
}
.fixed-buttons .text-button {
color: black; /* Default color */
transition: color 0.3s ease;
}
/* Add media queries for better responsiveness */
@media (min-width: 1024px) {
.container {
padding: 20px;
}
.sidebar {
width: 25%;
}
.main-content {
max-width: 1400px; /* Increase the maximum width on larger screens */
}
}
@media (max-width: 768px) {
.sidebar {
width: 35%;
}
.main-content {
padding: 10px;
}
}