Merge pull request #1391 from Ismail-elkorchi/compiling-sass

Add SASS compilation and sync the CSS files
This commit is contained in:
Ismail El Korchi 2020-04-09 12:23:41 +01:00 committed by GitHub
commit 4c37d815de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 226 additions and 238 deletions

View File

@ -8,6 +8,8 @@
"rules": { "rules": {
"font-family-no-missing-generic-family-keyword": null, "font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null, "no-descending-specificity": null,
"block-no-empty": null "block-no-empty": null,
"no-duplicate-selectors": null,
"font-family-no-duplicate-names": null
} }
} }

View File

@ -17,9 +17,11 @@
"url": "https://github.com/Automattic/_s/issues" "url": "https://github.com/Automattic/_s/issues"
}, },
"devDependencies": { "devDependencies": {
"node-sass": "^4.13.1",
"@wordpress/scripts": "^7.2.0" "@wordpress/scripts": "^7.2.0"
}, },
"scripts": { "scripts": {
"compile:css": "node-sass sass/style.scss style.css && node-sass sass/woocommerce.scss woocommerce.css && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'", "lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
"lint:js": "wp-scripts lint-js 'js/*.js'" "lint:js": "wp-scripts lint-js 'js/*.js'"
} }

View File

@ -1,8 +1,8 @@
/* /*
Theme Name: _s Theme Name: _s
Adding support for languages written in a Right To Left (RTL) direction is easy - Adding support for languages written in a Right To Left (RTL) direction is easy.
it's just a matter of overwriting all the horizontal positioning attributes It's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css. of your CSS stylesheet in a separate stylesheet file named rtl.css.
https://codex.wordpress.org/Right-to-Left_Language_Support https://codex.wordpress.org/Right-to-Left_Language_Support

View File

@ -9,8 +9,8 @@
*/ */
html { html {
line-height: 1.15; /* 1 */ line-height: 1.15;
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%;
} }
/* Sections /* Sections
@ -43,9 +43,9 @@ h1 {
*/ */
hr { hr {
box-sizing: content-box; /* 1 */ box-sizing: content-box;
height: 0; /* 1 */ height: 0;
overflow: visible; /* 2 */ overflow: visible;
} }
/** /**
@ -54,8 +54,8 @@ hr {
*/ */
pre { pre {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/* Text-level semantics /* Text-level semantics
@ -75,9 +75,9 @@ a {
*/ */
abbr[title] { abbr[title] {
border-bottom: none; /* 1 */ border-bottom: none;
text-decoration: underline; /* 2 */ text-decoration: underline;
text-decoration: underline dotted; /* 2 */ text-decoration: underline dotted;
} }
/** /**
@ -97,8 +97,8 @@ strong {
code, code,
kbd, kbd,
samp { samp {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/** /**
@ -154,10 +154,10 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
font-family: inherit; /* 1 */ font-family: inherit;
font-size: 100%; /* 1 */ font-size: 100%;
line-height: 1.15; /* 1 */ line-height: 1.15;
margin: 0; /* 2 */ margin: 0;
} }
/** /**
@ -166,7 +166,7 @@ textarea {
*/ */
button, button,
input { /* 1 */ input {
overflow: visible; overflow: visible;
} }
@ -176,7 +176,7 @@ input { /* 1 */
*/ */
button, button,
select { /* 1 */ select {
text-transform: none; text-transform: none;
} }
@ -230,12 +230,12 @@ fieldset {
*/ */
legend { legend {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
color: inherit; /* 2 */ color: inherit;
display: table; /* 1 */ display: table;
max-width: 100%; /* 1 */ max-width: 100%;
padding: 0; /* 3 */ padding: 0;
white-space: normal; /* 1 */ white-space: normal;
} }
/** /**
@ -261,8 +261,8 @@ textarea {
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
padding: 0; /* 2 */ padding: 0;
} }
/** /**
@ -280,8 +280,8 @@ textarea {
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield;
outline-offset: -2px; /* 2 */ outline-offset: -2px;
} }
/** /**
@ -298,8 +298,8 @@ textarea {
*/ */
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button;
font: inherit; /* 2 */ font: inherit;
} }
/* Interactive /* Interactive

View File

@ -11,7 +11,7 @@ html {
} }
body { body {
background: $color__background-body; /* Fallback for when there is no custom background color defined. */ background: $color__background-body; // Fallback for when there is no custom background color defined.
} }
hr { hr {
@ -24,12 +24,12 @@ hr {
@import "lists"; @import "lists";
img { img {
height: auto; /* Make sure images are scaled correctly. */ height: auto; // Make sure images are scaled correctly.
max-width: 100%; /* Adhere to container width. */ max-width: 100%; // Adhere to container width.
} }
figure { figure {
margin: 1em 0; /* Extra wide images within figure tags don't overflow the content area. */ margin: 1em 0; // Extra wide images within figure tags don't overflow the content area.
} }
@import "tables"; @import "tables";

View File

@ -9,7 +9,7 @@
padding: 0; padding: 0;
position: absolute !important; position: absolute !important;
width: 1px; width: 1px;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; // Many screen reader and browser combinations announce broken words as they would appear visually.
&:focus { &:focus {
background-color: $color__background-screen; background-color: $color__background-screen;
@ -30,7 +30,7 @@
text-decoration: none; text-decoration: none;
top: 5px; top: 5px;
width: auto; width: auto;
z-index: 100000; /* Above WP toolbar. */ z-index: 100000; // Above WP toolbar.
} }
} }

View File

@ -1,6 +1,5 @@
/* Hide the Older / Newer Posts Navigation when Infinite Scroll is in use. */ /* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation, .infinite-scroll .posts-navigation,
/* Hide the Theme Footer (when set to scrolling) */
.infinite-scroll.neverending .site-footer { .infinite-scroll.neverending .site-footer {
display: none; display: none;
} }

View File

@ -1,6 +1,3 @@
/**
* Checkout
*/
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.col2-set { .col2-set {

View File

@ -1,6 +1,3 @@
/**
* Products
*/
ul.products { ul.products {
@include clearfix; @include clearfix;

View File

@ -1,6 +1,3 @@
/**
* Single Product
*/
.single-product { .single-product {
div.product { div.product {

View File

@ -1,6 +1,3 @@
/**
* Shop tables
*/
table.shop_table_responsive { table.shop_table_responsive {
thead { thead {

View File

@ -1,7 +1,7 @@
.widget { .widget {
margin: 0 0 1.5em; margin: 0 0 1.5em;
/* Make sure select elements fit in widgets. */ // Make sure select elements fit in widgets.
select { select {
max-width: 100%; max-width: 100%;
} }

View File

@ -4,16 +4,12 @@ Theme Name: _s
WooCommerce styles override WooCommerce styles override
*/ */
/** // WooCommerce color variables
* WooCommerce color variables
*/
$woocommerce__color-error: #e2401c; $woocommerce__color-error: #e2401c;
$woocommerce__color-success: #0f834d; $woocommerce__color-success: #0f834d;
$woocommerce__color-info: #3d9cd2; $woocommerce__color-info: #3d9cd2;
/** // Imports
* Imports
*/
@import "variables-site/variables-site"; @import "variables-site/variables-site";
@import "mixins/mixins-master"; @import "mixins/mixins-master";

227
style.css
View File

@ -11,7 +11,7 @@ Text Domain: _s
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL. 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. Use it to make something cool, have fun, and share what you've learned.
_s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. _s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later. Underscores is distributed under the terms of the GNU GPL v2 or later.
@ -19,6 +19,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 Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/ */
/*-------------------------------------------------------------- /*--------------------------------------------------------------
>>> TABLE OF CONTENTS: >>> TABLE OF CONTENTS:
---------------------------------------------------------------- ----------------------------------------------------------------
@ -41,10 +42,12 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
## Captions ## Captions
## Galleries ## Galleries
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Normalize # Normalize
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document /* Document
========================================================================== */ ========================================================================== */
@ -53,10 +56,9 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
* 1. Correct the line height in all browsers. * 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS. * 2. Prevent adjustments of font size after orientation changes in iOS.
*/ */
html { html {
line-height: 1.15; /* 1 */ line-height: 1.15;
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%;
} }
/* Sections /* Sections
@ -65,7 +67,6 @@ html {
/** /**
* Remove the margin in all browsers. * Remove the margin in all browsers.
*/ */
body { body {
margin: 0; margin: 0;
} }
@ -74,7 +75,6 @@ body {
* Correct the font size and margin on `h1` elements within `section` and * Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari. * `article` contexts in Chrome, Firefox, and Safari.
*/ */
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: 0.67em 0; margin: 0.67em 0;
@ -87,21 +87,19 @@ h1 {
* 1. Add the correct box sizing in Firefox. * 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE. * 2. Show the overflow in Edge and IE.
*/ */
hr { hr {
box-sizing: content-box; /* 1 */ box-sizing: content-box;
height: 0; /* 1 */ height: 0;
overflow: visible; /* 2 */ overflow: visible;
} }
/** /**
* 1. Correct the inheritance and scaling of font size in all browsers. * 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers. * 2. Correct the odd `em` font sizing in all browsers.
*/ */
pre { pre {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/* Text-level semantics /* Text-level semantics
@ -110,7 +108,6 @@ pre {
/** /**
* Remove the gray background on active links in IE 10. * Remove the gray background on active links in IE 10.
*/ */
a { a {
background-color: transparent; background-color: transparent;
} }
@ -119,17 +116,15 @@ a {
* 1. Remove the bottom border in Chrome 57- * 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/ */
abbr[title] { abbr[title] {
border-bottom: none; /* 1 */ border-bottom: none;
text-decoration: underline; /* 2 */ text-decoration: underline;
text-decoration: underline dotted; /* 2 */ text-decoration: underline dotted;
} }
/** /**
* Add the correct font weight in Chrome, Edge, and Safari. * Add the correct font weight in Chrome, Edge, and Safari.
*/ */
b, b,
strong { strong {
font-weight: bolder; font-weight: bolder;
@ -139,18 +134,16 @@ strong {
* 1. Correct the inheritance and scaling of font size in all browsers. * 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers. * 2. Correct the odd `em` font sizing in all browsers.
*/ */
code, code,
kbd, kbd,
samp { samp {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ font-size: 1em;
} }
/** /**
* Add the correct font size in all browsers. * Add the correct font size in all browsers.
*/ */
small { small {
font-size: 80%; font-size: 80%;
} }
@ -159,7 +152,6 @@ small {
* Prevent `sub` and `sup` elements from affecting the line height in * Prevent `sub` and `sup` elements from affecting the line height in
* all browsers. * all browsers.
*/ */
sub, sub,
sup { sup {
font-size: 75%; font-size: 75%;
@ -182,7 +174,6 @@ sup {
/** /**
* Remove the border on images inside links in IE 10. * Remove the border on images inside links in IE 10.
*/ */
img { img {
border-style: none; border-style: none;
} }
@ -194,25 +185,23 @@ img {
* 1. Change the font styles in all browsers. * 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari. * 2. Remove the margin in Firefox and Safari.
*/ */
button, button,
input, input,
optgroup, optgroup,
select, select,
textarea { textarea {
font-family: inherit; /* 1 */ font-family: inherit;
font-size: 100%; /* 1 */ font-size: 100%;
line-height: 1.15; /* 1 */ line-height: 1.15;
margin: 0; /* 2 */ margin: 0;
} }
/** /**
* Show the overflow in IE. * Show the overflow in IE.
* 1. Show the overflow in Edge. * 1. Show the overflow in Edge.
*/ */
button, button,
input { /* 1 */ input {
overflow: visible; overflow: visible;
} }
@ -220,16 +209,14 @@ input { /* 1 */
* Remove the inheritance of text transform in Edge, Firefox, and IE. * Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox. * 1. Remove the inheritance of text transform in Firefox.
*/ */
button, button,
select { /* 1 */ select {
text-transform: none; text-transform: none;
} }
/** /**
* Correct the inability to style clickable types in iOS and Safari. * Correct the inability to style clickable types in iOS and Safari.
*/ */
button, button,
[type="button"], [type="button"],
[type="reset"], [type="reset"],
@ -240,7 +227,6 @@ button,
/** /**
* Remove the inner border and padding in Firefox. * Remove the inner border and padding in Firefox.
*/ */
button::-moz-focus-inner, button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner,
@ -252,7 +238,6 @@ button::-moz-focus-inner,
/** /**
* Restore the focus styles unset by the previous rule. * Restore the focus styles unset by the previous rule.
*/ */
button:-moz-focusring, button:-moz-focusring,
[type="button"]:-moz-focusring, [type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring, [type="reset"]:-moz-focusring,
@ -263,7 +248,6 @@ button:-moz-focusring,
/** /**
* Correct the padding in Firefox. * Correct the padding in Firefox.
*/ */
fieldset { fieldset {
padding: 0.35em 0.75em 0.625em; padding: 0.35em 0.75em 0.625em;
} }
@ -274,20 +258,18 @@ fieldset {
* 3. Remove the padding so developers are not caught out when they zero out * 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers. * `fieldset` elements in all browsers.
*/ */
legend { legend {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
color: inherit; /* 2 */ color: inherit;
display: table; /* 1 */ display: table;
max-width: 100%; /* 1 */ max-width: 100%;
padding: 0; /* 3 */ padding: 0;
white-space: normal; /* 1 */ white-space: normal;
} }
/** /**
* Add the correct vertical alignment in Chrome, Firefox, and Opera. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/ */
progress { progress {
vertical-align: baseline; vertical-align: baseline;
} }
@ -295,7 +277,6 @@ progress {
/** /**
* Remove the default vertical scrollbar in IE 10+. * Remove the default vertical scrollbar in IE 10+.
*/ */
textarea { textarea {
overflow: auto; overflow: auto;
} }
@ -304,17 +285,15 @@ textarea {
* 1. Add the correct box sizing in IE 10. * 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10. * 2. Remove the padding in IE 10.
*/ */
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
padding: 0; /* 2 */ padding: 0;
} }
/** /**
* Correct the cursor style of increment and decrement buttons in Chrome. * Correct the cursor style of increment and decrement buttons in Chrome.
*/ */
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { [type="number"]::-webkit-outer-spin-button {
height: auto; height: auto;
@ -324,16 +303,14 @@ textarea {
* 1. Correct the odd appearance in Chrome and Safari. * 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari. * 2. Correct the outline style in Safari.
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield;
outline-offset: -2px; /* 2 */ outline-offset: -2px;
} }
/** /**
* Remove the inner padding in Chrome and Safari on macOS. * Remove the inner padding in Chrome and Safari on macOS.
*/ */
[type="search"]::-webkit-search-decoration { [type="search"]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
} }
@ -342,10 +319,9 @@ textarea {
* 1. Correct the inability to style clickable types in iOS and Safari. * 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari. * 2. Change font properties to `inherit` in Safari.
*/ */
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button;
font: inherit; /* 2 */ font: inherit;
} }
/* Interactive /* Interactive
@ -354,7 +330,6 @@ textarea {
/* /*
* Add the correct display in Edge, IE 10+, and Firefox. * Add the correct display in Edge, IE 10+, and Firefox.
*/ */
details { details {
display: block; display: block;
} }
@ -362,7 +337,6 @@ details {
/* /*
* Add the correct display in all browsers. * Add the correct display in all browsers.
*/ */
summary { summary {
display: list-item; display: list-item;
} }
@ -373,7 +347,6 @@ summary {
/** /**
* Add the correct display in IE 10+. * Add the correct display in IE 10+.
*/ */
template { template {
display: none; display: none;
} }
@ -381,7 +354,6 @@ template {
/** /**
* Add the correct display in IE 10. * Add the correct display in IE 10.
*/ */
[hidden] { [hidden] {
display: none; display: none;
} }
@ -402,7 +374,12 @@ textarea {
line-height: 1.5; line-height: 1.5;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
clear: both; clear: both;
} }
@ -410,7 +387,10 @@ p {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
dfn, cite, em, i { dfn,
cite,
em,
i {
font-style: italic; font-style: italic;
} }
@ -424,7 +404,7 @@ address {
pre { pre {
background: #eee; background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace; font-family: "Courier 10 Pitch", courier, monospace;
font-size: 15px; font-size: 15px;
font-size: 0.9375rem; font-size: 0.9375rem;
line-height: 1.6; line-height: 1.6;
@ -434,18 +414,23 @@ pre {
padding: 1.6em; padding: 1.6em;
} }
code, kbd, tt, var { code,
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; kbd,
tt,
var {
font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px; font-size: 15px;
font-size: 0.9375rem; font-size: 0.9375rem;
} }
abbr, acronym { abbr,
acronym {
border-bottom: 1px dotted #666; border-bottom: 1px dotted #666;
cursor: help; cursor: help;
} }
mark, ins { mark,
ins {
background: #fff9c0; background: #fff9c0;
text-decoration: none; text-decoration: none;
} }
@ -457,20 +442,21 @@ big {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Elements # Elements
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/* 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/ */
*,
*::before,
*::after {
box-sizing: inherit;
}
html { html {
box-sizing: border-box; box-sizing: border-box;
} }
*,
*:before,
*:after {
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
body { body {
background: #fff; background: #fff;
/* Fallback for when there is no custom background color defined. */
} }
hr { hr {
@ -480,7 +466,8 @@ hr {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
ul, ol { ul,
ol {
margin: 0 0 1.5em 3em; margin: 0 0 1.5em 3em;
} }
@ -499,7 +486,7 @@ li > ol {
} }
dt { dt {
font-weight: bold; font-weight: 700;
} }
dd { dd {
@ -508,14 +495,11 @@ dd {
img { img {
height: auto; height: auto;
/* Make sure images are scaled correctly. */
max-width: 100%; max-width: 100%;
/* Adhere to container width. */
} }
figure { figure {
margin: 1em 0; margin: 1em 0;
/* Extra wide images within figure tags don't overflow the content area. */
} }
table { table {
@ -538,7 +522,7 @@ input[type="submit"] {
font-size: 12px; font-size: 12px;
font-size: 0.75rem; font-size: 0.75rem;
line-height: 1; line-height: 1;
padding: .6em 1em .4em; padding: 0.6em 1em 0.4em;
} }
button:hover, button:hover,
@ -548,7 +532,8 @@ input[type="submit"]:hover {
border-color: #ccc #bbb #aaa; border-color: #ccc #bbb #aaa;
} }
button:active, button:focus, button:active,
button:focus,
input[type="button"]:active, input[type="button"]:active,
input[type="button"]:focus, input[type="button"]:focus,
input[type="reset"]:active, input[type="reset"]:active,
@ -610,26 +595,30 @@ textarea {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Navigation # Navigation
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/*-------------------------------------------------------------- /*--------------------------------------------------------------
## Links ## Links
--------------------------------------------------------------*/ --------------------------------------------------------------*/
a { a {
color: royalblue; color: #4169e1;
} }
a:visited { a:visited {
color: purple; color: #800080;
} }
a:hover, a:focus, a:active { a:hover,
color: midnightblue; a:focus,
a:active {
color: #191970;
} }
a:focus { a:focus {
outline: thin dotted; outline: thin dotted;
} }
a:hover, a:active { a:hover,
a:active {
outline: 0; outline: 0;
} }
@ -695,16 +684,20 @@ a:hover, a:active {
} }
@media screen and (min-width: 37.5em) { @media screen and (min-width: 37.5em) {
.menu-toggle { .menu-toggle {
display: none; display: none;
} }
.main-navigation ul { .main-navigation ul {
display: block; display: block;
} }
} }
.site-main .comment-navigation, .site-main .site-main .comment-navigation,
.posts-navigation, .site-main .site-main
.posts-navigation,
.site-main
.post-navigation { .post-navigation {
margin: 0 0 1.5em; margin: 0 0 1.5em;
overflow: hidden; overflow: hidden;
@ -728,6 +721,7 @@ a:hover, a:active {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Accessibility # Accessibility
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/* Text meant only for screen readers. */ /* Text meant only for screen readers. */
.screen-reader-text { .screen-reader-text {
border: 0; border: 0;
@ -739,7 +733,7 @@ a:hover, a:active {
padding: 0; padding: 0;
position: absolute !important; position: absolute !important;
width: 1px; width: 1px;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important;
} }
.screen-reader-text:focus { .screen-reader-text:focus {
@ -752,7 +746,7 @@ a:hover, a:active {
display: block; display: block;
font-size: 14px; font-size: 14px;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: bold; font-weight: 700;
height: auto; height: auto;
left: 5px; left: 5px;
line-height: normal; line-height: normal;
@ -761,7 +755,6 @@ a:hover, a:active {
top: 5px; top: 5px;
width: auto; width: auto;
z-index: 100000; z-index: 100000;
/* Above WP toolbar. */
} }
/* Do not show the outline on the skip link target. */ /* Do not show the outline on the skip link target. */
@ -797,29 +790,29 @@ a:hover, a:active {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Clearings # Clearings
--------------------------------------------------------------*/ --------------------------------------------------------------*/
.clear:before, .clear::before,
.clear:after, .clear::after,
.entry-content:before, .entry-content::before,
.entry-content:after, .entry-content::after,
.comment-content:before, .comment-content::before,
.comment-content:after, .comment-content::after,
.site-header:before, .site-header::before,
.site-header:after, .site-header::after,
.site-content:before, .site-content::before,
.site-content:after, .site-content::after,
.site-footer:before, .site-footer::before,
.site-footer:after { .site-footer::after {
content: ""; content: "";
display: table; display: table;
table-layout: fixed; table-layout: fixed;
} }
.clear:after, .clear::after,
.entry-content:after, .entry-content::after,
.comment-content:after, .comment-content::after,
.site-header:after, .site-header::after,
.site-content:after, .site-content::after,
.site-footer:after { .site-footer::after {
clear: both; clear: both;
} }
@ -828,7 +821,6 @@ a:hover, a:active {
--------------------------------------------------------------*/ --------------------------------------------------------------*/
.widget { .widget {
margin: 0 0 1.5em; margin: 0 0 1.5em;
/* Make sure select elements fit in widgets. */
} }
.widget select { .widget select {
@ -838,6 +830,7 @@ a:hover, a:active {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Content # Content
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/*-------------------------------------------------------------- /*--------------------------------------------------------------
## Posts and pages ## Posts and pages
--------------------------------------------------------------*/ --------------------------------------------------------------*/
@ -879,14 +872,14 @@ a:hover, a:active {
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Infinite scroll # Infinite scroll
--------------------------------------------------------------*/ --------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation, .infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer { .infinite-scroll.neverending .site-footer {
/* Theme Footer (when set to scrolling) */
display: none; display: none;
} }
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ /* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer { .infinity-end.neverending .site-footer {
display: block; display: block;
} }

View File

@ -3,15 +3,7 @@ Theme Name: _s
WooCommerce styles override WooCommerce styles override
*/ */
/**
* WooCommerce color variables
*/
/**
* Imports
*/
/**
* Shop tables
*/
/** /**
* Shop tables * Shop tables
*/ */
@ -29,7 +21,7 @@ table.shop_table_responsive tr td {
clear: both; clear: both;
} }
table.shop_table_responsive tr td:before { table.shop_table_responsive tr td::before {
content: attr(data-title) ": "; content: attr(data-title) ": ";
float: left; float: left;
} }
@ -38,11 +30,12 @@ table.shop_table_responsive tr td.product-remove a {
text-align: left; text-align: left;
} }
table.shop_table_responsive tr td.product-remove:before { table.shop_table_responsive tr td.product-remove::before {
display: none; display: none;
} }
table.shop_table_responsive tr td.actions:before, table.shop_table_responsive tr td.download-actions:before { table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
display: none; display: none;
} }
@ -52,26 +45,29 @@ table.shop_table_responsive tr td.download-actions .button {
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
table.shop_table_responsive thead { table.shop_table_responsive thead {
display: table-header-group; display: table-header-group;
} }
table.shop_table_responsive tbody th { table.shop_table_responsive tbody th {
display: table-cell; display: table-cell;
} }
table.shop_table_responsive tr th, table.shop_table_responsive tr td {
table.shop_table_responsive tr th,
table.shop_table_responsive tr td {
text-align: left; text-align: left;
} }
table.shop_table_responsive tr td { table.shop_table_responsive tr td {
display: table-cell; display: table-cell;
} }
table.shop_table_responsive tr td:before {
table.shop_table_responsive tr td::before {
display: none; display: none;
} }
} }
/**
* Products
*/
/** /**
* Products * Products
*/ */
@ -102,44 +98,50 @@ ul.products li.product .button {
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
ul.products li.product { ul.products li.product {
width: 30.7966666667%; width: 30.79667%;
float: left; float: left;
margin-right: 3.8%; margin-right: 3.8%;
} }
ul.products li.product.first { ul.products li.product.first {
clear: both; clear: both;
} }
ul.products li.product.last { ul.products li.product.last {
margin-right: 0; margin-right: 0;
} }
.columns-1 ul.products li.product { .columns-1 ul.products li.product {
float: none; float: none;
width: 100%; width: 100%;
} }
.columns-2 ul.products li.product { .columns-2 ul.products li.product {
width: 48.1%; width: 48.1%;
} }
.columns-3 ul.products li.product { .columns-3 ul.products li.product {
width: 30.7966666667%; width: 30.79667%;
} }
.columns-4 ul.products li.product { .columns-4 ul.products li.product {
width: 22.15%; width: 22.15%;
} }
.columns-5 ul.products li.product { .columns-5 ul.products li.product {
width: 16.96%; width: 16.96%;
} }
.columns-6 ul.products li.product { .columns-6 ul.products li.product {
width: 13.4933333333%; width: 13.49333%;
} }
} }
/** /**
* Single product * Single product
*/ */
/**
* Single Product
*/
.single-product div.product { .single-product div.product {
content: ""; content: "";
display: table; display: table;
@ -178,7 +180,7 @@ ul.products li.product .button {
} }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
opacity: .5; opacity: 0.5;
} }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
@ -202,7 +204,7 @@ ul.products li.product .button {
} }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li { .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 30.7966666667%; width: 30.79667%;
} }
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) { .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
@ -237,7 +239,7 @@ ul.products li.product .button {
clear: both; clear: both;
} }
.stock:empty:before { .stock:empty::before {
display: none; display: none;
} }
@ -249,21 +251,21 @@ ul.products li.product .button {
color: #e2401c; color: #e2401c;
} }
/**
* Checkout
*/
/** /**
* Checkout * Checkout
*/ */
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.col2-set .form-row-first { .col2-set .form-row-first {
float: left; float: left;
margin-right: 3.8%; margin-right: 3.8%;
} }
.col2-set .form-row-last { .col2-set .form-row-last {
float: right; float: right;
margin-right: 0; margin-right: 0;
} }
.col2-set .form-row-first, .col2-set .form-row-first,
.col2-set .form-row-last { .col2-set .form-row-last {
width: 48.1%; width: 48.1%;
@ -273,6 +275,7 @@ ul.products li.product .button {
/** /**
* General WooCommerce components * General WooCommerce components
*/ */
/** /**
* Header cart * Header cart
*/ */
@ -308,13 +311,13 @@ ul.products li.product .button {
line-height: 1.618; line-height: 1.618;
font-size: 1em; font-size: 1em;
width: 5.3em; width: 5.3em;
font-family: 'star'; font-family: star;
font-weight: 400; font-weight: 400;
} }
.star-rating:before { .star-rating::before {
content: "\53\53\53\53\53"; content: "\53\53\53\53\53";
opacity: .25; opacity: 0.25;
float: left; float: left;
top: 0; top: 0;
left: 0; left: 0;
@ -330,12 +333,12 @@ ul.products li.product .button {
padding-top: 1.5em; padding-top: 1.5em;
} }
.star-rating span:before { .star-rating span::before {
content: "\53\53\53\53\53"; content: "\53\53\53\53\53";
top: 0; top: 0;
position: absolute; position: absolute;
left: 0; left: 0;
color: royalblue; color: #4169e1;
} }
p.stars a { p.stars a {
@ -349,7 +352,7 @@ p.stars a {
font-weight: 400; font-weight: 400;
} }
p.stars a:before { p.stars a::before {
display: block; display: block;
position: absolute; position: absolute;
top: 0; top: 0;
@ -357,40 +360,40 @@ p.stars a:before {
width: 1em; width: 1em;
height: 1em; height: 1em;
line-height: 1; line-height: 1;
font-family: "star"; font-family: star;
content: "\53"; content: "\53";
color: #404040; color: #404040;
text-indent: 0; text-indent: 0;
opacity: .25; opacity: 0.25;
} }
p.stars a:hover ~ a:before { p.stars a:hover ~ a::before {
content: "\53"; content: "\53";
color: #404040; color: #404040;
opacity: .25; opacity: 0.25;
} }
p.stars:hover a:before { p.stars:hover a::before {
content: "\53"; content: "\53";
color: royalblue; color: #4169e1;
opacity: 1; opacity: 1;
} }
p.stars.selected a.active:before { p.stars.selected a.active::before {
content: "\53"; content: "\53";
color: royalblue; color: #4169e1;
opacity: 1; opacity: 1;
} }
p.stars.selected a.active ~ a:before { p.stars.selected a.active ~ a::before {
content: "\53"; content: "\53";
color: #404040; color: #404040;
opacity: .25; opacity: 0.25;
} }
p.stars.selected a:not(.active):before { p.stars.selected a:not(.active)::before {
content: "\53"; content: "\53";
color: royalblue; color: #4169e1;
opacity: 1; opacity: 1;
} }
@ -439,7 +442,7 @@ p.stars.selected a:not(.active):before {
} }
.woocommerce-password-strength.good { .woocommerce-password-strength.good {
color: #3D9CD2; color: #3d9cd2;
} }
/** /**
@ -454,7 +457,7 @@ p.stars.selected a:not(.active):before {
} }
.required { .required {
color: red; color: #f00;
} }
/** /**
@ -475,7 +478,7 @@ p.no-comments {
.woocommerce-info, .woocommerce-info,
.woocommerce-noreviews, .woocommerce-noreviews,
p.no-comments { p.no-comments {
background-color: #3D9CD2; background-color: #3d9cd2;
} }
.woocommerce-error { .woocommerce-error {
@ -489,11 +492,12 @@ p.no-comments {
right: 0; right: 0;
margin: 0; margin: 0;
padding: 1em; padding: 1em;
background-color: #3D9CD2; background-color: #3d9cd2;
z-index: 9999; z-index: 9999;
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
/** /**
* Header cart * Header cart
*/ */
@ -506,7 +510,9 @@ p.no-comments {
display: block; display: block;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
} }
.site-header-cart:hover .widget_shopping_cart, .site-header-cart.focus .widget_shopping_cart {
.site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart {
left: 0; left: 0;
display: block; display: block;
} }
@ -515,6 +521,7 @@ p.no-comments {
/** /**
* WooCommerce widgets * WooCommerce widgets
*/ */
/** /**
* WooCommerce Price Filter * WooCommerce Price Filter
*/ */
@ -524,7 +531,7 @@ p.no-comments {
.widget_price_filter .price_slider_amount { .widget_price_filter .price_slider_amount {
text-align: right; text-align: right;
line-height: 2.4em; line-height: 2.4;
} }
.widget_price_filter .price_slider_amount .button { .widget_price_filter .price_slider_amount .button {
@ -543,9 +550,9 @@ p.no-comments {
height: 1em; height: 1em;
cursor: ew-resize; cursor: ew-resize;
outline: none; outline: none;
background: royalblue; background: #4169e1;
box-sizing: border-box; box-sizing: border-box;
margin-top: -.25em; margin-top: -0.25em;
opacity: 1; opacity: 1;
} }
@ -553,7 +560,8 @@ p.no-comments {
margin-left: -1em; margin-left: -1em;
} }
.widget_price_filter .ui-slider .ui-slider-handle:hover, .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active { .widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1); box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
} }
@ -562,7 +570,7 @@ p.no-comments {
z-index: 1; z-index: 1;
display: block; display: block;
border: 0; border: 0;
background: royalblue; background: #4169e1;
} }
.widget_price_filter .price_slider_wrapper .ui-widget-content { .widget_price_filter .price_slider_wrapper .ui-widget-content {
@ -570,7 +578,7 @@ p.no-comments {
} }
.widget_price_filter .ui-slider-horizontal { .widget_price_filter .ui-slider-horizontal {
height: .5em; height: 0.5em;
} }
.widget_price_filter .ui-slider-horizontal .ui-slider-range { .widget_price_filter .ui-slider-horizontal .ui-slider-range {