Skip to content

Commit 98275bc

Browse files
committed
changes
1 parent 320984d commit 98275bc

File tree

5 files changed

+154
-8
lines changed

5 files changed

+154
-8
lines changed

themes/elby/assets/css/core.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ b {
1919

2020
/* Code */
2121

22-
code, pre > * { white-space: pre-wrap;
23-
}
2422

25-
pre, pre > code {
26-
padding: .7em;
27-
margin: .7em;
28-
letter-spacing: -.07rem;
23+
code {
24+
color: var(--is-code-color);
25+
white-space: pre;
26+
padding: 2px;
27+
margin: 2px;
28+
font-weight: var(--code-text);
2929
}
3030

3131

@@ -87,4 +87,4 @@ table > tbody > tr {
8787

8888
ul, ol { padding-inline-start: 1vw; }
8989

90-
ol > li { list-style: decimal inside; }
90+
:is(ol,ul) > li { margin-left: 1vw; } /* Flexbox Layout System */

themes/elby/assets/css/layout.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,15 @@
159159
overflow-x: scroll;
160160
}
161161

162-
.slide > * {
162+
.slide-reverse {
163+
display: flex;
164+
flex-flow: row-reverse nowrap;
165+
scroll-snap-type: x mandatory;
166+
overflow-x: scroll;
167+
}
168+
169+
:is(.slide, .slide-reverse) > * {
163170
flex-shrink: 0;
164171
scroll-snap-align: center;
165172
}
173+

themes/elby/assets/css/objects.css

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
:is(.content) > :is(h1, h2, h3, h4, h5, h6) { margin-top: var(--xxxlarge-text); }
44

5+
.content {
6+
overflow-x: hidden;
7+
}
8+
9+
.content img {
10+
max-width: 100%;
11+
}
12+
13+
.content pre {
14+
max-width: 100%;
15+
white-space: pre-wrap;
16+
padding: 1ch;
17+
overflow-x: scroll;
18+
}
19+
520
/* breadcrumb */
621

722
.breadcrumbs {
@@ -46,6 +61,20 @@ button, .button {
4661
color: inherit;
4762
}
4863

64+
/* Modals */
65+
66+
.modal {
67+
position: fixed;
68+
z-index: 1;
69+
top: var(--modal-top);
70+
bottom: var(--modal-bottom);
71+
right: var(--modal-right);
72+
left: var(--modal-left);
73+
width: 100%;
74+
height: 100%;
75+
overflow-y: scroll;
76+
}
77+
4978
/* Images */
5079

5180
.image {
@@ -92,4 +121,67 @@ button, .button {
92121
float: left;
93122
margin-left: -1ch;
94123

124+
}
125+
126+
/* Notice Utilities */
127+
128+
129+
.attention {
130+
background-color: var(--is-attention-color);
131+
color: var(--is-attention-text);
132+
}
133+
134+
.danger {
135+
background-color: var(--is-danger-color);
136+
color: var(--is-danger-text);
137+
}
138+
139+
.info {
140+
background-color: var(--is-info-color);
141+
color: var(--is-info-text);
142+
}
143+
144+
.note {
145+
background-color: var(--is-note-color);
146+
color: var(--is-note-text);
147+
}
148+
149+
.success {
150+
background-color: var(--is-success-color);
151+
color: var(--is-success-text);
152+
}
153+
154+
.tip {
155+
background-color: var(--is-tip-color);
156+
color: var(--is-tip-text);
157+
}
158+
159+
.warning {
160+
background-color: var(--is-warning-color);
161+
color: var(--is-warning-text);
162+
}
163+
164+
/* Dropdowns */
165+
166+
.dropdown {
167+
display: inline-flex;
168+
position: relative;
169+
vertical-align: top;
170+
}
171+
172+
.dropdown-content {
173+
display: none;
174+
position: absolute;
175+
z-index: 1;
176+
}
177+
178+
.dropdown:hover .dropdown-content {
179+
display: block;
180+
}
181+
182+
/* Tables */
183+
184+
.tableWrapper {
185+
overflow-x: auto;
186+
max-width: 100%;
95187
}

themes/elby/assets/css/root.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--xlarge-text: calc(16px + 3vw);
1111
--xxlarge-text: calc(16px + 4vw);
1212
--xxxlarge-text: calc(16px + 6vw);
13+
--code-text: var(--small-text);
1314

1415
--spacing-1: 90;
1516
--spacing-2: 60;
@@ -23,6 +24,24 @@
2324
--is-text-color-inverted: #ffffff;
2425
--is-header-text-color: #000000;
2526
--is-header-text-color-inverted: #ffffff;
27+
--is-code-color: var(--is-text-color-inverted);
28+
29+
--is-attention-color: var(--is-pink);
30+
--is-attention-text: var(--is-text-color-inverted);
31+
--is-info-color: var(--is-blue);
32+
--is-info-text: var(--is-text-color-inverted);
33+
--is-note-color: var(--is-yellow);
34+
--is-note-text: var(--is-text-color-inverted);
35+
--is-success-color: var(--is-green);
36+
--is-success-text: var(--is-text-color-inverted);
37+
--is-warning-color: var(--is-orange);
38+
--is-warning-text: var(--is-text-color-inverted);
39+
--is-tip-color: var(--is-purple);
40+
--is-tip-text: var(--is-text-color-inverted);
41+
--is-danger-color: var(--is-red);
42+
--is-danger-text: var(--is-text-color-inverted);
43+
44+
2645
--is-shadow-color: var(--is-dark-gray);
2746
--is-highlight-color: var(--is-purple);
2847
--is-red: #ff0000;
@@ -61,6 +80,11 @@
6180
--layer-angle-1: 1deg;
6281
--layer-angle-2: -1deg;
6382

83+
--modal-top: 0;
84+
--modal-bottom: 0;
85+
--modal-left: 0;
86+
--modal-right: 0;
87+
6488
--ghoul-1: 10px;
6589
--ghoul-2: 20px;
6690
--ghoul-3: 30px;

themes/elby/assets/css/traits.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@
103103
.pinned-bottom {
104104
align-self: flex-end;
105105
}
106+
107+
.pinned-end {
108+
float: right;
109+
}
110+
111+
.pinned-start {
112+
float: left;
113+
}
114+
106115
.stretched {
107116
display: flex;
108117
align-self: stretch;
@@ -381,4 +390,17 @@
381390

382391
.fill-h {
383392
height: max-content;
393+
}
394+
395+
/* horizontal scroll */
396+
397+
.h-scroll {
398+
height: 600px;
399+
overflow-y: scroll;
400+
}
401+
402+
/* absolute */
403+
404+
.absolute {
405+
position: absolute;
384406
}

0 commit comments

Comments
 (0)