Flyttade bakgrunds-bild från theme.json till theme.css
This commit is contained in:
21
theme.css
21
theme.css
@@ -16,6 +16,10 @@
|
||||
*/
|
||||
body {
|
||||
background-attachment: fixed;
|
||||
background-image: url("/wp-content/themes/wp-theme-crille2026/assets/images/background.webp");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
/* Stilar till kategori-buttons */
|
||||
.taxonomy-category a {
|
||||
@@ -38,7 +42,8 @@ body {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.footer .wp-block-list, .wp-block-latest-posts__list {
|
||||
.footer .wp-block-list,
|
||||
.wp-block-latest-posts__list {
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
li {
|
||||
@@ -48,7 +53,7 @@ body {
|
||||
|
||||
/* Lite uppstilning av sökrutan*/
|
||||
.searchbox .wp-element-button {
|
||||
background: #FF8F3F;
|
||||
background: #ff8f3f;
|
||||
}
|
||||
.wp-block-search__input {
|
||||
background-color: var(--wp--preset--color--background-primary);
|
||||
@@ -94,9 +99,15 @@ select {
|
||||
|
||||
/* Lite MQ */
|
||||
@media (max-width: 780px) {
|
||||
div.wp-block-column {padding-left:0px !important;}
|
||||
.wp-block-spacer {height: 0 !important;}
|
||||
div.wp-block-column {
|
||||
padding-left: 0px !important;
|
||||
}
|
||||
.wp-block-spacer {
|
||||
height: 0 !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
form.searchbox {display: none}
|
||||
form.searchbox {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,13 +109,6 @@
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"css": "body { \
|
||||
background-image: url('/wp-content/themes/wp-theme-crille2026/assets/images/background.webp'); \
|
||||
background-size: cover; \
|
||||
background-position: center; \
|
||||
background-repeat: no-repeat; \
|
||||
background-attachment: fixed; \
|
||||
}",
|
||||
"color": {
|
||||
"background": "transparent",
|
||||
"text": "var(--wp--preset--color--text-primary)"
|
||||
|
||||
Reference in New Issue
Block a user