Skip to content

Commit 8b3bd33

Browse files
committed
nested css
1 parent bb31550 commit 8b3bd33

File tree

6 files changed

+204
-69
lines changed

6 files changed

+204
-69
lines changed

website/astro.config.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
import { defineConfig } from 'astro/config'
22

33
// https://astro.build/config
4-
export default defineConfig({})
4+
5+
export default defineConfig({
6+
vite: {
7+
css: {
8+
transformer: "lightningcss",
9+
},
10+
},
11+
})
12+
13+

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"astro": "^4.10.2"
13+
"astro": "^4.10.2",
14+
"lightningcss": "^1.25.1"
1415
}
1516
}

website/pnpm-lock.yaml

Lines changed: 113 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/src/styles/donate.css

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#support-plans-slider {
22
margin: 200px auto 150px;
3-
}
43

5-
@media (max-width: 550px) {
6-
#support-plans-slider {
4+
@media (max-width: 550px) {
75
max-width: 98%;
86
margin: 170px auto 120px;
97
}
@@ -26,13 +24,15 @@
2624
margin-top: 15px;
2725
background: linear-gradient(32deg, #03a9f4, transparent) #f441a5;
2826
transition: background-color 1s;
29-
}
3027

31-
.plan-link:hover,
32-
.plan-link:focus {
33-
background-color: #fdb900;
28+
&:hover,
29+
&:focus {
30+
background-color: #fdb900;
31+
}
3432
}
3533

34+
35+
3636
/* noUI slider customizations */
3737

3838
.noUi-connects {
@@ -45,35 +45,36 @@
4545
font-size: 30px;
4646
transition: font-size 0.3s ease;
4747
cursor: pointer;
48-
}
4948

50-
.noUi-value.active {
51-
font-size: 45px;
49+
&.active {
50+
font-size: 45px;
51+
}
5252
}
5353

54-
.noUi-marker-horizontal.noUi-marker-large {
55-
height: 5px;
56-
}
54+
.noUi-marker-horizontal {
55+
&.noUi-marker-large {
56+
height: 5px;
57+
}
5758

58-
.noUi-marker-horizontal.noUi-marker {
59-
margin-left: 0;
60-
width: 1px;
59+
&.noUi-marker {
60+
margin-left: 0;
61+
width: 1px;
62+
}
6163
}
6264

6365
.noUi-tooltip {
6466
border-color: #ccc;
6567
border-radius: 10px;
6668
padding: 10px;
67-
}
6869

69-
.noUi-tooltip.first {
70-
left: 0;
71-
transform: unset;
72-
}
70+
&.first {
71+
left: 0;
72+
transform: unset;
73+
}
7374

74-
.noUi-tooltip.last {
75-
right: 0;
76-
left: unset;
77-
transform: unset;
75+
&.last {
76+
right: 0;
77+
left: unset;
78+
transform: unset;
79+
}
7880
}
79-

website/src/styles/global.css

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
body {
2-
padding-bottom: 100px;
32
line-height: 1.5;
43
font-size: 17px;
54
-webkit-font-smoothing: antialiased;
@@ -8,12 +7,6 @@ body {
87
color: #000;
98
}
109

11-
@media (max-width: 550px) {
12-
body {
13-
padding-bottom: 40px;
14-
}
15-
}
16-
1710
.container {
1811
max-width: 700px;
1912
margin-left: auto;
@@ -46,16 +39,18 @@ h1 {
4639
margin-top: 1em;
4740
}
4841

49-
p a {
50-
color: #333;
51-
font-weight: bold;
52-
text-decoration: none;
53-
box-shadow: 0 1px 0 #adc2ee;
54-
transition: box-shadow 200ms ease 0s;
55-
}
42+
p {
43+
a {
44+
color: #333;
45+
font-weight: bold;
46+
text-decoration: none;
47+
box-shadow: 0 1px 0 #adc2ee;
48+
transition: box-shadow 200ms ease 0s;
5649

57-
p a:hover {
58-
box-shadow: 0 2px 0 #adc2ee;
50+
&:hover {
51+
box-shadow: 0 2px 0 #adc2ee;
52+
}
53+
}
5954
}
6055

6156
strong {
@@ -79,14 +74,15 @@ hr {
7974
}
8075

8176
.footer {
82-
margin-top: 3em;
77+
margin-top: 6em;
78+
margin-bottom: 4em;
8379
display: flex;
8480
justify-content: space-evenly;
85-
}
8681

87-
.footer a {
88-
color: #777;
89-
text-decoration: none;
82+
a {
83+
color: #777;
84+
text-decoration: none;
85+
}
9086
}
9187

9288
.logo {
@@ -105,4 +101,24 @@ hr {
105101
padding: 14px;
106102
font-weight: bold;
107103
overflow-x: auto;
108-
}
104+
}
105+
106+
.quick-start-button {
107+
/*display: block;*/
108+
text-decoration: none;
109+
color: white;
110+
font-weight: bold;
111+
letter-spacing: 0.05rem;
112+
font-size: 15px;
113+
border-radius: 20px;
114+
padding: 6px 16px;
115+
margin-top: 15px;
116+
background: linear-gradient(32deg, #03a9f4, transparent) #f441a5;
117+
transition: background-color 1s;
118+
119+
&:hover,
120+
&:focus {
121+
background-color: #fdb900;
122+
}
123+
}
124+

0 commit comments

Comments
 (0)