Added sass and changed basic structure
Many things to do.
This commit is contained in:
parent
ad4697dd9e
commit
f2dfe32ca2
22 changed files with 1827 additions and 4 deletions
31
basic/_io.scss
Normal file
31
basic/_io.scss
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// Input/Output styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
// Common
|
||||
fieldset {
|
||||
margin: $basic_space 0;
|
||||
border: $basic_border;
|
||||
}
|
||||
legend {
|
||||
@extend %basic;
|
||||
padding: 0 $half_space;
|
||||
}
|
||||
|
||||
label {
|
||||
@extend %basic;
|
||||
display: table;
|
||||
margin: $half_space 0;
|
||||
input {
|
||||
display: table-cell;
|
||||
margin-left: $basic_space;
|
||||
padding: $half_space ($half_space + 1);
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
background-color: $basic_io_background_color;
|
||||
color: $basic_io_font_color;
|
||||
&:hover {
|
||||
background-color: $black;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
224
basic/_layout.scss
Normal file
224
basic/_layout.scss
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
// Basic styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $basic_background_color;
|
||||
}
|
||||
|
||||
img {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.center_50 {
|
||||
margin-right: 25%;
|
||||
margin-left: 25%;
|
||||
}
|
||||
.center_25 {
|
||||
margin-right: 37.5%;
|
||||
margin-left: 37.5%;
|
||||
}
|
||||
|
||||
.width_full {
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
&::before,
|
||||
&::after {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
.float_left {
|
||||
float: left;
|
||||
margin-right: $space_3;
|
||||
}
|
||||
.overflow {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
// Layout structure
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
// Simulate new body element
|
||||
.div_body {
|
||||
width: $basic_width;
|
||||
@media screen and (orientation: landscape) {
|
||||
@media (min-width: $screen_small) {
|
||||
width: $width_2;
|
||||
}
|
||||
@media (min-width: $screen_medium) {
|
||||
width: $width_3;
|
||||
}
|
||||
@media (min-width: $screen_large) {
|
||||
width: $width_4;
|
||||
}
|
||||
}
|
||||
@media screen and (orientation: portrait) {
|
||||
@media (min-width: $screen_small) {
|
||||
width: $width_2;
|
||||
}
|
||||
}
|
||||
margin: 0 auto;
|
||||
border-top-width: $border_width_8;
|
||||
border-top-style: solid;
|
||||
border-color: $basic_border_color;
|
||||
padding-top: $space_3;
|
||||
}
|
||||
|
||||
// Fixed elements
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
.div_fix {
|
||||
position: fixed;
|
||||
}
|
||||
.bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
// Layout elements
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
// Tabellen
|
||||
table {
|
||||
margin-top: $space_2;
|
||||
margin-bottom: $space_2;
|
||||
border: $basic_border;
|
||||
}
|
||||
th, td {
|
||||
padding: $half_space;
|
||||
}
|
||||
th {
|
||||
border: $basic_border_width dotted $basic_border_color;
|
||||
border-bottom: $basic_border;
|
||||
}
|
||||
.precol {
|
||||
border-right: $basic_border;
|
||||
}
|
||||
td {
|
||||
border: $basic_border_width dotted $basic_border_color;
|
||||
}
|
||||
.table_blank {
|
||||
border: $basic_border_width solid transparent;
|
||||
th, td {
|
||||
border: $basic_border_width solid transparent;
|
||||
}
|
||||
}
|
||||
.table_free {
|
||||
border: $basic_border_width solid transparent;
|
||||
}
|
||||
.table_stripe {
|
||||
td {
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
tr:nth-child(even) td {
|
||||
background-color: rgba($white,.1);
|
||||
}
|
||||
}
|
||||
.table_fix {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
// Freiraum
|
||||
.space_box {
|
||||
float: left;
|
||||
display: table;
|
||||
width: $space_4;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
span {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
|
||||
.div_placeholder {
|
||||
width: 100%;
|
||||
height: $space_4;
|
||||
border: $border_width_4 solid rgba($black,.1);
|
||||
border-radius: $basic_corner;
|
||||
padding: $basic_space;
|
||||
background-color: rgba($black,.1);
|
||||
svg {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.div_placeholder_bkg {
|
||||
width: 100%;
|
||||
height: $space_4;
|
||||
border: $border_width_4 solid rgba($black,.1);
|
||||
border-radius: $basic_corner;
|
||||
padding: $basic_space;
|
||||
/*data:[<mime type>][;charset=<charset>][;base64],<encoded data>*/
|
||||
background: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0' y='0' width='100%' height='100%'><line x1='2%' y1='2%' x2='98%' y2='98%' stroke='#000' stroke-width='.5'/><line x1='0' y1='100%' x2='100%' y2='0' stroke='#000' stroke-width='.5'/></svg>") no-repeat;
|
||||
background-color: rgba($black,.1);
|
||||
}
|
||||
|
||||
.div_info {
|
||||
padding: $space_2 $basic_indent;
|
||||
border-right: $basic_space solid rgba($echo_color, .6);
|
||||
background-color: rgba($echo_color, .1) !important;
|
||||
}
|
||||
|
||||
// Print
|
||||
.div_print {
|
||||
margin: $space_3 auto;
|
||||
padding: 1.2cm 0.6cm 0.6cm 2.4cm;
|
||||
background-color: $white;
|
||||
}
|
||||
|
||||
.dina5 {
|
||||
width: 14.8cm;
|
||||
height: 21.0cm;
|
||||
}
|
||||
|
||||
.test {
|
||||
li:after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
.front_color_1 { color: $alpha_color; &:after { background-color: $alpha_color; } }
|
||||
.front_color_2 { color: $bravo_color; &:after { background-color: $bravo_color; } }
|
||||
.front_color_3 { color: $charlie_color; &:after { background-color: $charlie_color; } }
|
||||
.front_color_4 { color: $delta_color; &:after { background-color: $delta_color; } }
|
||||
.front_color_5 { color: $echo_color; &:after { background-color: $echo_color; } }
|
||||
|
||||
.back_color_1 { background-color: $alpha_color;}
|
||||
.back_color_2 { background-color: $bravo_color;}
|
||||
.back_color_3 { background-color: $charlie_color;}
|
||||
.back_color_4 { background-color: $delta_color;}
|
||||
.back_color_5 { background-color: $echo_color;}
|
||||
|
||||
%label {
|
||||
padding: 0 $half_space;
|
||||
}
|
||||
.label_1 {
|
||||
@extend %label;
|
||||
@extend .back_color_1;
|
||||
}
|
||||
.label_2 {
|
||||
@extend %label;
|
||||
@extend .back_color_2;
|
||||
}
|
||||
.label_3 {
|
||||
@extend %label;
|
||||
@extend .back_color_3;
|
||||
}
|
||||
|
||||
297
basic/_typo.scss
Normal file
297
basic/_typo.scss
Normal file
|
|
@ -0,0 +1,297 @@
|
|||
// Basic styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
%basic {
|
||||
font-family: $secondary_font_family;
|
||||
font-size: $text_size_1;
|
||||
line-height: $text_line_1;
|
||||
}
|
||||
|
||||
%basic_mono {
|
||||
font-family: $third_font_family;
|
||||
font-size: $text_size_1;
|
||||
line-height: $text_line_1;
|
||||
}
|
||||
|
||||
%head_all {
|
||||
color: $basic_head_color;
|
||||
}
|
||||
|
||||
%head_1 {
|
||||
font-family: $secondary_font_family;
|
||||
font-size: $head_size_1;
|
||||
font-weight: 300;
|
||||
line-height: $head_line_1;
|
||||
}
|
||||
|
||||
%head_2 {
|
||||
font-family: $secondary_font_family;
|
||||
font-size: $head_size_2;
|
||||
font-weight: 300;
|
||||
line-height: $head_line_2;
|
||||
}
|
||||
|
||||
%head_3 {
|
||||
font-family: $secondary_font_family;
|
||||
font-size: $head_size_3;
|
||||
font-weight: 300;
|
||||
line-height: $head_line_3;
|
||||
}
|
||||
|
||||
%head_4 {
|
||||
font-family: $secondary_font_family;
|
||||
font-size: $head_size_4;
|
||||
font-weight: 300;
|
||||
line-height: $head_line_4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Specific styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
body {
|
||||
font-size: $basic_size;
|
||||
line-height: $basic_line;
|
||||
}
|
||||
|
||||
// Grouping
|
||||
p {
|
||||
@extend %basic;
|
||||
margin: $basic_space 0;
|
||||
color: $basic_font_color;
|
||||
code {
|
||||
padding: $tiny_space $half_space;
|
||||
font-size: 1em;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
@extend %basic_mono;
|
||||
}
|
||||
.pre_code {
|
||||
border-color: rgba($white,.1);
|
||||
border-style: dotted;
|
||||
border-width: 0 0 0 $border_width_4;
|
||||
border-radius: $basic_corner;
|
||||
padding: $basic_space;
|
||||
background-color: rgba($white,.1);
|
||||
code {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: $basic_space $basic_indent;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: $space_2 $basic_indent;
|
||||
}
|
||||
figcaption {
|
||||
@extend %basic;
|
||||
}
|
||||
|
||||
// Formatting
|
||||
.p_col_line {
|
||||
column-rule: $basic_border_width solid $black;
|
||||
}
|
||||
.p_col_2, .p_col_3 {
|
||||
@extend p;
|
||||
}
|
||||
.p_col_2 {
|
||||
column-count: 2;
|
||||
column-gap: $space_3;
|
||||
}
|
||||
.p_col_3 {
|
||||
column-count: 3;
|
||||
column-gap: $space_4;
|
||||
}
|
||||
|
||||
.span_solo {
|
||||
@extend %basic;
|
||||
color: $basic_font_color;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
i, em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: $alpha_color;
|
||||
}
|
||||
.mark_cursor {
|
||||
color: $basic_highlight_color;
|
||||
background-color: $black;
|
||||
}
|
||||
::-moz-selection {
|
||||
color: $basic_highlight_color;
|
||||
background-color: $black;
|
||||
}
|
||||
::selection {
|
||||
color: $basic_highlight_color;
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
.txt_center {
|
||||
text-align: center;
|
||||
}
|
||||
.txt_right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// Special
|
||||
code {
|
||||
@extend %basic_mono;
|
||||
color: lighten($black, 12%);
|
||||
background-color: rgba($white,.1);
|
||||
}
|
||||
.code_solo {
|
||||
@extend %basic_mono;
|
||||
padding: $tiny_space $half_space;
|
||||
color: $basic_font_color;
|
||||
}
|
||||
|
||||
// Quotation
|
||||
.quote_mark {
|
||||
p::before {
|
||||
content: "\201E \0020";
|
||||
}
|
||||
p::after {
|
||||
content: "\201C \0020";
|
||||
}
|
||||
.quote_source {
|
||||
&::before, &::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
cite {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Line
|
||||
hr {
|
||||
margin: $space_3 auto;
|
||||
border-width: $basic_border_width 0 0;
|
||||
border-style: solid;
|
||||
border-color: $black;
|
||||
}
|
||||
.hr_hidden {
|
||||
@extend hr;
|
||||
border-color: transparent;
|
||||
}
|
||||
.hr_dotted {
|
||||
@extend hr;
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
// Heading
|
||||
h1 {
|
||||
@extend %head_1;
|
||||
margin: $space_5 0 $space_3;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@extend %head_2;
|
||||
margin: $space_4 0 $space_3;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@extend %head_3;
|
||||
margin: $space_2 0 $space_2;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h4 {
|
||||
@extend %head_3;
|
||||
margin: $space_2 0 $space_2;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
h5 {
|
||||
@extend %head_4;
|
||||
margin: $space_2 0 $basic_space;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
h6 {
|
||||
@extend %basic;
|
||||
margin: $basic_space 0;
|
||||
text-transform: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Link
|
||||
a {
|
||||
color: $basic_link_color;
|
||||
// color: lighten($basic_action_color, 20%);
|
||||
text-decoration: none;
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: $basic_highlight_color;
|
||||
}
|
||||
}
|
||||
.link_line {
|
||||
border-bottom-width: $tiny_space;
|
||||
border-bottom-style: dotted;
|
||||
border-color: $basic_border_color;
|
||||
background-color: transparent;
|
||||
color: $basic_font_color;
|
||||
transition: color $basic_duration $basic_timing;
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $basic_action_color;
|
||||
color: $basic_highlight_color;
|
||||
}
|
||||
}
|
||||
|
||||
// List
|
||||
dl, ul, ol {
|
||||
margin: $space_2 0 $basic_space;
|
||||
}
|
||||
ul, ol {
|
||||
padding-left: $basic_indent;
|
||||
}
|
||||
li, dt, dd {
|
||||
@extend %basic;
|
||||
color: $black;
|
||||
}
|
||||
dd {
|
||||
margin-left: $basic_indent;
|
||||
}
|
||||
ul {
|
||||
li {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
content: "_";
|
||||
position: absolute;
|
||||
left: -1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Table
|
||||
th, td {
|
||||
@extend %basic;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
caption {
|
||||
@extend p;
|
||||
padding: $half_space 0;
|
||||
border: $basic_border_width dotted $basic_border_color;
|
||||
text-align: center;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue