Skip to content

Commit 413dd86

Browse files
committed
feat(divider): extract hr styling into shared component styles
1 parent 6e2b841 commit 413dd86

File tree

4 files changed

+13
-28
lines changed

4 files changed

+13
-28
lines changed

src/css/app.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@
22
@import './base/typography.css';
33
@import './base/colors.css';
44

5-
/* /1* Components *1/ */
5+
/* Components */
66
@import './components/button.css';
77
@import './components/get-involved.css';
88
@import './components/sponsors.css';
99
@import './components/profile-image.css';
1010
@import './components/static-content.css';
1111
@import './components/back.css';
12+
@import './components/divider.css';
1213

13-
/* /1* Layout *1/ */
14+
/* Layout */
1415
@import './layout/reset.css';
1516
@import './layout/navigation.css';
1617
@import './layout/dropdown.css';
1718
@import './layout/container.css';
1819
/* @import './layout/header.css'; */
1920
/* @import './layout/footer.css'; */
2021

21-
/* /1* Pages *1/ */
22+
/* Pages */
2223
@import './pages/post.css';
2324
@import './pages/home.css';
2425
@import './pages/conferences.css';
2526
@import './pages/open-source.css';
2627

2728
@import './modern.css';
2829

29-
/* Vendor */
30+
/* Vendors */
3031
@import './vendors/ghost.css';
3132
@import '../../node_modules/tocbot/dist/tocbot.css';

src/css/components/divider.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
hr {
2+
border: 3px solid var(--yellow);
3+
width: 70px;
4+
margin: 0 0 30px;
5+
}

src/css/components/get-involved.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
}
1111

1212
hr {
13-
border: 3px solid var(--yellow);
14-
margin-bottom: 32px;
15-
width: 70px;
13+
margin: 0 auto 30px;
1614
}
1715

1816
span[data-members-error],
@@ -39,6 +37,7 @@
3937
font-weight: 500;
4038
line-height: 3rem;
4139
text-align: center;
40+
margin-bottom: 16px;
4241
}
4342

4443
.get-involved__row {
@@ -114,10 +113,6 @@
114113
@media (min-width: 1440px) {
115114
padding: 96px 0;
116115

117-
hr {
118-
margin-bottom: 48px;
119-
}
120-
121116
.get-involved__row {
122117
grid-template-columns: repeat(2, minmax(0, 1fr));
123118
}

src/css/pages/home.css

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
.home-template {
2-
hr {
3-
border: 3px solid var(--yellow);
4-
width: 70px;
5-
}
6-
72
.home-template__hero {
83
display: flex;
94
flex-direction: column;
@@ -68,10 +63,6 @@
6863
.home-template__community__inner {
6964
max-width: 1135px;
7065
margin: auto;
71-
72-
hr {
73-
margin: 0 0 30px;
74-
}
7566
}
7667

7768
.home-template__pillars__details,
@@ -268,7 +259,7 @@
268259
}
269260

270261
hr {
271-
margin-bottom: 30px;
262+
margin: 0 auto 30px;
272263
}
273264
}
274265

@@ -297,13 +288,6 @@
297288
padding: 96px 56px;
298289
}
299290

300-
.home-template__pillars__inner,
301-
.home-template__community__inner {
302-
hr {
303-
margin: 0 0 60px 0;
304-
}
305-
}
306-
307291
.home-template__pillars__details,
308292
.home-template__community__details {
309293
padding: 80px 48px;

0 commit comments

Comments
 (0)