code optimization

This commit is contained in:
Luke 2023-03-11 11:35:36 +01:00 committed by GitHub
parent bad127b12f
commit 04b48b95ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,23 @@
* { * {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, img { html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
img {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
@ -18,43 +30,42 @@ html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, img {
/*- Base color -*/ /*- Base color -*/
$main-color: #E9E9E9; $main-color: #e9e9e9;
$background-color: #0F0F0F; $background-color: #0f0f0f;
$text-color: #888888; $text-color: #888888;
/*- Base settings -*/ /*- Base settings -*/
html { html {
background-color: $background-color; background-color: $background-color;
font-size: 16px; font-size: 16px;
scroll-behavior: smooth; scroll-behavior: smooth;
@media (min-width: 940px) { @media (min-width: 940px) {
font-size: 18px; font-size: 18px;
} }
line-height: 1.5; line-height: 1.5;
color: $text-color; color: $text-color;
} }
/*- Link -*/ /*- Link -*/
a { a {
color: $main-color; color: $main-color;
outline: 0; outline: 0;
border-bottom: 2px dotted #6a6d72; border-bottom: 2px dotted #6a6d72;
text-decoration: none; text-decoration: none;
font-weight: 700; font-weight: 700;
-webkit-transition: all .3s ease; -webkit-transition: all 0.3s ease;
-moz-transition: all .3s ease; -moz-transition: all 0.3s ease;
-ms-transition: all .3s ease; -ms-transition: all 0.3s ease;
-o-transition: all .3s ease; -o-transition: all 0.3s ease;
transition: all .3s ease; transition: all 0.3s ease;
&:hover, &:hover,
&:focus { &:focus {
color: #999999; color: #999999;
border-bottom: 2px dotted #333333; border-bottom: 2px dotted #333333;
} }
} }
a#nav-menu { a#nav-menu {
border-bottom: none; border-bottom: none;
} }