1
- body {
2
- // margin: 1vw 3vw; // side margin just enough for good scroll bar on xs screens
3
- margin : 1em 0 ;
4
- color : $DJSdark-text ;
5
- font-size : large ;
6
- background-color : $DJSwhite ;
7
- font-family : ' Catamaran' , sans-serif ;
8
- font-weight : 200 ;
9
- }
10
1
11
2
/// / HERO things
12
3
// copied from https://wweb.dev/resources/css-separator-generator
13
4
.triangle {
14
5
position : relative ;
15
6
background : $DJSbackground_grey ;
16
- min-height : calc (50vh + 20px );
7
+ min-height : max-content ;
8
+ padding-bottom : 80px ;
17
9
}
18
10
19
11
.triangle ::before {
@@ -44,13 +36,14 @@ body {
44
36
45
37
.hero-over-title {
46
38
text-transform : uppercase ;
47
- padding-bottom : 1 rem ;
39
+ padding-bottom : 1.4 rem ;
48
40
}
49
41
50
42
.hero-payoff {
51
43
padding-top : 2rem ;
52
44
letter-spacing : initial ;
53
45
color : lighten ($DJSlavender , 10% );
46
+ padding-bottom : 2rem ;
54
47
}
55
48
56
49
hr .separator-line {
@@ -65,18 +58,23 @@ hr.separator-line {
65
58
// cards (grid) -> card (flex) -> card Content (See below)
66
59
67
60
.text-container {
68
- max-width : 90% ;
69
- margin : 15vh auto ;
70
- // margin: auto;
61
+ margin : 35px 3vw 0 3vw ;
71
62
}
72
63
73
64
.intro {
74
65
// padding: 0 19vw 15vh 20vw;
75
66
font-size : larger ;
76
- padding-bottom : 7vh ;
67
+ // padding-top: 4vh;
68
+ padding-bottom : 30px ;
77
69
max-width : 45ch ;
70
+ margin-top : 30px ;
78
71
margin-left : auto ;
79
- margin-right : auto ;
72
+ margin-right : auto ; // this auto margins is needed to center the text block...
73
+ // text-align: center; // ... and this is needed to center the button (See below)
74
+ }
75
+
76
+ .intro-with-button-centered {
77
+ text-align : center
80
78
}
81
79
82
80
.cards {
@@ -85,7 +83,7 @@ hr.separator-line {
85
83
grid-gap : 1rem ;
86
84
grid-template-columns : repeat (auto-fit , minmax (300px , 1fr ));
87
85
// ^ make it responsive without mediaqueries:
88
- margin-bottom : 7 vh ;
86
+ margin-bottom : 3 vh ;
89
87
}
90
88
91
89
.card {
@@ -131,35 +129,33 @@ hr.separator-line {
131
129
padding : 1em ;
132
130
}
133
131
134
- // styling elements
135
-
136
- ul {
137
- list-style : outside " \2043 " + " " ;
138
- }
139
-
140
- .accented {
141
- color : $DJSsunshine ;
142
- }
143
-
144
- $w : 33vw ;
145
- $h : 8vh ;
132
+ // button
146
133
147
134
.btn-enroll {
148
- width : $w ;
149
- height : $h ;
135
+ border : none ;
136
+ border-radius : 10 % ;
150
137
background-color : $DJSsunshine ;
151
- border-radius : .5 * $h ;
152
- // display:inline-block;
138
+ color : $DJSwhite ;
139
+
140
+ display : inline-block ;
141
+ font-size : 2rem ;
142
+ margin : 60px auto 0 auto ;
143
+ padding : 14px 30px ;
153
144
cursor : pointer ;
154
- color : whitesmoke ;
155
- font-size : 1.5em ;
156
- text-decoration : none ;
157
145
158
146
& :hover {
159
- // do something
147
+ background-color : darken ( $DJSsunshine , 10 % );;
160
148
}
161
149
}
162
150
151
+ // styling
152
+
153
+ ul {
154
+ list-style : outside " \2043 " + " " ;
155
+ }
163
156
157
+ .accented {
158
+ color : $DJSsunshine ;
159
+ }
164
160
165
161
0 commit comments