Skip to content

Commit

Permalink
Made style.css independent of actual style sheets
Browse files Browse the repository at this point in the history
Cleaner, used site.scss so style.css isn't modified every SCSS compile.
  • Loading branch information
apzeero committed May 11, 2019
1 parent 7f91e6e commit 6fed684
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 12,087 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.min.css
*.map
scss/*.css
site.css
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ function teamwpugph_scripts() {

if (defined('WP_DEBUG') && true === WP_DEBUG) {

$mainstyles = '/style.css';
$mainstyles = '/site.css';
$blockstyles = '/css/blocks.css';

$uikitjs = '/lib/uikit/dist/js/uikit.js';
$uikiticonsjs = '/lib/uikit/dist/js/uikit-icons.js';

} else {

$mainstyles = '/style.min.css';
$mainstyles = '/site.min.css';
$blockstyles = '/css/blocks.css';

$uikitjs = '/lib/uikit/dist/js/uikit.min.js';
Expand Down
53 changes: 53 additions & 0 deletions site.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*--------------------------------------------------------------
# Site CSS includes UIKit 3
# Reference https://getuikit.com/docs/sass
--------------------------------------------------------------*/

// 1. Your custom variables and variable overwrites.
@import "scss/_import-variables.scss";

// 2. Import default variables and available mixins.
@import "lib/uikit/src/scss/variables.scss";
@import "lib/uikit/src/scss/mixins.scss";

// 3. Your custom mixin overwrites.
@import "scss/_import-mixins";

// 4. Import UIkit
@import "lib/uikit/src/scss/uikit.scss";

// 5. Quick Inline Hacks

/*
Text meant only for screen readers.
@see https://make.wordpress.org/accessibility/handbook/markup/the-css-class-screen-reader-text/
*/
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;

&:focus {
background-color: #eee;
clip: auto !important;
clip-path: none;
color: #444;
display: block;
font-size: 1em;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
}
Loading

0 comments on commit 6fed684

Please sign in to comment.