feat(styles): change background color -> add vars for convenient usage

-
master
TBS093A 2024-06-04 22:54:07 +02:00
parent 9b413193af
commit cf9b9e615a
1 changed files with 77 additions and 71 deletions

View File

@ -1,6 +1,23 @@
$background_color: #242424;
$color: #a6a6a6;
$color_visited: gray;
$color_hover: #dfdfdf;
$color_active: #a6a6a6;
$div_background_color: #1038a7;
$title_font_family: Roboto;
$title_font_size: 21pt;
$regular_font_family: Lato;
$regular_font_size: 12pt;
$regular_image_font_size: 10.5pt;
$foot_font_size: 9.8pt;
body { body {
background-color: white; background-color: $background_color;
color: #272727; color: $color;
} }
@font-face { @font-face {
@ -13,36 +30,25 @@ body {
src: url("../images/Lato-Regular.ttf"); src: url("../images/Lato-Regular.ttf");
} }
$div_background_color: rgb(16, 56, 167);
$title_font_family: Roboto;
$title_font_size: 21pt;
$regular_font_family: Lato;
$regular_font_size: 12pt;
$regular_image_font_size: 10.5pt;
$foot_font_size: 9.8pt;
.global_segment { .global_segment {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 21cm; width: 21cm;
a:link { a:link {
color: white; color: $background_color;
} }
a:visited { a:visited {
color: #dfdfdf; color: $color_visited;
} }
a:hover { a:hover {
color: gray; color: $color_hover;
} }
a:active { a:active {
color: #a6a6a6; color: $color_active;
} }
ul { ul {
@ -52,7 +58,7 @@ $foot_font_size: 9.8pt;
li { li {
padding-top: 15px; padding-top: 15px;
} }
.title_bar { .title_bar {
margin-top: 20px; margin-top: 20px;
@ -75,12 +81,12 @@ $foot_font_size: 9.8pt;
float: left; float: left;
margin-top: 30px; margin-top: 30px;
width: 100%; width: 100%;
.segment_image { .segment_image {
float: left; float: left;
width: 210px; width: 210px;
height:250px; height:250px;
color: white; color: $color;
font-weight: bold; font-weight: bold;
background-color: $div_background_color; background-color: $div_background_color;
} }
@ -88,7 +94,7 @@ $foot_font_size: 9.8pt;
.cover { .cover {
object-fit: cover; object-fit: cover;
object-position: top; object-position: top;
} }
.foot_content { .foot_content {
font-size: $foot_font_size; font-size: $foot_font_size;
@ -99,7 +105,7 @@ $foot_font_size: 9.8pt;
padding: 15px; padding: 15px;
width: 180px; width: 180px;
height:220px; height:220px;
color: white; color: $color;
font-size: $regular_image_font_size; font-size: $regular_image_font_size;
font-family: $regular_font_family; font-family: $regular_font_family;
font-weight: bold; font-weight: bold;
@ -111,79 +117,79 @@ $foot_font_size: 9.8pt;
} }
} }
.segment_title { .segment_title {
float: left; float: left;
width: 250px; width: 250px;
padding-top: 12px; padding-top: 12px;
height: 45px; height: 45px;
color: white; color: $color;
font-family: $title_font_family; font-family: $title_font_family;
font-size: $title_font_size; font-size: $title_font_size;
text-align: center; text-align: center;
background-color: $div_background_color; background-color: $div_background_color;
} }
.segment_content_normal { .segment_content_normal {
float: left; float: left;
width: 100%; width: 100%;
font-family: $regular_font_family; font-family: $regular_font_family;
font-size: $regular_font_size; font-size: $regular_font_size;
text-align: justify; text-align: justify;
margin-top: 15px; margin-top: 15px;
ul { ul {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
list-style-type: none; list-style-type: none;
} }
ul li::before { ul li::before {
content: ">> "; content: ">> ";
color: $div_background_color; color: $div_background_color;
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
width: 2em; width: 2em;
margin-left: -2em; margin-left: -2em;
} }
.segment_content_title { .segment_content_title {
margin-top: 9px; margin-top: 9px;
margin-bottom: 9px; margin-bottom: 9px;
} }
} }
.segment_content_work { .segment_content_work {
float: left; float: left;
width: 100%; width: 100%;
font-family: $regular_font_family; font-family: $regular_font_family;
font-size: $regular_font_size; font-size: $regular_font_size;
text-align: justify; text-align: justify;
ul { ul {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
list-style-type: none; list-style-type: none;
margin-left: 18px; margin-left: 18px;
padding-bottom: 15px; padding-bottom: 15px;
} }
ul li::before { ul li::before {
content: "+ >"; content: "+ >";
color: $div_background_color; color: $div_background_color;
background-color: white; background-color: $background_color;
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
width: 2em; width: 2em;
margin-left: -2.875em; margin-left: -2.875em;
} }
.segment_content_title { .segment_content_title {
margin-top: 9px; margin-top: 9px;
margin-bottom: 9px; margin-bottom: 9px;
} }
} }
.segment_title_image { .segment_title_image {
float: left; float: left;
margin-top: 100px; margin-top: 100px;