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