slowtwitch-wp-theme/style.css

570 lines
9.0 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-31 19:20:12 +00:00
a {
color: #0b4fa0;
}
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-31 19:20:12 +00:00
}
/* FRONT PAGE STUFF */
.front-page-most-recent-post {
margin-bottom: 20px;
}
.front-page-most-recent-post img {
object-fit: cover;
width: 100%;
height: auto;
display: inline-block;
vertical-align: middle;
}
.front-page-post-grid-card img {
object-fit: cover;
width: 250px;
height: 250px;
}
.front-page-post-grid-card-container {
display: flex;
flex-wrap: wrap;
}
.front-page-post-grid-card-container p {
margin-bottom: 10px;
}
.front-page-post-grid-card {
margin-right: auto;
}
.front-page-article-grid-ad-mock {
width: 100%;
}
.slowtwitch-divider {
border-top: 5px solid #0b4fa0;
}
.slowtwitch-horizontal-ad {
width: 100%;
}
@media screen and (max-width: 940px) {
.front-page-post-grid-card {
max-width: 250px;
}
.front-page-post-grid-card img {
width: 100%;
}
.front-page-most-recent-post h4 {
font-size: 24px;
margin-bottom: 0;
}
.front-page-most-recent-post .front-page-most-recent-post-excerpt {
font-size: 18px;
margin-bottom: 0;
}
.front-page-post-grid-card {
max-width: 155px;
}
}
@media screen and (max-width: 550px) {
.front-page-post-grid-card-container {
justify-content: center;
align-content: center;
width: 100%;
}
.front-page-post-grid-card {
margin: 0;
}
.front-page-post-grid {
width: 100%;
}
}
@media screen and (max-width: 375px) {
.front-page-post-grid-card {
width: 90%;
max-width: fit-content;
}
}
/* FOOTER STUFF */
.partner-link-list a {
font-size: 24px;
}
.footer-links {
height: 35px;
line-height: 35px;
margin-top: 25px;
margin-bottom: 25px;
}
.footer-links-slowtwitch {
background: linear-gradient(90deg, rgba(59,128,209,1) 50%, rgba(11,79,160,1) 100%);
text-align: center;
color: #fff;
}
.footer-links-slowtwitch a {
color: #fff;
text-decoration: none;
margin: 0 5px;
}
.footer-links-youtube {
background-color: black;
height: 35px;
}
.footer-links img {
display: block;
margin: 6px auto;
}
.footer-links-facebook {
background-color: #0b4fa0;
height: 35px;
}
.footer-links-vimeo {
background-color: #19B7EA;
height: 35px;
}
.footer-links-twitter {
background-color: #1da1f2;
height: 35px;
}
.slowtwitch-logo-footer {
display: block;
margin-left: auto;
margin-top: 5px;
margin-bottom: 5px;
}
.slowtwitch-logo-footer-container {
text-align: right;
}
.footer-termination-container {
background-color: #0b4fa0;
color: #fff;
}
.footer-termination-container .column {
min-height: 100px;
background-color: #0b4fa0;
display: flex;
align-content: center;
justify-content: center;
}
.footer-termination-container span {
color: white;
margin-top: 15px;
}
.advertise-with-us-footer-container img {
margin: 10px 15px;
}
.footer-copyright {
margin: 15px 5px;
2024-06-04 18:17:13 +00:00
}
/* Posts */
.article-title {
font-weight: 400;
2024-06-04 21:37:08 +00:00
margin-top: 0;
2024-06-04 18:17:13 +00:00
}
.img-responsive {
display: block;
margin: auto;
max-width: 100%;
float: left;
margin-top: 20px;
margin-bottom: 20px;
margin-right: 10px;
}
.article-sidebar-ad {
margin-top: 30px;
width: 100%;
}
.article-author-box {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px dotted #272727;
border-left: 1px dotted #272727;
}
.article-author-box img {
width: 15px;
}
.article-author-name {
margin-left: 2px;
}
/* related posts */
.related-posts-grid {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.related-posts-card {
display: block;
text-align: center;
}
2024-06-04 21:37:08 +00:00
@media screen and (max-width: 550px) {
.img-responsive{
width: 100%;
}
}
2024-06-04 18:17:13 +00:00
/* BREADCRUMBS */
#breadcrumbs{
list-style:none;
2024-06-04 21:37:08 +00:00
margin-top:30px;
margin-bottom: 0;
2024-06-04 18:17:13 +00:00
overflow:hidden;
}
#breadcrumbs li{
display:inline-block;
vertical-align:middle;
margin-right:15px;
}
#breadcrumbs .separator{
font-size:18px;
font-weight:100;
color:#ccc;
2024-06-04 21:37:08 +00:00
}
/* archives */
.archive-article-card {
display: flex;
justify-content: center;
align-items: center;
}
.archive-article-card img {
margin-right: 10px;
}
.archive-article-text-block {
color: black;
}
.pagination {
text-align: right;
}
.pagination .nav-links {
background-color: #fff;
font-size: 20px;
}
.search-results-container {
margin-top: 20px;
}
.four-o-four-post-grid {
display: flex;
flex-wrap: wrap;
2024-05-29 21:19:48 +00:00
}