autonomic-block-theme/style.css
Aadil Ayub b5c85b550c
All checks were successful
continuous-integration/drone/push Build is passing
add borders to values section on mobile
2023-09-04 15:57:53 +05:00

197 lines
3.8 KiB
CSS

/*
Theme Name: Autonomic Block Theme
Author: Autonomic Co-operative
Author URI: https://autonomic.zone
Description: Block-enabled WordPress theme for http://autonomic.zone
Tags: full-site-editing
Text Domain: autonomic
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/
html, body {
height: 100%;
}
.wp-site-blocks {
display: flex;
flex-direction: column;
height: 100%;
}
@container (max-width: 20ch) {
.wp-site-blocks h2::before {
width: 7ch;
}
}
.home .wp-site-blocks h2 {
color: var(--wp--preset--color--primary)
}
.wp-block-navigation-item.current-menu-item {
color: var(--wp--preset--color--secondary)
}
.wp-block-navigation-item {
text-align: end;
}
.wp-site-blocks h2 a {
text-decoration: none;
}
.wp-site-blocks .home-flower {
margin-bottom: -90px !important;
z-index: -20;
position: relative;
width: 262px;
margin-left: auto;
}
.wp-site-blocks footer {
flex-grow: 1;
}
.wp-site-blocks .footer {
height: 100%;
}
.nav-menu {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo-wrapper {
width: 32px;
}
.wp-site-blocks .wp-block-group:nth-child(1) .nav-menu {
padding-top: 0 !important;
}
.wp-site-blocks .wp-block-group:nth-child(1) .logo-wrapper {
padding-top: 0 !important;
}
@media screen and (max-width: 782px){
.nav-menu {
padding-left: 1rem;
padding-right: 1rem;
}
.wp-site-blocks .wp-block-group:nth-child(1) {
padding-top: 24px !important;
}
ul.what-we-offer {
padding-left: revert !important;
}
.home .wp-site-blocks h2 {
margin-top: 60px;
}
.home .wp-site-blocks h1.wp-block-heading {
margin-top: 28px !important;
}
#our-values.values-list {
margin-block: 75px
}
.wp-site-blocks footer .autonomic-logo {
float: left !important;
margin-inline-start: 0 !important;
}
.services-heading {
text-align: left;
border-bottom: 2px dotted;
padding: 0;
width: fit-content;
margin-inline-start: var(--wp--preset--spacing--40);
line-height: 1.5 !important;
margin-top: 40px !important;
}
#our-values.values-list div:nth-child(2) {
border-right-width: 0 !important;
border-left-width: 0 !important;
border-block: 1px solid;
}
}
@media screen and (min-width: 600px){
.nav-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
display: none;
}
.nav-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
display: inherit;
}
}
/* copied over from "additional css" panel in wp
TODO: integrate this with the rest of the css
*/
@media screen and (max-width: 600px) {
.home-flower {
display: none;
}
.wp-container-13 .wp-block-group {
padding-top: 0 !important;
}
h1, p {
padding: 1rem;
}
.footer {
padding-inline: 1rem;
}
.footer p {
padding: 0;
}
.wp-site-blocks .wp-block-group:nth-child(1) {
padding-top: 24px !important;
}
}
@media screen and (min-width: 782px){
.nav-menu {
display: block;
padding-right: 30%;
}
.nav-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
display: block;
}
.nav-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
display: none;
}
.logo-wrapper {
padding-bottom: 88px;
width: inherit;
}
.wp-site-blocks .category-portfolio h2 {
margin-block: 40px !important;
}
}