Skip to content

Commit 419533b

Browse files
authored
Merge pull request #1019 from helsingborg-stad/feat/new-css-icon-section
feat: new css icon section
2 parents 005db62 + 9399464 commit 419533b

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

source/sass/_styleguide.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
@import "component/openStreetMap";
175175
@import "component/newsitem";
176176
@import "component/toast";
177+
@import "component/iconSection";
177178

178179
// ***************************************************************
179180
// *** Icons
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.c-iconsection {
2+
display: grid;
3+
grid-template-columns: [icon] auto [content] 1fr;
4+
5+
&__icon,
6+
&__content {
7+
padding: calc($base * 2);
8+
}
9+
10+
&__icon {
11+
grid-column: icon;
12+
background-color: color-mix(in srgb, $c-paper-color-background 98%, black);
13+
border-right: 1px solid color-mix(in srgb, $c-paper-color-background 93%, black);
14+
15+
& > * {
16+
opacity: .5;
17+
}
18+
}
19+
20+
&__content {
21+
grid-column: content;
22+
}
23+
}

0 commit comments

Comments
 (0)