Skip to content

Commit a03f59f

Browse files
committed
fix #104
1 parent c9b21d2 commit a03f59f

File tree

8 files changed

+64
-31
lines changed

8 files changed

+64
-31
lines changed

Assets/css/Admin.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/css/Main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/css/Main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SwiftinitPages/Swiftinit.VersionedPage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ extension Swiftinit.VersionedPage
121121
}
122122
$0[.div] { $0.class = "sidebar" } = sidebar.map { _ in "" }
123123
}
124-
body[.div]
124+
body[.div, { $0.class = "app" }]
125125
{
126126
$0[.main, { $0.class = "content" }] { self.main(&$0, format: format) }
127127
$0[.div] { $0.class = "sidebar" } = sidebar

Sources/SwiftinitRender/Pages/Swiftinit.ApplicationPage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extension Swiftinit.ApplicationPage
6868
}
6969
}
7070
}
71-
body[.div]
71+
body[.div, { $0.class = "app" }]
7272
{
7373
$0[.main, { $0.class = "content" }] { self.main(&$0, format: format) }
7474
}

Stylesheets/Main.scss

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ body
3939
}
4040
}
4141

42-
header.app div.content,
43-
main.content
42+
> *.app > *.content
4443
{
4544
flex: 0 1 48rem;
4645

4746
overflow: hidden;
4847
overflow-wrap: break-word;
4948
}
5049

51-
header.app div.content > *,
52-
main.content
50+
> header.app > div.content > *,
51+
> div.app > main.content
5352
{
5453
padding-left: 1rem;
5554
padding-right: 1rem;
@@ -67,23 +66,20 @@ body
6766
margin-top: 6rem;
6867
}
6968

70-
body > *
69+
body > *.content > *.sidebar
7170
{
72-
> *.sidebar
73-
{
74-
display: block;
75-
flex: 0 0 16rem;
76-
width: 16rem;
77-
}
71+
display: block;
72+
flex: 0 0 16rem;
73+
width: 16rem;
7874
}
7975

80-
body header.app div.content
76+
body > header.app > div.content
8177
{
8278
// 48rem + 4 rem + 1 rem = 53rem
8379
flex: 0 1 53rem;
8480
}
85-
body header.app div.content > *,
86-
body main.content
81+
body > header.app > div.content > *,
82+
body > div.app > main.content
8783
{
8884
padding-left: 4rem;
8985
}

Stylesheets/_Colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $light-snippet-line-number: rgb(192, 192, 192);
1818

1919
$light-swift: rgb(134, 134, 134);
2020
$light-accent-comment: $light-foreground-semi;
21+
$light-accent-barbie-pink-semi: rgb(255, 136, 176);
2122
$light-accent-barbie-pink: rgb(255, 86, 158);
2223
$light-accent-barbie-pink-shadow: rgb(209, 23, 104);
2324

Stylesheets/_Tables.scss

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,14 @@ section.details
147147
list-style: none;
148148
padding: 0;
149149
display: grid;
150-
grid-gap: 0.5rem;
150+
151+
grid-gap: 0.25rem;
152+
153+
@media only screen and (min-width: 50rem)
154+
{
155+
grid-gap: 0.5rem;
156+
}
157+
151158
grid-template-columns: repeat(7, 1fr);
152159

153160
li
@@ -160,7 +167,12 @@ section.details
160167
justify-content: space-between;
161168

162169
background-color: rgb(233, 233, 233);
163-
padding: 0.35rem 0.5rem 0.5rem 0.5rem;
170+
171+
@media only screen and (min-width: 50rem)
172+
{
173+
padding: 0.35rem 0.5rem 0.5rem 0.5rem;
174+
}
175+
164176
border-radius: 0.25rem;
165177

166178
p:first-child
@@ -191,26 +203,50 @@ section.details
191203
}
192204
}
193205

206+
> *
207+
{
208+
span.m
209+
{
210+
color: $light-foreground-faint;
211+
}
212+
span.d
213+
{
214+
color: $light-foreground;
215+
}
216+
}
217+
194218
> a:hover, a:focus
195219
{
196220
background-color: $light-background-pink;
197221
text-decoration: none;
198-
}
199222

200-
span.m
201-
{
202-
color: $light-foreground-faint;
203-
}
204-
span.d
205-
{
206-
color: $light-foreground;
223+
span.m
224+
{
225+
color: $light-accent-barbie-pink-semi;
226+
}
227+
span.d
228+
{
229+
color: $light-accent-barbie-pink;
230+
}
207231
}
232+
208233
}
209234
li.first
210235
{
211-
span.m
236+
> *
212237
{
213-
color: $light-foreground;
238+
span.m
239+
{
240+
color: $light-foreground;
241+
}
242+
}
243+
244+
> a:hover, a:focus
245+
{
246+
span.m
247+
{
248+
color: $light-accent-barbie-pink;
249+
}
214250
}
215251
}
216252
}

0 commit comments

Comments
 (0)