start splitting up massive main.scss file
This commit is contained in:
67
src/assets/styles/components/_box.scss
Normal file
67
src/assets/styles/components/_box.scss
Normal file
@ -0,0 +1,67 @@
|
||||
|
||||
/* Box */
|
||||
|
||||
.box {
|
||||
border-radius: 3px;
|
||||
border: solid 2px _palette(border);
|
||||
margin-bottom: _size(element-margin);
|
||||
padding: 1.5em;
|
||||
|
||||
> :last-child,
|
||||
> :last-child > :last-child,
|
||||
> :last-child > :last-child > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Icon */
|
||||
|
||||
.icon {
|
||||
@include icon;
|
||||
border-bottom: none;
|
||||
position: relative;
|
||||
|
||||
> .label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.major {
|
||||
@include vendor('transform', 'rotate(-45deg)');
|
||||
border-radius: 3px;
|
||||
border: solid 2px _palette(border);
|
||||
display: inline-block;
|
||||
font-size: 1.35em;
|
||||
height: calc(3em + 2px);
|
||||
line-height: 3em;
|
||||
text-align: center;
|
||||
width: calc(3em + 2px);
|
||||
|
||||
&:before {
|
||||
@include vendor('transform', 'rotate(45deg)');
|
||||
display: inline-block;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
color: _palette(accent1, bg);
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
color: _palette(accent2, bg);
|
||||
}
|
||||
|
||||
&.style3 {
|
||||
color: _palette(accent3, bg);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user