Re-organize SASS structure (#1425)
This commit is contained in:
parent
27fc314b55
commit
5c74dc9fa8
52 changed files with 541 additions and 515 deletions
3
sass/base/elements/_body.scss
Normal file
3
sass/base/elements/_body.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
background: $color__background-body; // Fallback for when there is no custom background color defined.
|
||||
}
|
22
sass/base/elements/_buttons.scss
Normal file
22
sass/base/elements/_buttons.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
border: 1px solid;
|
||||
border-color: $color__border-button;
|
||||
border-radius: 3px;
|
||||
background: $color__background-button;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1;
|
||||
padding: 0.6em 1em 0.4em;
|
||||
|
||||
&:hover {
|
||||
border-color: $color__border-button-hover;
|
||||
}
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
border-color: $color__border-button-focus;
|
||||
}
|
||||
}
|
33
sass/base/elements/_fields.scss
Normal file
33
sass/base/elements/_fields.scss
Normal file
|
@ -0,0 +1,33 @@
|
|||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
input[type="search"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="range"],
|
||||
input[type="date"],
|
||||
input[type="month"],
|
||||
input[type="week"],
|
||||
input[type="time"],
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="color"],
|
||||
textarea {
|
||||
color: $color__text-input;
|
||||
border: 1px solid $color__border-input;
|
||||
border-radius: 3px;
|
||||
padding: 3px;
|
||||
|
||||
&:focus {
|
||||
color: $color__text-input-focus;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
border: 1px solid $color__border-input;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
6
sass/base/elements/_hr.scss
Normal file
6
sass/base/elements/_hr.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
hr {
|
||||
background-color: $color__background-hr;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
22
sass/base/elements/_links.scss
Normal file
22
sass/base/elements/_links.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
a {
|
||||
color: $color__link;
|
||||
|
||||
&:visited {
|
||||
color: $color__link-visited;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
26
sass/base/elements/_lists.scss
Normal file
26
sass/base/elements/_lists.scss
Normal file
|
@ -0,0 +1,26 @@
|
|||
ul,
|
||||
ol {
|
||||
margin: 0 0 1.5em 3em;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 1.5em 1.5em;
|
||||
}
|
15
sass/base/elements/_media.scss
Normal file
15
sass/base/elements/_media.scss
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* Make sure embeds and iframes fit their containers. */
|
||||
embed,
|
||||
iframe,
|
||||
object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
img {
|
||||
height: auto; // Make sure images are scaled correctly.
|
||||
max-width: 100%; // Adhere to container width.
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 1em 0; // Extra wide images within figure tags don't overflow the content area.
|
||||
}
|
4
sass/base/elements/_tables.scss
Normal file
4
sass/base/elements/_tables.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
table {
|
||||
margin: 0 0 1.5em;
|
||||
width: 100%;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue