slowtwitch-wp-theme/style.css

279 lines
4.4 KiB
CSS
Raw Normal View History

2024-05-29 01:20:50 +00:00
/*
Theme Name: Slowtwitch Wp
Text Domain: Slowtwitch
Version: 1.0.0
2024-05-29 21:19:48 +00:00
*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
* {
font-family: Oswald;
}
2024-05-30 18:42:32 +00:00
.hide-desktop {
display: none;
}
.slowtwitch-mobile-text-logo {
display: none;
margin-top: 15px;
}
2024-05-30 16:23:26 +00:00
.slowtwitch-desktop-header {
width: 100%;
}
.searchBarContainer {
border: none;
height: 2rem;
background-color: #fff;
border-radius: 2px;
box-sizing: border-box;
width: 20%;
max-width: 60%;
display: flex;
}
.slowtwitch-logo-social {
2024-05-30 19:28:06 +00:00
margin: 0 10px 0 10px;
2024-05-30 16:23:26 +00:00
}
.flex-row {
display: flex;
align-content: center;
justify-content: space-between;
margin-top: 5px;
margin-bottom: 5px;
}
.flex-row-right {
display: flex;
justify-content: end;
margin-top: 5px;
margin-bottom: 5px;
}
.slowtwitch-logo-header {
max-width: 25%;
}
.slowtwitch-ad-header {
max-width: 85%;
margin-left: auto;
}
.desktop-tag-logos img {
2024-05-30 19:28:06 +00:00
margin-top: 10px;
2024-05-30 16:23:26 +00:00
float: right;
}
.text-logo-header {
display: flex;
align-content: center;
justify-content: space-between;
border-bottom: 1px solid black;
}
.text-logo-header p {
margin-left: auto;
margin-top: 0;
margin-bottom: 0;
}
2024-05-29 21:19:48 +00:00
nav {
2024-05-30 16:23:26 +00:00
position: relative;
margin: 0 auto;
2024-05-29 21:19:48 +00:00
background-color: #0b4fa0;
width: 100%;
z-index: 999;
height: 32px;
line-height: 32px;
}
.main-menu-wrapper {
font-size: 15px;
text-transform: uppercase;
letter-spacing: 1.20px;
max-width: 1250px;
padding: 0 30px;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
}
.main-menu-wrapper ul {
list-style: none;
}
.main-menu-wrapper .nav-links {
display: inline-flex;
}
.nav-links li a {
color: #fff;
text-decoration: none;
padding: 4px 10px;
transition: all 0.3s ease;
}
.nav-links li a:hover {
background-color: #272727;
}
.nav-links .sub-menu {
background-color: #0b4fa0;
width: 180px;
position: absolute;
}
.sub-menu li {
margin-bottom: 0;
}
.sub-menu li a {
width: 100%;
display: block;
padding: 7px 0 7px 0;
text-align: center;
line-height: 32px;
}
.sub-menu {
margin: auto;
opacity: 0;
visibility: hidden;
width: 0;
background-color: #272727;
}
.nav-links li:hover .sub-menu {
opacity: 1;
visibility: visible;
}
.menu-cancel-btn {
font-size: 20px;
cursor: pointer;
position: absolute;
right: 30px;
top: 10px;
display: none;
color: #fff;
}
.menu-open-btn {
font-size: 20px;
cursor: pointer;
position: absolute;
right: 30px;
top: 10px;
display: none;
}
#open-btn {
display: none;
2024-05-30 18:42:32 +00:00
margin-left: 5px;
2024-05-29 21:19:48 +00:00
}
#cancel-btn {
display: none;
}
@media screen and (max-width: 940px) {
.menu-cancel-btn {
display: block;
}
.menu-open-btn {
display: block;
}
#open-btn:checked ~ .nav-links{
left: 0px;
}
nav {
background-color: #fff;
}
.main-menu-wrapper .nav-links {
position: fixed;
height: 100vh;
width: 100%;
max-width: 350px;
background-color: #0b4fa0;
display: block;
top: 0;
left: 0;
overflow-y: auto;
line-height: 50px;
padding: 50px 10px;
box-shadow: 0 15px 15px rgba(0,0,0,0.15);
transition: all 0.3s ease;
left: -500px;
}
.nav-links li {
margin: 15px 10px;
}
.nav-links li {
padding: 0 20px;
display: block;
font-size: 20px;
}
.nav-links .sub-menu {
position: static;
opacity: 1;
visibility: visible;
margin-left: 0;
top: 65px;
width: 100%;
}
.sub-menu li a {
text-align: start;
}
.nav-links .sub-menu li {
margin: 0;
}
.nav-links .sub-menu li a {
font-size: 18px;
}
.nav-links li a:hover {
background-color: #0b4fa0;
}
2024-05-30 16:23:26 +00:00
2024-05-30 18:42:32 +00:00
.desktop-tag-logos img {
2024-05-30 16:23:26 +00:00
display: none;
}
2024-05-30 18:42:32 +00:00
}
@media screen and (max-width: 550px) {
.hide-mobile {
display: none;
}
.slowtwitch-mobile-text-logo {
display: block;
}
2024-05-30 19:28:06 +00:00
.hide-desktop {
display: block;
}
.hide-desktop .searchBarContainer {
margin-left: 35px;
margin-top: 10px;
}
.hide-desktop .searchBarContainer button {
background-color: white;
}
2024-05-29 21:19:48 +00:00
}