This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="32px" height="32px" viewBox="0 0 32 32"> | |
<g class="js-transition-icon__state"> | |
<title>Close search</title> | |
<line fill="none" stroke="#111111" x1="27" y1="5" x2="5" y2="27"/> | |
<line fill="none" stroke="#111111" x1="27" y1="27" x2="5" y2="5"/> | |
</g> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="32px" height="32px" viewBox="0 0 32 32"> | |
<g class="js-transition-icon__state"> | |
<title>Search</title> | |
<line fill="none" stroke="#111111" x1="30" y1="30" x2="21.5" y2="21.5"/> | |
<circle fill="none" stroke="#111111" cx="13" cy="13" r="12"/> | |
</g> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* reset - used to enable icon color customizations */ | |
.icon { | |
fill: currentColor; | |
stroke: none; | |
&.icon--outline { | |
stroke: currentColor; | |
} | |
use { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
{% include "icons.svg" %} | |
<svg class="icon"><use href="#icon-rugby" xlink:href="#icon-rugby"/></svg> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grid { | |
@include gridAdvanced( | |
(1, 8, 1, 3), //item 1 | |
(1, 8, 3, 5), //item 2 | |
(5, -1, 2, 4) //item 3 | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gallery-grid { | |
@include grid; | |
@include gridAuto(260px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="flex-grid"> | |
<li class="col col--9">1</li> | |
<li class="col col--3">2</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.col { | |
padding: calc(var(--grid-gap)) 0 0 calc(var(--grid-gap)); | |
background-clip: content-box; | |
flex-basis: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin gridAdvanced($cols...) { | |
$i: 1; | |
$span: 0; | |
@each $col in $cols { | |
> :nth-of-type(#{$i}) { | |
@if nth($col,2) == -1 { | |
$span: $grid-columns - nth($col,2) - nth($col,1); | |
} @else { | |
$span: nth($col,2) - nth($col,1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin gridLayout($cols...) { | |
$i: 1; | |
@each $col in $cols { | |
> :nth-of-type(#{$i}) { | |
width: calc( #{round-width(nth($col,1))} - #{$gap-horizontal}); | |
} | |
$i: $i + 1; | |
} | |
@supports(grid-area: auto) { |