styled properly the + -> and accedeix button. addes theme styles to wordpress admin

This commit is contained in:
jorge-vitrubio 2022-12-30 19:35:02 +01:00
parent 294dc62400
commit 651c4e9414
13 changed files with 2229 additions and 98 deletions

1868
adminstyles.css Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -195,6 +195,11 @@ require get_template_directory() . '/inc/login-functions.php';
require get_template_directory() . '/inc/archive-title.php';
/**
* Functions to add admin styles
*/
require get_template_directory() . '/inc/admin-style.php';
/**
* Functions to add guttemberg editor style
*/

11
inc/admin-style.php Normal file
View File

@ -0,0 +1,11 @@
<?php
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
// Update CSS within in Admin
function ofisuport_admin_style() {
wp_enqueue_style( 'admin-styles', get_stylesheet_directory_uri() . '/assets/css/adminstyles.css' );
// wp_enqueue_style( 'ofisuport-theme-styles', get_template_directory_uri().'/style.css');
}
add_action('admin_enqueue_scripts', 'ofisuport_admin_style');

View File

@ -38,6 +38,7 @@
"scripts": {
"watch": "node-sass sass/ -o ./ --source-map true --output-style expanded --indent-type tab --indent-width 1 -w",
"compile:css": "node-sass sass/ -o ./ && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
"compile:cssadmin": "node-sass -r --output-style compressed sass/adminstyles.scss -o assets/css/ && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
"compile:rtl": "rtlcss style.css style-rtl.css",
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
"lint:js": "wp-scripts lint-js 'js/*.js'",

31
sass/adminstyles.scss Normal file
View File

@ -0,0 +1,31 @@
// theme for editor admin, import style.sass and apply class before rest of it
// .wp-admin styles
.wp-admin {
.components-button.edit-post-fullscreen-mode-close.has-icon,
.edit-post-fullscreen-mode-close_site-icon {
background-color: #fff;
filter: invert(1);
}
}
// editor styles
.edit-post-visual-editor__content-area {
// import theme styles
@import "style";
// apply differences when not rendered properly
:where(.wp-block) {
max-width: 80rem;
}
.black-blocs .wp-block-column a::after {
display:none;
}
}
// modify internal paths to make objects locally available
@import "adminstyles/fonts";

View File

@ -0,0 +1,72 @@
/*
Your custom style
Add your custom styles in this file so it is easier to update the theme.
*/
@font-face {
font-family: 'din-regular';
src: url('../fonts/DIN-Regular.eot');
src: url('../fonts/DIN-Regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/DIN-Regular.woff2') format('woff2'),
url('../fonts/DIN-Regular.woff') format('woff'),
url('../fonts/DIN-Regular.ttf') format('truetype'),
url('../fonts/DIN-Regular.svg#fonts/DIN-Regular') format('svg');
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'din-medium';
src: url('../fonts/DIN-Medium.eot');
src: url('../fonts/DIN-Medium.eot?#iefix') format('embedded-opentype'),
url('../fonts/DIN-Medium.woff2') format('woff2'),
url('../fonts/DIN-Medium.woff') format('woff'),
url('../fonts/DIN-Medium.ttf') format('truetype'),
url('../fonts/DIN-Medium.svg#DIN-Medium') format('svg');
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'din-bold';
src: url('../fonts/DIN-Bold.eot');
src: url('../fonts/DIN-Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/DIN-Bold.woff2') format('woff2'),
url('../fonts/DIN-Bold.woff') format('woff'),
url('../fonts/DIN-Bold.ttf') format('truetype'),
url('../fonts/DIN-Bold.svg#DIN-Bold') format('svg');
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'din-light';
src: url('../fonts/DIN-Light.eot');
src: url('../fonts/DIN-Light.eot?#iefix') format('embedded-opentype'),
url('../fonts/DIN-Light.woff2') format('woff2'),
url('../fonts/DIN-Light.woff') format('woff'),
url('../fonts/DIN-Light.ttf') format('truetype'),
url('../fonts/DIN-Light.svg#DIN-Light') format('svg');
font-weight: 100;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'din-black';
src: url('../fonts/DIN-Black.eot');
src: url('../fonts/DIN-Black.eot?#iefix') format('embedded-opentype'),
url('../fonts/DIN-Black.woff2') format('woff2'),
url('../fonts/DIN-Black.woff') format('woff'),
url('../fonts/DIN-Black.ttf') format('truetype'),
url('../fonts/DIN-Black.svg#DIN-Black') format('svg');
font-weight: 900;
font-style: normal;
font-display: swap;
}

View File

@ -5,8 +5,7 @@ body {
.ofisuport-funder-name {
font-variant: all-petite-caps;
font-size: 1.1rem;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-bottom: 1px solid $color__black;
line-height: 0.9;
min-height: 2.2rem;
display: flex;

View File

@ -29,8 +29,6 @@
top: 0;
margin-bottom: 2rem;
background-color: $color__white;
i-moz-box-shadow: 0 15px 30px rgba(0,0,0,0.05), 0 1px 0 0 rgba(0,0,0,0.01);
-webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.05), 0 1px 0 0 rgba(0,0,0,0.01);
box-shadow: 0 15px 30px rgba(0,0,0,0.05), 0 1px 0 0 rgba(0,0,0,0.0);
.main {
display: flex;

View File

@ -1,30 +1,36 @@
.edit-post-fullscreen-mode-close_site-icon {
background-color: $color__white;
}
.black-blocs {
padding: $font__size-body 0;
gap: $font__size-body;
.wp-block-column{
padding: $font__size-body 0;
gap: $font__size-body;
.wp-block-column {
align-self: auto;
display: flex;
flex-direction: column;
position:relative;
position: relative;
min-height: 17rem;
padding: $font__size-body;
h1,h2,h3,h4,h5,h6 {
min-height: $font__size-body*4.8;
h1,
h2,
h3,
h4,
h5,
h6 {
min-height: $font__size-body * 4.8;
font-family: $font__black;
font-size: $font__size-body*2;
line-height: $font__line-height-body*0.8;
font-size: $font__size-body * 2;
line-height: $font__line-height-body * 0.8;
}
p {
font-family: $font__bold;
font-size: $font__size-body*0.9;
font-size: $font__size-body * 0.9;
}
a {
color: $color__white;
text-decoration: none;
&::after {
content: "+";
position: absolute;
@ -32,8 +38,10 @@
left: 0.7rem;
font-size: 5rem;
}
&:hover {
&:hover i {
color: $color__grey-light;
&::after {
content: ">";
font-size: 3rem;

View File

@ -1,4 +1,4 @@
/*!
/*
Theme Name: Oficina de Suport theme
Theme URI: http://underscores.me/

293
style.css
View File

@ -1,4 +1,4 @@
/*!
/*
Theme Name: Oficina de Suport theme
Theme URI: http://underscores.me/
@ -22,6 +22,7 @@ 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/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
@ -49,14 +50,19 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
- Alignments
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
/* Normalize
--------------------------------------------- */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
@ -68,6 +74,7 @@ html {
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
@ -93,6 +100,7 @@ h1 {
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
@ -114,6 +122,7 @@ pre {
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
@ -179,6 +188,7 @@ sup {
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
@ -188,6 +198,7 @@ img {
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
@ -333,6 +344,7 @@ textarea {
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
@ -349,6 +361,7 @@ summary {
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
@ -365,6 +378,7 @@ template {
/* Box sizing
--------------------------------------------- */
/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
@ -380,6 +394,7 @@ html {
/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
/* Typography
--------------------------------------------- */
body,
@ -389,12 +404,13 @@ select,
optgroup,
textarea {
color: #404040;
font-family: "din-regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1rem;
line-height: 1.3;
}
@media screen {
h1,
h2,
h3,
@ -404,52 +420,65 @@ textarea {
clear: both;
line-height: 1.1;
}
h1 {
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-light, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.8rem;
}
h2 {
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-light, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.5rem;
}
h3 {
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.3rem;
}
h4 {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.2rem;
}
h5 {
font-family: "din-medium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-medium, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.1rem;
}
h6 {
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-light, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.1rem;
}
.single h1 {
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
}
@media screen and (min-width: 48em) {
h1 {
font-size: 3.5rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 2rem;
}
h4 {
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.7rem;
}
h5 {
font-size: 1.5rem;
}
h6 {
font-size: 1.5rem;
}
@ -523,7 +552,7 @@ Your custom style
Add your custom styles in this file so it is easier to update the theme.
*/
@font-face {
font-family: 'din-regular';
font-family: din-regular;
src: url("assets/fonts/DIN-Regular.eot");
src: url("assets/fonts/DIN-Regular.eot?#iefix") format("embedded-opentype"), url("assets/fonts/DIN-Regular.woff2") format("woff2"), url("assets/fonts/DIN-Regular.woff") format("woff"), url("assets/fonts/DIN-Regular.ttf") format("truetype"), url("assets/fonts/DIN-Regular.svg#fonts/DIN-Regular") format("svg");
font-weight: 100;
@ -532,7 +561,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
@font-face {
font-family: 'din-medium';
font-family: din-medium;
src: url("assets/fonts/DIN-Medium.eot");
src: url("assets/fonts/DIN-Medium.eot?#iefix") format("embedded-opentype"), url("assets/fonts/DIN-Medium.woff2") format("woff2"), url("assets/fonts/DIN-Medium.woff") format("woff"), url("assets/fonts/DIN-Medium.ttf") format("truetype"), url("assets/fonts/DIN-Medium.svg#DIN-Medium") format("svg");
font-weight: 100;
@ -541,7 +570,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
@font-face {
font-family: 'din-bold';
font-family: din-bold;
src: url("assets/fonts/DIN-Bold.eot");
src: url("assets/fonts/DIN-Bold.eot?#iefix") format("embedded-opentype"), url("assets/fonts/DIN-Bold.woff2") format("woff2"), url("assets/fonts/DIN-Bold.woff") format("woff"), url("assets/fonts/DIN-Bold.ttf") format("truetype"), url("assets/fonts/DIN-Bold.svg#DIN-Bold") format("svg");
font-weight: 100;
@ -550,7 +579,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
@font-face {
font-family: 'din-light';
font-family: din-light;
src: url("assets/fonts/DIN-Light.eot");
src: url("assets/fonts/DIN-Light.eot?#iefix") format("embedded-opentype"), url("assets/fonts/DIN-Light.woff2") format("woff2"), url("assets/fonts/DIN-Light.woff") format("woff"), url("assets/fonts/DIN-Light.ttf") format("truetype"), url("assets/fonts/DIN-Light.svg#DIN-Light") format("svg");
font-weight: 100;
@ -559,7 +588,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
@font-face {
font-family: 'din-black';
font-family: din-black;
src: url("assets/fonts/DIN-Black.eot");
src: url("assets/fonts/DIN-Black.eot?#iefix") format("embedded-opentype"), url("assets/fonts/DIN-Black.woff2") format("woff2"), url("assets/fonts/DIN-Black.woff") format("woff"), url("assets/fonts/DIN-Black.ttf") format("truetype"), url("assets/fonts/DIN-Black.svg#DIN-Black") format("svg");
font-weight: 900;
@ -576,8 +605,7 @@ body {
.ofisuport-funder-name {
font-variant: all-petite-caps;
font-size: 1.1rem;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-bottom: 1px solid #000;
line-height: 0.9;
min-height: 2.2rem;
display: flex;
@ -632,7 +660,7 @@ dd {
padding: 0 0.2rem;
color: #fff;
background-color: #000;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.7rem;
text-transform: uppercase;
}
@ -689,7 +717,9 @@ a:visited {
color: #303030;
}
a:hover, a:focus, a:active {
a:hover,
a:focus,
a:active {
color: #707070;
}
@ -697,7 +727,8 @@ a:focus {
outline: thin dotted;
}
a:hover, a:active {
a:hover,
a:active {
outline: 0;
}
@ -712,12 +743,14 @@ a.button {
text-decoration: none;
}
.category-faq, .type-ofisuport-ajut {
.category-faq,
.type-ofisuport-ajut {
position: relative;
padding-bottom: 4rem;
}
.category-faq .entry-title a::after, .type-ofisuport-ajut .entry-title a::after {
.category-faq .entry-title a::after,
.type-ofisuport-ajut .entry-title a::after {
content: "+";
position: absolute;
bottom: 0;
@ -730,7 +763,8 @@ a.button {
line-height: 0.8;
}
.category-faq .entry-title a:hover::after, .type-ofisuport-ajut .entry-title a:hover::after {
.category-faq .entry-title a:hover::after,
.type-ofisuport-ajut .entry-title a:hover::after {
content: ">";
padding: 0 0.38rem;
font-size: 2.5rem;
@ -742,7 +776,7 @@ a.button {
position: absolute;
bottom: 1em;
left: 0.5em;
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-light, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1rem;
line-height: 0;
}
@ -791,7 +825,8 @@ input[type="submit"]:hover,
border-color: #111;
}
button:active, button:focus,
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
@ -819,7 +854,7 @@ input[type="submit"]:focus,
position: absolute;
right: 0.4rem;
top: 55%;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 2rem;
line-height: 0;
}
@ -836,7 +871,7 @@ input[type="submit"]:focus,
}
.type-ofisuport-ajut .button-more a {
font-size: 0px;
font-size: 0;
}
.type-ofisuport-ajut .button-more a::after {
@ -904,6 +939,7 @@ textarea {
# Layouts
--------------------------------------------------------------*/
@media screen {
.no-sidebar .site {
display: grid;
grid-template-columns: 1fr minmax(0, 35em) minmax(0, 35em) 1fr;
@ -911,49 +947,66 @@ textarea {
margin: auto;
padding: 0;
}
.no-sidebar .site > header {
grid-column: 1 / -1;
}
.no-sidebar .site > main {
grid-column: 2 / 4;
}
.no-sidebar .site > aside {
grid-column: 2 / 4;
}
.no-sidebar .site > footer {
grid-column: 1 / -1;
}
.no-sidebar .site-header {
position: sticky;
z-index: 900;
top: 0;
margin-bottom: 2rem;
background-color: #fff;
i-moz-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 1px 0 0 rgba(0, 0, 0, 0.01);
-webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 1px 0 0 rgba(0, 0, 0, 0.01);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 1px 0 0 rgba(0, 0, 0, 0);
}
.no-sidebar .site-header .main {
display: flex;
flex-flow: row;
align-items: center;
justify-content: space-around;
}
.no-sidebar .site-header .secondary {
display: flex;
flex-flow: column;
align-items: center;
}
.no-sidebar .site-main {
padding: 0 1rem;
}
.no-sidebar .site-main h1, .no-sidebar .site-main h2, .no-sidebar .site-main h3, .no-sidebar .site-main h4, .no-sidebar .site-main h5, .no-sidebar .site-main h6, .no-sidebar .site-main .entry-content {
.no-sidebar .site-main h1,
.no-sidebar .site-main h2,
.no-sidebar .site-main h3,
.no-sidebar .site-main h4,
.no-sidebar .site-main h5,
.no-sidebar .site-main h6,
.no-sidebar .site-main .entry-content {
margin: 0;
}
.no-sidebar .home-featured {
padding: 0 1rem;
}
.ofisuport-destacats, .ofisuport-featured, .archive-posts {
.ofisuport-destacats,
.ofisuport-featured,
.archive-posts {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1rem;
@ -961,42 +1014,63 @@ textarea {
}
@media screen and (min-width: 48em) {
.no-sidebar .site-header .main {
flex-flow: column;
}
.no-sidebar .site-header .secondary {
border-top: 1px solid #eee;
}
.no-sidebar .site-main {
padding: 0 2rem;
}
.no-sidebar .site-main h1, .no-sidebar .site-main h2, .no-sidebar .site-main h3, .no-sidebar .site-main h4, .no-sidebar .site-main h5, .no-sidebar .site-main h6, .no-sidebar .site-main .entry-content {
.no-sidebar .site-main h1,
.no-sidebar .site-main h2,
.no-sidebar .site-main h3,
.no-sidebar .site-main h4,
.no-sidebar .site-main h5,
.no-sidebar .site-main h6,
.no-sidebar .site-main .entry-content {
margin: 0;
}
.no-sidebar .home-featured {
padding: 0 2rem;
}
.no-sidebar.single .site-main {
width: 45rem;
margin: 0 auto;
}
.ofisuport-destacats, .ofisuport-featured, .archive-posts {
.ofisuport-destacats,
.ofisuport-featured,
.archive-posts {
grid-template-columns: repeat(4, 1fr);
}
.ofisuport-destacats .entry-title, .ofisuport-featured .entry-title, .archive-posts .entry-title {
.ofisuport-destacats .entry-title,
.ofisuport-featured .entry-title,
.archive-posts .entry-title {
min-height: 13rem;
}
}
@media screen and (min-width: 80em) {
.no-sidebar .site-header .main {
width: 80em;
margin: auto;
flex-flow: row;
}
.no-sidebar .site-main {
padding: 0;
}
.no-sidebar .home-featured {
padding: 0;
}
@ -1005,28 +1079,35 @@ textarea {
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Navigation
--------------------------------------------- */
@media screen {
.hide-content {
display: block;
width: 0px;
height: 0px;
width: 0;
height: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
.custom-logo {
min-width: 11rem;
margin: 1rem;
}
.main-navigation ul, .secondary-navigation ul {
.main-navigation ul,
.secondary-navigation ul {
display: none;
list-style: none;
margin: 0;
padding-left: 0;
}
.main-navigation ul ul, .secondary-navigation ul ul {
.main-navigation ul ul,
.secondary-navigation ul ul {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
float: left;
position: absolute;
@ -1034,28 +1115,40 @@ textarea {
left: -999em;
z-index: 99999;
}
.main-navigation ul ul ul, .secondary-navigation ul ul ul {
.main-navigation ul ul ul,
.secondary-navigation ul ul ul {
left: -999em;
top: 0;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul, .secondary-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul,
.secondary-navigation ul ul li:hover > ul,
.secondary-navigation ul ul li.focus > ul {
display: block;
left: auto;
}
.main-navigation ul ul a, .secondary-navigation ul ul a {
.main-navigation ul ul a,
.secondary-navigation ul ul a {
width: 200px;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul, .secondary-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul,
.secondary-navigation ul li:hover > ul,
.secondary-navigation ul li.focus > ul {
left: auto;
}
.main-navigation li, .secondary-navigation li {
.main-navigation li,
.secondary-navigation li {
position: relative;
}
.main-navigation a, .secondary-navigation a {
.main-navigation a,
.secondary-navigation a {
display: flex;
align-items: center;
min-height: 100%;
@ -1063,43 +1156,52 @@ textarea {
text-decoration: none;
font-size: 1rem;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a, .secondary-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.secondary-navigation .current_page_item > a,
.secondary-navigation .current-menu-item > a,
.secondary-navigation .current_page_ancestor > a,
.secondary-navigation .current-menu-ancestor > a {
font-weight: bold;
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-weight: 700;
font-family: din-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: 1px solid #000;
}
.main-navigation a[href^="http://localhost"],
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: 1px solid #000;
}
.secondary-navigation {
padding: 1em 0;
}
.secondary-navigation ul {
display: inline-block;
}
.secondary-navigation ul li {
padding: 0.5em 0;
}
.secondary-navigation a {
text-transform: uppercase;
}
/* begin of menu-hidden */
.toogle-secondary-navigation .show-mobile {
display: inherit;
}
.toogle,
.toogled-menu {
display: none;
}
.toogle:checked + .toogled-menu {
display: block;
position: absolute;
@ -1111,6 +1213,7 @@ textarea {
padding: 7em 4em 0 4em;
background-color: #fff;
}
.toogle-show {
position: relative;
display: inline-block;
@ -1120,6 +1223,7 @@ textarea {
border-top: 0.3em solid #000;
border-bottom: 0.3em solid #000;
}
.toogle-show::before {
content: "";
position: absolute;
@ -1128,17 +1232,21 @@ textarea {
width: 100%;
border-top: 0.3em solid #000;
}
.toogle-hide {
display: flex;
justify-content: center;
}
.toogle-hide::after {
content: "x";
padding: 0;
font-size: 3rem;
font-weight: bold;
font-weight: 700;
}
/* end of menu hidden*/
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
@ -1147,38 +1255,48 @@ textarea {
}
@media screen and (min-width: 48em) {
.custom-logo {
min-width: 11rem;
margin: 1rem 1rem 1rem 0;
}
.menu-toggle {
display: none;
}
.main-navigation ul, .secondary-navigation ul {
.main-navigation ul,
.secondary-navigation ul {
display: flex;
}
.main-navigation a, .secondary-navigation a {
.main-navigation a,
.secondary-navigation a {
padding: 0 0.5rem;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a, .secondary-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.secondary-navigation .current_page_item > a,
.secondary-navigation .current-menu-item > a,
.secondary-navigation .current_page_ancestor > a,
.secondary-navigation .current-menu-ancestor > a {
border-left: none;
}
.main-navigation {
padding-bottom: 1em;
}
.main-navigation ul {
justify-content: end;
}
.main-navigation a[href^="http://localhost"],
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: none;
}
.main-navigation a[href^="http://localhost"]::after,
@ -1195,25 +1313,31 @@ textarea {
margin-top: 2.3em;
border-bottom: 0.3rem solid #000;
}
.secondary-navigation {
padding: 1.5em 0;
}
/*
* css menu toogler
/*
* css menu toogler
* */
.toogle-secondary-navigation .show-mobile,
.toogle-secondary-navigation .hide-not-mobile {
display: none;
}
.toogled-menu {
display: inherit;
}
/* end css menu toogler
/* end css menu toogler
* */
}
.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
margin: 0 0 1.5em;
}
@ -1238,14 +1362,19 @@ textarea {
}
@media screen and (min-width: 80em) {
.main-navigation .toogle-sidebar-segona .show-mobile,
.main-navigation .toogle-sidebar-segona .hide-not-mobile, .secondary-navigation .toogle-sidebar-segona .show-mobile,
.main-navigation .toogle-sidebar-segona .hide-not-mobile,
.secondary-navigation .toogle-sidebar-segona .show-mobile,
.secondary-navigation .toogle-sidebar-segona .hide-not-mobile {
display: none;
}
.main-navigation a, .secondary-navigation a {
.main-navigation a,
.secondary-navigation a {
padding: 0 1rem;
}
.main-navigation {
padding-bottom: 0;
}
@ -1393,8 +1522,10 @@ textarea {
/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/
/* Jetpack infinite scroll
--------------------------------------------- */
/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
@ -1406,12 +1537,8 @@ textarea {
display: block;
}
/* Guttenberg
/* Guttenberg
--------------------------------------------- */
.edit-post-fullscreen-mode-close_site-icon {
background-color: #fff;
}
.black-blocs {
padding: 1rem 0;
gap: 1rem;
@ -1426,15 +1553,20 @@ textarea {
padding: 1rem;
}
.black-blocs .wp-block-column h1, .black-blocs .wp-block-column h2, .black-blocs .wp-block-column h3, .black-blocs .wp-block-column h4, .black-blocs .wp-block-column h5, .black-blocs .wp-block-column h6 {
.black-blocs .wp-block-column h1,
.black-blocs .wp-block-column h2,
.black-blocs .wp-block-column h3,
.black-blocs .wp-block-column h4,
.black-blocs .wp-block-column h5,
.black-blocs .wp-block-column h6 {
min-height: 4.8rem;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 2rem;
line-height: 1.04;
}
.black-blocs .wp-block-column p {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-family: din-bold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.9rem;
}
@ -1451,17 +1583,17 @@ textarea {
font-size: 5rem;
}
.black-blocs .wp-block-column a:hover {
.black-blocs .wp-block-column a:hover i {
color: #ccc;
}
.black-blocs .wp-block-column a:hover::after {
.black-blocs .wp-block-column a:hover i::after {
content: ">";
font-size: 3rem;
bottom: 0;
}
/* Contact Form 7
/* Contact Form 7
--------------------------------------------- */
.wpcf7-not-valid:not(:focus) {
background-color: #ff686e;
@ -1477,14 +1609,15 @@ textarea {
border-color: #f6cc4c;
background-color: #f6cc4c;
color: #fff;
font-family: "din-medium";
font-weight: bold;
font-family: din-medium;
font-weight: 700;
text-align: center;
margin: 0em;
padding: 0rem;
margin: 0;
padding: 0;
}
.wpcf7-form .contactform-name, .wpcf7-form .wpcf7-form .contactform-email {
.wpcf7-form .contactform-name,
.wpcf7-form .wpcf7-form .contactform-email {
max-width: 40%;
display: inline-block;
}
@ -1515,8 +1648,10 @@ textarea {
/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
/* Accessibility
--------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text {
border: 0;
@ -1559,16 +1694,20 @@ textarea {
/* Alignments
--------------------------------------------- */
.alignleft {
/*rtl:ignore*/
float: left;
/*rtl:ignore*/
margin-right: 1.5em;
margin-bottom: 1.5em;
}
.alignright {
/*rtl:ignore*/
float: right;
/*rtl:ignore*/
margin-left: 1.5em;
margin-bottom: 1.5em;
@ -1581,5 +1720,3 @@ textarea {
margin-right: auto;
margin-bottom: 1.5em;
}
/*# sourceMappingURL=style.css.map */

File diff suppressed because one or more lines are too long