css: made some variables

This commit is contained in:
Karma Riuk 2023-09-07 10:14:34 +02:00
parent c0f85d0e98
commit 2abd73e73c

View File

@ -9,13 +9,20 @@
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# General # General
--------------------------------------------------------------*/ --------------------------------------------------------------*/
:root {
--highlight: #ffb727;
--background: #fff;
--text-color: #444;
--text-color-alt: #fff;
--text-color-alt-2: #eee;
}
body { body {
font-family: "Open Sans", sans-serif; font-family: "Open Sans", sans-serif;
color: #444444; color: var(--text-color);
} }
a { a {
color: #ffb727; color: var(--highlight);
text-decoration: none; text-decoration: none;
} }
@ -43,7 +50,7 @@ h6 {
right: 15px; right: 15px;
bottom: 15px; bottom: 15px;
z-index: 996; z-index: 996;
background: #ffb727; background: var(--highlight);
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 4px; border-radius: 4px;
@ -52,13 +59,13 @@ h6 {
.back-to-top i { .back-to-top i {
font-size: 28px; font-size: 28px;
color: #fff; color: var(--text-color-alt);
line-height: 0; line-height: 0;
} }
.back-to-top:hover { .back-to-top:hover {
background: #ffc550; background: #ffc550;
color: #fff; color: var(--text-color-alt);
} }
.back-to-top.active { .back-to-top.active {
@ -113,7 +120,7 @@ h6 {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 10px 15px; padding: 10px 15px;
color: #fff; color: var(--text-color-alt);
white-space: nowrap; white-space: nowrap;
transition: 0.3s; transition: 0.3s;
font-size: 12px; font-size: 12px;
@ -134,7 +141,7 @@ h6 {
.navbar .active, .navbar .active,
.navbar .active:focus, .navbar .active:focus,
.navbar li:hover > a { .navbar li:hover > a {
color: #ffb727; color: var(--highlight);
} }
.navbar .dropdown ul { .navbar .dropdown ul {
@ -173,7 +180,7 @@ h6 {
.navbar .dropdown ul a:hover, .navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover, .navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a { .navbar .dropdown ul li:hover > a {
color: #ffb727; color: var(--highlight);
} }
.navbar .dropdown:hover > ul { .navbar .dropdown:hover > ul {
@ -269,7 +276,7 @@ h6 {
.navbar-mobile a:hover, .navbar-mobile a:hover,
.navbar-mobile .active, .navbar-mobile .active,
.navbar-mobile li:hover > a { .navbar-mobile li:hover > a {
color: #ffb727; color: var(--highlight);
} }
.navbar-mobile .getstarted, .navbar-mobile .getstarted,
@ -304,7 +311,7 @@ h6 {
.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a { .navbar-mobile .dropdown ul li:hover > a {
color: #ffb727; color: var(--highlight);
} }
.navbar-mobile .dropdown > .dropdown-active { .navbar-mobile .dropdown > .dropdown-active {
@ -349,11 +356,11 @@ h6 {
margin: 0 0 10px 0; margin: 0 0 10px 0;
font-size: 64px; font-size: 64px;
font-family: "Satisfy", serif; font-family: "Satisfy", serif;
color: #fff; color: var(--text-color-alt);
} }
#hero h2 { #hero h2 {
color: #eee; color: var(--text-color-alt-2);
margin-bottom: 50px; margin-bottom: 50px;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
@ -372,7 +379,7 @@ h6 {
} }
#hero .btn-scroll:hover { #hero .btn-scroll:hover {
color: #ffb727; color: var(--highlight);
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
@ -550,7 +557,7 @@ section {
.about .content ul i { .about .content ul i {
font-size: 16px; font-size: 16px;
margin-right: 5px; margin-right: 5px;
color: #ffb727; color: var(--highlight);
line-height: 0; line-height: 0;
} }
@ -565,7 +572,7 @@ section {
.about .content .count-box i { .about .content .count-box i {
display: block; display: block;
font-size: 36px; font-size: 36px;
color: #ffb727; color: var(--highlight);
float: left; float: left;
line-height: 0; line-height: 0;
} }
@ -641,7 +648,7 @@ section {
width: 1px; width: 1px;
height: 10px; height: 10px;
transition: 0.9s; transition: 0.9s;
background-color: #ffb727; background-color: var(--highlight);
} }
/*-------------------------------------------------------------- /*--------------------------------------------------------------
@ -673,7 +680,7 @@ section {
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
color: #ffb727; color: var(--highlight);
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -707,21 +714,25 @@ section {
border-radius: 50px; border-radius: 50px;
left: -9px; left: -9px;
top: 0; top: 0;
background: #fff; background: white;
border: 2px solid #82909c; border: 2px solid var(--highlight);
}
.resume .resume-item.secondary::before {
border-color: #82909c;
} }
.btn { .btn {
font-size: 20px; font-size: 20px;
border-color: #ffb727; border-color: var(--highlight);
color: #ffb727; color: var(--highlight);
transition: background-color 1s; transition: background-color 1s;
} }
.btn:hover { .btn:hover {
transition: background-color, color, border-color; transition: background-color, color, border-color;
color: #fff; color: #fff;
background-color: #ffb727; background-color: var(--highlight);
} }
/*-------------------------------------------------------------- /*--------------------------------------------------------------
@ -752,7 +763,7 @@ section {
.services .icon i { .services .icon i {
font-size: 36px; font-size: 36px;
line-height: 1; line-height: 1;
color: #ffb727; color: var(--highlight);
} }
.services .title { .services .title {
@ -773,11 +784,11 @@ section {
} }
.services .icon-box:hover { .services .icon-box:hover {
border-color: #ffb727; border-color: var(--highlight);
} }
.services .icon-box:hover .title a { .services .icon-box:hover .title a {
color: #ffb727; color: var(--highlight);
} }
/*-------------------------------------------------------------- /*--------------------------------------------------------------
@ -873,7 +884,7 @@ section {
} }
.testimonials .swiper-pagination .swiper-pagination-bullet-active { .testimonials .swiper-pagination .swiper-pagination-bullet-active {
background-color: #ffb727; background-color: var(--highlight);
} }
@media (min-width: 992px) { @media (min-width: 992px) {
@ -899,7 +910,7 @@ section {
line-height: 1; line-height: 1;
padding: 7px 10px; padding: 7px 10px;
text-transform: uppercase; text-transform: uppercase;
color: #444444; color: var(--text-color);
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
border: 2px solid #fff; border: 2px solid #fff;
} }
@ -907,7 +918,7 @@ section {
.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active { .portfolio #portfolio-flters li.filter-active {
color: #f3a200; color: #f3a200;
border-color: #ffb727; border-color: var(--highlight);
} }
.portfolio .portfolio-item { .portfolio .portfolio-item {
@ -999,14 +1010,14 @@ section {
height: 12px; height: 12px;
background-color: #fff; background-color: #fff;
opacity: 1; opacity: 1;
border: 1px solid #ffb727; border: 1px solid var(--highlight);
} }
.portfolio-details .portfolio-details
.portfolio-details-slider .portfolio-details-slider
.swiper-pagination .swiper-pagination
.swiper-pagination-bullet-active { .swiper-pagination-bullet-active {
background-color: #ffb727; background-color: var(--highlight);
} }
.portfolio-details .portfolio-info { .portfolio-details .portfolio-info {
@ -1071,7 +1082,7 @@ section {
.pricing h4 { .pricing h4 {
font-size: 36px; font-size: 36px;
color: #ffb727; color: var(--highlight);
font-weight: 600; font-weight: 600;
font-family: "Open Sans", sans-serif; font-family: "Open Sans", sans-serif;
margin-bottom: 20px; margin-bottom: 20px;
@ -1092,7 +1103,7 @@ section {
.pricing ul { .pricing ul {
padding: 0; padding: 0;
list-style: none; list-style: none;
color: #444444; color: var(--text-color);
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 14px;
@ -1103,7 +1114,7 @@ section {
} }
.pricing ul i { .pricing ul i {
color: #ffb727; color: var(--highlight);
font-size: 18px; font-size: 18px;
padding-right: 4px; padding-right: 4px;
} }
@ -1121,7 +1132,7 @@ section {
} }
.pricing .btn-buy { .pricing .btn-buy {
background: #ffb727; background: var(--highlight);
display: inline-block; display: inline-block;
padding: 8px 35px; padding: 8px 35px;
border-radius: 4px; border-radius: 4px;
@ -1140,7 +1151,7 @@ section {
.pricing .featured h3 { .pricing .featured h3 {
color: #fff; color: #fff;
background: #ffb727; background: var(--highlight);
} }
.pricing .advanced { .pricing .advanced {
@ -1152,7 +1163,7 @@ section {
z-index: 1; z-index: 1;
font-size: 14px; font-size: 14px;
padding: 1px 0 3px 0; padding: 1px 0 3px 0;
background: #ffb727; background: var(--highlight);
color: #fff; color: #fff;
} }
@ -1160,7 +1171,7 @@ section {
# Contact Me # Contact Me
--------------------------------------------------------------*/ --------------------------------------------------------------*/
.contact .info-box { .contact .info-box {
color: #444444; color: var(--text-color);
text-align: center; text-align: center;
box-shadow: 0 0 30px rgba(214, 215, 216, 0.6); box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
padding: 20px 0 30px 0; padding: 20px 0 30px 0;
@ -1168,7 +1179,7 @@ section {
.contact .info-box i.bx { .contact .info-box i.bx {
font-size: 24px; font-size: 24px;
color: #ffb727; color: var(--highlight);
border-radius: 50%; border-radius: 50%;
padding: 15px; padding: 15px;
background: #fff6e4; background: #fff6e4;
@ -1214,8 +1225,8 @@ section {
.contact .social-links a:hover { .contact .social-links a:hover {
color: #fff; color: #fff;
border-color: #ffb727; border-color: var(--highlight);
background: #ffb727; background: var(--highlight);
} }
.contact .php-email-form { .contact .php-email-form {
@ -1281,7 +1292,7 @@ section {
.contact .php-email-form input::focus, .contact .php-email-form input::focus,
.contact .php-email-form textarea::focus { .contact .php-email-form textarea::focus {
background-color: #ffb727; background-color: var(--highlight);
} }
.contact .php-email-form input { .contact .php-email-form input {
@ -1293,7 +1304,7 @@ section {
} }
.contact .php-email-form button[type="submit"] { .contact .php-email-form button[type="submit"] {
background: #ffb727; background: var(--highlight);
border: 0; border: 0;
padding: 10px 24px; padding: 10px 24px;
color: #fff; color: #fff;
@ -1366,7 +1377,7 @@ section {
#footer .social-links a { #footer .social-links a {
font-size: 18px; font-size: 18px;
display: inline-block; display: inline-block;
background: #ffb727; background: var(--highlight);
color: #fff; color: #fff;
line-height: 1; line-height: 1;
padding: 8px 0; padding: 8px 0;