Skip to content

Commit

Permalink
Update css-generator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Aug 10, 2024
1 parent 52de217 commit b541b6b
Showing 1 changed file with 48 additions and 38 deletions.
86 changes: 48 additions & 38 deletions inc/css-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function hovercraft_generate_css(){
}
}


/* body frozen (triggered by offcanvas menu js) */

body.frozen {
Expand All @@ -249,26 +250,6 @@ function hovercraft_generate_css(){

/* misc */

blockquote {
margin: 30px 0px 30px 30px;
padding: 20px 30px;
border-left: 5px solid #ECEFF1;
color: #607D8B;
}

blockquote p {
font-size: 18px;
line-height: 2;
}

blockquote p:last-child {
margin-bottom: 0;
}

blockquote .wp-caption-text {
<?php if ( $blockquote_captions == 'none') { echo "display: none;"; } ?>
}

strong {
font-weight: 700;
}
Expand All @@ -277,6 +258,9 @@ function hovercraft_generate_css(){
font-style: italic;
}


/* paragraphs */

@media screen and (max-width: 1200px) {
p {
margin-bottom: 20px;
Expand All @@ -289,6 +273,10 @@ function hovercraft_generate_css(){
}
}

.clear {
clear: both;
}


/* general */

Expand Down Expand Up @@ -328,8 +316,46 @@ function hovercraft_generate_css(){
}
}

.clear {
clear:both;

/* unordered and ordered lists */

ul {
list-style-position: inside;
}

ol {
list-style-position: inside;
}

li {
line-height: 2;
}

ol > li::marker {
font-weight: 700;
}


/* blockquotes */

blockquote {
margin: 30px 0px 30px 30px;
padding: 20px 30px;
border-left: 5px solid #ECEFF1;
color: #607D8B;
}

blockquote p {
font-size: 18px;
line-height: 2;
}

blockquote p:last-child {
margin-bottom: 0;
}

blockquote .wp-caption-text {
<?php if ( $blockquote_captions == 'none') { echo "display: none;"; } ?>
}


Expand Down Expand Up @@ -376,21 +402,6 @@ function hovercraft_generate_css(){
}
}

ul {
list-style-position: inside;
}

ol {
list-style-position: inside;
}

li {
margin-bottom: 5px;
}

ol > li::marker {
font-weight: 700;
}

iframe {
position: relative;
Expand Down Expand Up @@ -3014,7 +3025,6 @@ function hovercraft_generate_css(){
.widget-wrapper ul li ul li {
margin-left: 0 !important;
list-style-type: circle;
line-height: 2;
}

.widget-wrapper iframe {
Expand Down

0 comments on commit b541b6b

Please sign in to comment.