Skip to content

Commit de93bb2

Browse files
committed
Correcting the indentation and placing the .divider under parent class
1 parent 1e7929a commit de93bb2

File tree

1 file changed

+87
-83
lines changed

1 file changed

+87
-83
lines changed

styles/Home.module.scss

Lines changed: 87 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,117 @@
1-
hr.divider {
2-
border-top: 1px solid #eaeaea;
3-
width: 100%;
4-
margin: 4rem 0;
1+
@import "variables";
2+
3+
hr {
4+
&.divider {
5+
border-top: 1px solid #eaeaea;
6+
width: 100%;
7+
margin: 4rem 0;
8+
}
59
}
610

711
.title {
8-
margin: 0;
9-
line-height: 1.15;
10-
font-size: 2.5rem;
11-
text-align: center;
12+
margin: 0;
13+
line-height: 1.15;
14+
font-size: 2.5rem;
15+
text-align: center;
1216

13-
a {
14-
color: #0070f3;
15-
text-decoration: none;
17+
a {
18+
color: #0070f3;
19+
text-decoration: none;
1620

17-
&:hover,
18-
&:focus,
19-
&:active {
20-
text-decoration: underline;
21-
}
22-
}
21+
&:hover,
22+
&:focus,
23+
&:active {
24+
text-decoration: underline;
25+
}
26+
}
2327
}
2428

2529
.description {
26-
line-height: 1.5;
27-
font-size: 1.5rem;
28-
text-align: center;
29-
max-width: 90%;
30-
margin: 0 auto;
30+
line-height: 1.5;
31+
font-size: 1.5rem;
32+
text-align: center;
33+
max-width: 90%;
34+
margin: 0 auto;
3135
}
3236

3337
.centerText {
34-
text-align: center;
35-
width: 90%;
36-
margin: 1.5rem auto;
38+
text-align: center;
39+
width: 90%;
40+
margin: 1.5rem auto;
3741
}
3842

3943
.grid {
40-
display: flex;
41-
align-items: center;
42-
justify-content: center;
43-
flex-wrap: wrap;
44-
margin: 3rem auto;
44+
display: flex;
45+
align-items: center;
46+
justify-content: center;
47+
flex-wrap: wrap;
48+
margin: 3rem auto;
4549
}
4650

4751
.card {
48-
height: 13rem;
49-
max-width: 40%;
50-
margin: 1.5rem;
51-
flex-basis: 45%;
52-
padding: 1.5rem;
53-
text-align: left;
54-
display: flex;
55-
align-items: center;
56-
justify-content: center;
57-
text-decoration: none;
58-
border: 2px solid #666;
59-
transition: color 0.15s ease, border-color 0.15s ease;
52+
height: 13rem;
53+
max-width: 40%;
54+
margin: 1.5rem;
55+
flex-basis: 45%;
56+
padding: 1.5rem;
57+
text-align: left;
58+
display: flex;
59+
align-items: center;
60+
justify-content: center;
61+
text-decoration: none;
62+
border: 2px solid #666;
63+
transition: color 0.15s ease, border-color 0.15s ease;
6064

61-
&:hover,
62-
&:focus,
63-
&:active {
64-
color: #666;
65-
border-color: #eaeaea;
66-
}
65+
&:hover,
66+
&:focus,
67+
&:active {
68+
color: #666;
69+
border-color: #eaeaea;
70+
}
6771

68-
p {
69-
margin: 0 1rem;
70-
font-size: 1.125rem;
71-
line-height: 1.5;
72-
text-align: center;
73-
font-weight: bold;
74-
}
72+
p {
73+
margin: 0 1rem;
74+
font-size: 1.125rem;
75+
line-height: 1.5;
76+
text-align: center;
77+
font-weight: bold;
78+
}
7579
}
7680

7781
.button {
78-
height: 2.4rem;
79-
width: 8rem;
80-
border-radius: 5px;
81-
background-color: #696969;
82-
color: #fff;
83-
font-size: 0.875rem;
84-
border: none;
85-
text-transform: uppercase;
86-
transition: opacity 0.3s ease;
82+
height: 2.4rem;
83+
width: 8rem;
84+
border-radius: 5px;
85+
background-color: #696969;
86+
color: #fff;
87+
font-size: 0.875rem;
88+
border: none;
89+
text-transform: uppercase;
90+
transition: opacity 0.3s ease;
8791

88-
&:hover {
89-
opacity: 65%;
90-
cursor: pointer;
91-
}
92+
&:hover {
93+
opacity: 65%;
94+
cursor: pointer;
95+
}
9296
}
9397

94-
@media (min-width: 1024px) {
95-
.title {
96-
font-size: 4rem;
97-
}
98+
@media (min-width: $desktop-breakpoint) {
99+
.title {
100+
font-size: 4rem;
101+
}
98102
}
99103

100104
@media (max-width: 728px) {
101-
.grid {
102-
width: 100%;
103-
flex-direction: column;
104-
margin: 3rem 0;
105-
}
105+
.grid {
106+
width: 100%;
107+
flex-direction: column;
108+
margin: 3rem 0;
109+
}
106110

107-
.card {
108-
max-width: none;
109-
margin: 0.5rem;
110-
width: 90%;
111-
min-height: 7rem;
112-
}
111+
.card {
112+
max-width: none;
113+
margin: 0.5rem;
114+
width: 90%;
115+
min-height: 7rem;
116+
}
113117
}

0 commit comments

Comments
 (0)