mirror of
https://github.com/kognise/water.css.git
synced 2025-08-13 00:24:31 +02:00
Restructure everything
This commit is contained in:
@@ -1,132 +0,0 @@
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||
line-height: 1.4;
|
||||
|
||||
max-width: 800px;
|
||||
margin: 20px auto;
|
||||
padding: 0 10px;
|
||||
|
||||
color: $font-color;
|
||||
background: $background-color;
|
||||
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type='submit'],
|
||||
input[type='button'],
|
||||
input[type='checkbox'] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a, button, input, textarea {
|
||||
transition: background-color .1s linear,
|
||||
border-color .1s linear,
|
||||
color .1s linear,
|
||||
box-shadow .1s linear,
|
||||
transform .1s linear;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: $link-color;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid $border-color;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.2em;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, b, strong, th {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: $heading-color;
|
||||
}
|
||||
|
||||
input:not([type='checkbox']), select {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input, select, button, textarea {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
|
||||
margin-right: 6px;
|
||||
margin-bottom: 6px;
|
||||
padding: 10px;
|
||||
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
color: $form-font-color;
|
||||
background-color: $form-background-color;
|
||||
|
||||
}
|
||||
|
||||
button {
|
||||
color: $button-font-color;
|
||||
background-color: $button-background-color
|
||||
}
|
||||
|
||||
input:not([type='checkbox']), select, button, textarea {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
button, input[type='submit'], input[type='button'] {
|
||||
padding-right: 30px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type='submit']:hover,
|
||||
input[type='button']:hover {
|
||||
background: $button-hover-color;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
button:focus,
|
||||
textarea:focus {
|
||||
box-shadow: 0 0 0 2px $focus-color;
|
||||
}
|
||||
|
||||
input[type='checkbox']:active,
|
||||
input[type='submit']:active,
|
||||
input[type='button']:active,
|
||||
button:active {
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: .5;
|
||||
}
|
14
src/dark.scss
Normal file
14
src/dark.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
$background: #202b38 !default;
|
||||
$text-main: #dbdbdb !default;
|
||||
$text-bright: #ffffff !default;
|
||||
|
||||
$links: #41adff !default;
|
||||
$focus: #0096bfab !default;
|
||||
$border: #dbdbdb !default;
|
||||
$button-hover: #324759 !default;
|
||||
|
||||
$form-background: #161f27 !default;
|
||||
$form-placeholder: #a9a9a9 !default;
|
||||
$form-text: #ffffff !default;
|
||||
|
||||
@import 'parts/core';
|
14
src/light.scss
Normal file
14
src/light.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
$background: #ffffff !default;
|
||||
$text-main: #363636 !default;
|
||||
$text-bright: #000000 !default;
|
||||
|
||||
$links: #0076d1 !default;
|
||||
$focus: #0096bfab !default;
|
||||
$border: #dbdbdb !default;
|
||||
$button-hover: #dddddd !default;
|
||||
|
||||
$form-background: #efefef !default;
|
||||
$form-placeholder: #949494 !default;
|
||||
$form-text: #000000 !default;
|
||||
|
||||
@import 'parts/core';
|
21
src/parts/_base.scss
Normal file
21
src/parts/_base.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||
line-height: 1.4;
|
||||
|
||||
max-width: 800px;
|
||||
margin: 20px auto;
|
||||
padding: 0 10px;
|
||||
|
||||
color: $text-main;
|
||||
background: $background;
|
||||
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
button, input, textarea {
|
||||
transition: background-color .1s linear,
|
||||
border-color .1s linear,
|
||||
color .1s linear,
|
||||
box-shadow .1s linear,
|
||||
transform .1s linear;
|
||||
}
|
5
src/parts/_core.scss
Normal file
5
src/parts/_core.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
@import 'base';
|
||||
@import 'typography';
|
||||
@import 'forms';
|
||||
@import 'links';
|
||||
@import 'misc';
|
71
src/parts/_forms.scss
Normal file
71
src/parts/_forms.scss
Normal file
@@ -0,0 +1,71 @@
|
||||
button,
|
||||
input[type='submit'],
|
||||
input[type='button'],
|
||||
input[type='checkbox'] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input:not([type='checkbox']), select {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input, select, button, textarea {
|
||||
color: $form-text;
|
||||
background-color: $form-background;
|
||||
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
|
||||
margin-right: 6px;
|
||||
margin-bottom: 6px;
|
||||
padding: 10px;
|
||||
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input:not([type='checkbox']), select, button, textarea {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
button, input[type='submit'], input[type='button'] {
|
||||
padding-right: 30px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type='submit']:hover,
|
||||
input[type='button']:hover {
|
||||
background: $button-hover;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
button:focus,
|
||||
textarea:focus {
|
||||
box-shadow: 0 0 0 2px $focus;
|
||||
}
|
||||
|
||||
input[type='checkbox']:active,
|
||||
input[type='submit']:active,
|
||||
input[type='button']:active,
|
||||
button:active {
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
::placeholder {
|
||||
color: $form-placeholder;
|
||||
}
|
8
src/parts/_links.scss
Normal file
8
src/parts/_links.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: $links;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
8
src/parts/_misc.scss
Normal file
8
src/parts/_misc.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid $border;
|
||||
}
|
16
src/parts/_typography.scss
Normal file
16
src/parts/_typography.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
h1 {
|
||||
font-size: 2.2em;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, strong {
|
||||
color: $text-bright;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, b, strong, th {
|
||||
font-weight: 600;
|
||||
}
|
@@ -1,19 +0,0 @@
|
||||
$background-color: #202b38;
|
||||
$font-color: #dbdbdb;
|
||||
$link-color: #41adff;
|
||||
|
||||
$heading-color: #ffffff;
|
||||
|
||||
$border-color: #dbdbdb;
|
||||
|
||||
$focus-color: #0096bfab;
|
||||
|
||||
$button-background-color: #161f27;
|
||||
$button-font-color: #ffffff;
|
||||
$button-hover-color: #324759;
|
||||
|
||||
$form-font-color: #ffffff;
|
||||
$form-background-color: #161f27;
|
||||
$form-placeholder-color: #a9a9a9;
|
||||
|
||||
@import 'water-core'
|
@@ -1,19 +0,0 @@
|
||||
$background-color: #fff;
|
||||
$font-color: #363636;
|
||||
$link-color: #0076d1;
|
||||
|
||||
$heading-color: #000;
|
||||
|
||||
$border-color: #dbdbdb;
|
||||
|
||||
$focus-color: #0096bfab;
|
||||
|
||||
$button-background-color: #ddd;
|
||||
$button-font-color: #000;
|
||||
$button-hover-color: #dddddd;
|
||||
|
||||
$form-font-color: #000;
|
||||
$form-background-color: #efefef;
|
||||
$form-placeholder-color: #949494;
|
||||
|
||||
@import 'water-core'
|
Reference in New Issue
Block a user