/*! Theme Name: BusinessWebX Theme URI: http://underscores.me/ Author: Underscores.me Author URI: http://underscores.me/ Description: Description Version: 1.0.0 Tested up to: 5.4 Requires PHP: 5.6 License: GNU General Public License v2 or later License URI: LICENSE Text Domain: businesswebx Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned. BusinessWebX is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ */ @import "./normalize.scss"; @import "./base/_variables.scss"; @import "./base/_mixins.scss"; // @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); * { font-family: 'Poppins', sans-serif; } div, article { box-sizing: border-box; } a { text-decoration: none; color: inherit; } p { line-height: 1.5; font-size: 1rem; font-weight: 400; } /* Header */ .bwp-navbar { display: flex; width: 100%; justify-content: center; background-color: transparent; padding: 10px 0; } // .elementor-container { // width: 100%; // } .text-theme { color: $primary-color; } .bwp-navbar { position: relative; height: auto; top: 0; left: 0; width: 100%; z-index: 1; background-color: #eee; } .header { position: relative; } .bwp-navbar { .main-menu { color: $primary-color; display: flex; justify-content: space-between; } .main-logo { display: flex; align-items: center; img { width: 150px; height: auto; } } .offcanvas-menu>div>ul { list-style: none; >li { display: inline-block; position: relative; >a { font-weight: 500; padding: 15px 20px; color: $white-color; } .nav-dropdown { position: absolute; transform: translate(100%, 100%); // top: 0; // left: 0; a { font-weight: 500; padding: 10px 10px; color: $text-color; } } .sub-menu { position: absolute; transform: translate(-100%, -200%); list-style: none; background: #eee; padding: 0; width: auto; margin: 0; margin-top: 0; opacity: 1; // display: none; margin: 0; min-width: 100px; transition: opacity 2s linear display 5s linear; li a { padding: 15px 15px; display: block; color: #000; } } >.sub-menu { padding-top: 20px; background-color: transparent; li { background-color: #eee; } } // >.sub-menu { // position: absolute; // list-style: none; // background: #eee; // // padding: 10px; // // left: -15%; // width: auto; // margin: 0; // margin-top: 0; // opacity: 0; // display: none; // transition: opacity 2s linear display 5s linear; // li a { // padding: 10px 5px; // display: block; // color: #000; // } // } &:hover { .sub-menu { transform: translate(0, 0); opacity: 1; // display: block; transition: opacity 2s linear display 5s linear; } } } } } .bwp-navbar { .menu-icon { // display: none; background-color: transparent; padding: inherit; margin: inherit; } @media (max-width: 768px) { .main-menu { flex-direction: column; } .main-nav { padding: 0 !important; } .container { width: 100%; } .main-logo { justify-content: space-between; width: 100%; padding: 20px 0; } .menu-icon, .menu-icon i { color: white; } .menu-icon { top: 50%; left: 50%; transform: translate(-50%, -50%); position: absolute; width: 50px; margin: inherit; background-color: transparent !important; padding: initial; } .menu-icon:before, .menu-icon:after, .menu-icon div { background: #fff; content: ""; display: block; height: 6px; border-radius: 3px; margin: 7px 0; transition: 0.5s; } .menu-icon-wrapper { display: block; position: relative; transform: scale(0.6); margin-right: 20px; } .menu-icon.active:before { transform: translateY(12px) rotate(135deg); } .menu-icon.active:after { transform: translateY(-12px) rotate(-135deg); } .menu-icon.active div { transform: scale(0); } .offcanvas-menu { display: none; width: 100%; background-color: #fff; overflow: hidden; box-shadow: 2px 6px 13px rgba(0, 0, 0, 0.15); li { width: 100%; a { display: block; width: 100%; color: #000 !important; } } & .active { display: block; } } } } /** * Skip Link */ a.skip-main { left: -999px; position: absolute; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: -999; } a.skip-main:focus { left: auto; top: auto; width: 30%; height: auto; overflow: auto; margin: 0 35%; padding: 5px; font-size: 20px; outline: 3px solid red; text-align: center; z-index: 999; } .bwp-navbar.navbar-transparent { position: absolute; background-color: transparent; color: $white-color; .main-nav>li>a { color: $white-color; } } H1, H2, H3, H4, H5, H6 { margin-bottom: 0; span.text-theme { color: $primary-color; font-weight: inherit; } } /** * Section Header */ .section-hero { background-color: #fff; padding: 50px 50px; .bwp-section-title { font-size: 70pt; margin-bottom: 20px; } .bwp-section-description { font-size: 34pt; } .button { padding: 10px 15px; background-color: $primary-color; color: #fff; margin-top: 50px; display: inline-block; border-radius: 5px; } } .elementor-widget-heading .elementor-heading-title.elementor-size-xxl { font-size: 70pt; } .gallery-list { display: flex; flex-wrap: wrap; .gallery-item { height: 400px; margin: 10px; overflow: hidden; position: relative; .gallery-img { transition: transform .5s; transform: scale(1); width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; &:hover { background-size: cover; transform: scale(1.2); transition: transform .5s; } } } } .site-footer { background: #fff; margin-top: 0; .footer-copyright { // width: 100%; background-color: #000; color: #fff; padding: 20px 15px; text-align: center; } } /** * Blog Single */ main {} @mixin min($bp, $max: "null", $device: "screen") { @if $max =="null" { @media only #{$device} and (min-width: #{$bp}) { @content; } } @else { @media only #{$device} and (min-width: #{$bp}) and (max-width: #{$max}) { @content; } } } @function bp($bp) { @return map-get($breakpoints, $bp); } $breakpoints: ( na: 0px, // For BS grid xs: 320px, // Smartphone sm: 600px, // Tablets md: 900px, // Tablets Landscape and small desktops lg: 1200px, // Desktops xl: 1800px, // Large Desktop ); @function container($container-size, $true-val: false) { @return map-get($container-sizes, $container-size); } $container-sizes: ( sm: map-get($breakpoints, sm) - 30px, md: map-get($breakpoints, md) - 40px, lg: map-get($breakpoints, lg) - 50px, xl: map-get($breakpoints, xl) - 400px ); .container { padding-right: 1rem; padding-left: 1rem; &:not(.is-fluid) { margin: 0 auto; @each $bp, $container-size in $container-sizes { @include min(#{bp(#{$bp}) }) { width: 100%; max-width: container(#{$bp}); } } } } .page-header { display: block; position: relative; width: 100%; background-color: $primary-color; color: $white-color; background-position: center; background-size: cover; background-attachment: fixed; padding: 250px 0 50px 0; overflow: hidden; z-index: 0; .entry-title { font-size: 50px; font-weight: 700; } &:after { background: $primary-color; background-color: rgba($primary-color, .75); content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } .container { z-index: 999; display: block !important; } .category { display: block; padding: 15px 0; a { color: #fff; display: inline-block; padding: 0 10px; } } } .post-thumbnail { background-color: #ccc; img { max-width: 100%; height: auto; } } .posts-list { display: flex; flex-wrap: wrap; padding-top: 20px; article { width: calc(100%); margin: 15px 0; } } article { background-color: #fff; position: relative; .post-thumbnail { height: 450px; overflow: hidden; img { width: 100%; object-fit: cover; min-height: 100%; } } .entry-header { display: block; width: 100%; overflow: hidden; z-index: 0; padding: 0 15px; padding-top: 20px; } .entry-meta { margin-top: 15px; color: #a9a9a9; font-weight: bold; } .entry-content { padding: 0 15px; } } article.single-article { .entry-content { padding: 50px 0; h1, h2, h3, h4, h5, h6 { margin-bottom: 10px; } img { max-width: 100%; } } .post-meta { display: flex; align-items: center; justify-content: start; list-style: none; padding: 0; li { display: block; padding: 10px 15px; } } .post-tags { font-size: 10px; a { display: inline-block; margin: 5px; padding: 7px 15px; // border: 1px solid #eee; background-color: #eee; border-radius: 25px; color: $text-color; } } } article.single-page .entry-content { padding: 0; } .blog, .archive { .container { display: flex; } .left-side { padding: 0 20px; width: 60%; } .right-side { width: 40%; } aside { margin-top: 50px; section { margin-bottom: 15px; padding: 15px; background-color: $white-color; } ul { list-style: none; padding-inline-start: 0; li { padding: 10px 0; } } } } .navigation.pagination { width: 100%; } .nav-links { width: 100%; display: flex; justify-content: end; margin-bottom: 10px; a, .page-numbers { display: block; background-color: #fff; padding: 10px 15px; margin: 10px 0; &.current { background-color: $primary-color; color: $white-color; } } } /** * WPForms */ .wpforms-field-container { .wpforms-field { // margin: 10px; label { display: block; margin-top: 20px; } input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=month], input[type=number], input[type=password], input[type=range], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea { background-color: #fff; border: 1px solid #eee; padding: 10px 15px; width: 100%; display: block; margin-top: 10px; border-radius: 5px; } .wpforms-field-row { display: flex; margin-bottom: 15px; } .wpforms-field-row-block { margin-right: 10px; } .wpforms-one-half { width: calc(50% - 20px); } .wpforms-field-sublabel { margin-top: 10px; } .wpforms-sublabel-hide { display: none; } } } button { display: block; padding: 15px 30px; margin-top: 20px; background-color: $primary-color !important; color: #fff !important; border: 0; cursor: pointer; &:hover { background-color: #000 !important; } } button.wpforms-submit { display: block; padding: 15px 30px !important; margin-top: 20px; background-color: $primary-color !important; color: #fff !important; border: 0; cursor: pointer; &:hover { background-color: #000 !important; } }