-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vendored spectre-css to update its scss syntax around colors and math
- Loading branch information
Showing
80 changed files
with
5,717 additions
and
57 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Accordions | ||
.accordion { | ||
input:checked ~, | ||
&[open] { | ||
& .accordion-header > { | ||
.icon:first-child { | ||
transform: rotate(90deg); | ||
} | ||
} | ||
|
||
& .accordion-body { | ||
max-height: 50rem; | ||
} | ||
} | ||
|
||
.accordion-header { | ||
display: block; | ||
padding: $unit-1 $unit-2; | ||
|
||
.icon { | ||
transition: transform .25s; | ||
} | ||
} | ||
|
||
.accordion-body { | ||
margin-bottom: $layout-spacing; | ||
max-height: 0; | ||
overflow: hidden; | ||
transition: max-height .25s; | ||
} | ||
} | ||
|
||
// Remove default details marker in Webkit | ||
summary.accordion-header { | ||
&::-webkit-details-marker { | ||
display: none; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Animations | ||
@keyframes loading { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes slide-down { | ||
0% { | ||
opacity: 0; | ||
transform: translateY(-$unit-8); | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Optimized for East Asian CJK | ||
html:lang(zh), | ||
html:lang(zh-Hans), | ||
.lang-zh, | ||
.lang-zh-hans { | ||
font-family: $cjk-zh-hans-font-family; | ||
} | ||
|
||
html:lang(zh-Hant), | ||
.lang-zh-hant { | ||
font-family: $cjk-zh-hant-font-family; | ||
} | ||
|
||
html:lang(ja), | ||
.lang-ja { | ||
font-family: $cjk-jp-font-family; | ||
} | ||
|
||
html:lang(ko), | ||
.lang-ko { | ||
font-family: $cjk-ko-font-family; | ||
} | ||
|
||
:lang(zh), | ||
:lang(ja), | ||
.lang-cjk { | ||
ins, | ||
u { | ||
border-bottom: $border-width solid; | ||
text-decoration: none; | ||
} | ||
|
||
del + del, | ||
del + s, | ||
ins + ins, | ||
ins + u, | ||
s + del, | ||
s + s, | ||
u + ins, | ||
u + u { | ||
margin-left: .125em; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Autocomplete | ||
.form-autocomplete { | ||
position: relative; | ||
|
||
.form-autocomplete-input { | ||
align-content: flex-start; | ||
display: flex; | ||
flex-wrap: wrap; | ||
height: auto; | ||
min-height: $unit-8; | ||
padding: $unit-h; | ||
|
||
&.is-focused { | ||
@include control-shadow(); | ||
border-color: $primary-color; | ||
} | ||
|
||
.form-input { | ||
border-color: transparent; | ||
box-shadow: none; | ||
display: inline-block; | ||
flex: 1 0 auto; | ||
height: $unit-6; | ||
line-height: $unit-4; | ||
margin: $unit-h; | ||
width: auto; | ||
} | ||
} | ||
|
||
.menu { | ||
left: 0; | ||
position: absolute; | ||
top: 100%; | ||
width: 100%; | ||
} | ||
|
||
&.autocomplete-oneline { | ||
.form-autocomplete-input { | ||
flex-wrap: nowrap; | ||
overflow-x: auto; | ||
} | ||
|
||
.chip { | ||
flex: 1 0 auto; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// Avatars | ||
.avatar { | ||
@include avatar-base(); | ||
background: $primary-color; | ||
border-radius: 50%; | ||
color: rgba($light-color, .85); | ||
display: inline-block; | ||
font-weight: 300; | ||
line-height: 1.25; | ||
margin: 0; | ||
position: relative; | ||
vertical-align: middle; | ||
|
||
&.avatar-xs { | ||
@include avatar-base($unit-4); | ||
} | ||
&.avatar-sm { | ||
@include avatar-base($unit-6); | ||
} | ||
&.avatar-lg { | ||
@include avatar-base($unit-12); | ||
} | ||
&.avatar-xl { | ||
@include avatar-base($unit-16); | ||
} | ||
|
||
img { | ||
border-radius: 50%; | ||
height: 100%; | ||
position: relative; | ||
width: 100%; | ||
z-index: $zindex-0; | ||
} | ||
|
||
.avatar-icon, | ||
.avatar-presence { | ||
background: $bg-color-light; | ||
bottom: 14.64%; | ||
height: 50%; | ||
padding: $border-width-lg; | ||
position: absolute; | ||
right: 14.64%; | ||
transform: translate(50%, 50%); | ||
width: 50%; | ||
z-index: $zindex-0 + 1; | ||
} | ||
|
||
.avatar-presence { | ||
background: $gray-color; | ||
box-shadow: 0 0 0 $border-width-lg $light-color; | ||
border-radius: 50%; | ||
height: .5em; | ||
width: .5em; | ||
|
||
&.online { | ||
background: $success-color; | ||
} | ||
|
||
&.busy { | ||
background: $error-color; | ||
} | ||
|
||
&.away { | ||
background: $warning-color; | ||
} | ||
} | ||
|
||
&[data-initial]::before { | ||
color: currentColor; | ||
content: attr(data-initial); | ||
left: 50%; | ||
position: absolute; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: $zindex-0; | ||
} | ||
} |
Oops, something went wrong.