-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* split chimera.css into partial sass-files * sass variable syntax * Correct variable use, compiled chimera.css file * Using sass inheritance * Contribution documents * font-stack implemented in scss
- Loading branch information
1 parent
719b424
commit 5dee995
Showing
20 changed files
with
515 additions
and
221 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
@use "variables"; | ||
|
||
body { | ||
font-family: variables.$font-stack; | ||
color: variables.$Chimera-text; | ||
background: variables.$Chimera-bg; | ||
} |
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,12 @@ | ||
@use "variables"; | ||
|
||
blockquote { | ||
line-height: 2em; | ||
background-color: variables.$Chimera-bg-secondary; | ||
width: 100%; | ||
box-sizing: border-box; | ||
border-left: 0.25em solid variables.$Chimera; | ||
border-radius: 0 0.5em 0.5em 0; | ||
padding: 1em; | ||
margin: 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,28 @@ | ||
@use "variables"; | ||
|
||
button, | ||
input[type="button"], | ||
input[type="submit"] { | ||
background-color: variables.$Chimera; | ||
color: #ffff; | ||
font-size: medium; | ||
padding: 0.5em 0.75em; | ||
border: 0; | ||
border-radius: 0.5em; | ||
transition: 200ms ease-in-out; | ||
} | ||
|
||
button:hover, | ||
input[type="button"]:hover, | ||
input[type="submit"]:hover { | ||
background-color: variables.$Chimera-dark; | ||
border-color: variables.$Chimera-dark; | ||
cursor: pointer; | ||
} | ||
|
||
button:active, | ||
input[type="button"]:active, | ||
input[type="submit"]:active { | ||
border-color: variables.$Chimera-darker; | ||
background-color: variables.$Chimera-darker; | ||
} |
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,37 @@ | ||
@use "variables"; | ||
|
||
input[type="checkbox"] { | ||
/*remove default checkboxes, and reset style*/ | ||
appearance: none; | ||
margin: 0; | ||
padding: 0; | ||
background-color: variables.$Chimera-bg-secondary; | ||
|
||
/*style*/ | ||
width: 1em; | ||
height: 1em; | ||
border-radius: 1em; | ||
border: 2px solid variables.$Chimera-input-border; | ||
border-radius: 0.2em; | ||
|
||
display: grid; | ||
place-content: center; | ||
} | ||
|
||
input[type="checkbox"]:hover { | ||
border: 2px solid variables.$Chimera; | ||
} | ||
|
||
input[type="checkbox"]::before { | ||
transition: 200ms transform ease-in-out; | ||
transform: scale(0); | ||
width: 0.5em; | ||
height: 0.5em; | ||
background-color: variables.$Chimera; | ||
content: ""; | ||
border-radius: 0.05em; | ||
} | ||
|
||
input[type="checkbox"]:checked::before { | ||
transform: scale(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@use "variables"; | ||
|
||
%formatted-text { | ||
background-color: variables.$Chimera-bg-secondary; | ||
border-radius: 8px; | ||
font-family: "Fira Code", monospace; | ||
} | ||
|
||
pre { | ||
@extend %formatted-text; | ||
padding: 10px; | ||
overflow-x: auto; | ||
width: 100%; | ||
} | ||
|
||
code, | ||
kbd, | ||
var, | ||
samp { | ||
@extend %formatted-text; | ||
padding: 4px 8px; | ||
} |
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,9 @@ | ||
@use "variables"; | ||
|
||
hr { | ||
background-color: variables.$Chimera; | ||
height: 0.2em; | ||
width: 100%; | ||
border: 0; | ||
margin: 1em 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,4 @@ | ||
img { | ||
width: 100%; | ||
height: 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,3 @@ | ||
label { | ||
font-weight: 600; | ||
} |
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,22 @@ | ||
@use "variables"; | ||
|
||
a { | ||
color: variables.$Chimera; | ||
text-decoration: none; | ||
font-weight: 400; | ||
} | ||
|
||
a:visited { | ||
color: variables.$Chimera-darkest; | ||
} | ||
|
||
a:hover { | ||
color: variables.$Chimera-dark; | ||
cursor: pointer; | ||
text-decoration: underline variables.$Chimera-dark; | ||
} | ||
|
||
a:active { | ||
color: variables.$Chimera-darker; | ||
text-decoration-color: variables.$Chimera-darker; | ||
} |
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,15 @@ | ||
%lists { | ||
margin-left: 1.5em; | ||
padding: 0; | ||
line-height: 2em; | ||
} | ||
|
||
ul { | ||
@extend %lists; | ||
list-style: disc; | ||
} | ||
|
||
li { | ||
@extend %lists; | ||
list-style: inherit; | ||
} |
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,37 @@ | ||
@use "variables"; | ||
|
||
input[type="radio"] { | ||
/*remove default radio-buttons, and reset style*/ | ||
appearance: none; | ||
margin: 0; | ||
padding: 0; | ||
background-color: variables.$Chimera-bg-secondary; | ||
|
||
/*style*/ | ||
width: 1em; | ||
height: 1em; | ||
border-radius: 1em; | ||
border: 2px solid variables.$Chimera-input-border; | ||
|
||
/*Place fill*/ | ||
display: grid; | ||
place-content: center; | ||
} | ||
|
||
input[type="radio"]:hover { | ||
border: 2px solid variables.$Chimera; | ||
} | ||
|
||
input[type="radio"]::before { | ||
transition: 200ms transform ease-in-out; | ||
transform: scale(0); | ||
width: 0.5em; | ||
height: 0.5em; | ||
background-color: variables.$Chimera; | ||
content: ""; | ||
border-radius: 50%; | ||
} | ||
|
||
input[type="radio"]:checked::before { | ||
transform: scale(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
radio, | ||
checkbox { | ||
line-height: 1.1; | ||
display: grid; | ||
grid-template-columns: 1em auto; | ||
gap: 0.5em; | ||
align-items: center; | ||
margin: 1em 0em; | ||
} |
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,22 @@ | ||
@use "variables"; | ||
|
||
%tablerow { | ||
border-bottom: 0.1em solid variables.$Chimera; | ||
padding: 0.5em; | ||
text-align: left; | ||
} | ||
|
||
table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
} | ||
|
||
th { | ||
@extend %tablerow; | ||
font-weight: 600; | ||
} | ||
|
||
td { | ||
@extend %tablerow; | ||
font-weight: lighter; | ||
} |
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,40 @@ | ||
%headings { | ||
font-weight: 400; | ||
margin-top: 0.5em; | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
h1 { | ||
@extend %headings; | ||
font-size: 3em; | ||
} | ||
|
||
h2 { | ||
@extend %headings; | ||
font-size: 2.5em; | ||
} | ||
|
||
h3 { | ||
@extend %headings; | ||
font-size: 2em; | ||
} | ||
|
||
h4 { | ||
@extend %headings; | ||
font-size: 1.5em; | ||
} | ||
|
||
h5 { | ||
@extend %headings; | ||
font-size: 1.25em; | ||
} | ||
|
||
h6 { | ||
@extend %headings; | ||
font-size: 1em; | ||
} | ||
|
||
p { | ||
line-height: 1.5; | ||
font-weight: 300; | ||
} |
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,23 @@ | ||
@use "variables"; | ||
|
||
textarea, | ||
input[type="text"], | ||
input[type="email"], | ||
input[type="password"], | ||
input[type="number"], | ||
input[type="tel"], | ||
input[type="url"], | ||
input[type="search"] { | ||
font-family: variables.$font-stack; | ||
background-color: variables.$Chimera-bg-secondary; | ||
color: variables.$Chimera-text; | ||
font-size: medium; | ||
border-radius: 0.5em; | ||
border: 0; | ||
outline: none; | ||
width: 100%; | ||
box-sizing: border-box; | ||
margin: 0.5em 0; | ||
padding: 1em 0 1em 1em; | ||
resize: 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,19 @@ | ||
// @font-face { | ||
// font-family: "Inter"; | ||
// src: url("https://fonts.googleapis.com/css2?family=Inter&display=swap"); | ||
// } | ||
|
||
// $font-stack: "Inter"; | ||
|
||
$font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
"Helvetica Neue", Arial, "Noto Sans", sans-serif; | ||
|
||
//Color palette | ||
$Chimera: hsl(183, 40%, 50%); | ||
$Chimera-dark: hsl(183, 40%, 40%); | ||
$Chimera-darker: hsl(183, 40%, 30%); | ||
$Chimera-darkest: hsl(183, 40%, 20%); | ||
$Chimera-input-border: hsl(0, 0%, 51%); | ||
$Chimera-text: hsl(0, 0%, 25%); | ||
$Chimera-bg: hsl(40, 30%, 100%); | ||
$Chimera-bg-secondary: hsl(60, 5%, 95%); |
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,15 @@ | ||
@use "buttons"; | ||
@use "blockquotes"; | ||
@use "formatted-text"; | ||
@use "horisontal-rule"; | ||
@use "images"; | ||
@use "labels"; | ||
@use "links"; | ||
@use "lists"; | ||
@use "checkboxes"; | ||
@use "radio-buttons"; | ||
@use "radio-checkbox-groups"; | ||
@use "tables"; | ||
@use "text"; | ||
@use "textfields"; | ||
@use "base"; |