diff --git a/style-rtl.css b/css/style.css similarity index 59% rename from style-rtl.css rename to css/style.css index 0c835be0ed..dbe9bfa3be 100644 --- a/style-rtl.css +++ b/css/style.css @@ -21,7 +21,6 @@ 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,43 +48,37 @@ 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. */ html { - line-height: 1.15; - -webkit-text-size-adjust: 100%; + line-height: 1.15; + -webkit-text-size-adjust: 100%; } /* Sections ========================================================================== */ - /** * Remove the margin in all browsers. */ body { - margin: 0; + margin: 0; } /** * Render the `main` element consistently in IE. */ main { - display: block; + display: block; } /** @@ -93,21 +86,20 @@ main { * `article` contexts in Chrome, Firefox, and Safari. */ h1 { - font-size: 2em; - margin: 0.67em 0; + font-size: 2em; + margin: 0.67em 0; } /* Grouping content ========================================================================== */ - /** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ hr { - box-sizing: content-box; - height: 0; - overflow: visible; + box-sizing: content-box; + height: 0; + overflow: visible; } /** @@ -115,18 +107,17 @@ hr { * 2. Correct the odd `em` font sizing in all browsers. */ pre { - font-family: monospace, monospace; - font-size: 1em; + font-family: monospace, monospace; + font-size: 1em; } /* Text-level semantics ========================================================================== */ - /** * Remove the gray background on active links in IE 10. */ a { - background-color: transparent; + background-color: transparent; } /** @@ -134,9 +125,9 @@ a { * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */ abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted; } /** @@ -144,7 +135,7 @@ abbr[title] { */ b, strong { - font-weight: bolder; + font-weight: bolder; } /** @@ -154,15 +145,15 @@ strong { code, kbd, samp { - font-family: monospace, monospace; - font-size: 1em; + font-family: monospace, monospace; + font-size: 1em; } /** * Add the correct font size in all browsers. */ small { - font-size: 80%; + font-size: 80%; } /** @@ -171,33 +162,31 @@ small { */ sub, sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; } sub { - bottom: -0.25em; + bottom: -0.25em; } sup { - top: -0.5em; + top: -0.5em; } /* Embedded content ========================================================================== */ - /** * Remove the border on images inside links in IE 10. */ img { - border-style: none; + border-style: none; } /* Forms ========================================================================== */ - /** * 1. Change the font styles in all browsers. * 2. Remove the margin in Firefox and Safari. @@ -207,10 +196,10 @@ input, optgroup, select, textarea { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; } /** @@ -219,7 +208,7 @@ textarea { */ button, input { - overflow: visible; + overflow: visible; } /** @@ -228,45 +217,45 @@ input { */ button, select { - text-transform: none; + text-transform: none; } /** * Correct the inability to style clickable types in iOS and Safari. */ button, -[type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; +[type=button], +[type=reset], +[type=submit] { + -webkit-appearance: button; } /** * Remove the inner border and padding in Firefox. */ button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; +[type=button]::-moz-focus-inner, +[type=reset]::-moz-focus-inner, +[type=submit]::-moz-focus-inner { + border-style: none; + padding: 0; } /** * Restore the focus styles unset by the previous rule. */ button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; +[type=button]:-moz-focusring, +[type=reset]:-moz-focusring, +[type=submit]:-moz-focusring { + outline: 1px dotted ButtonText; } /** * Correct the padding in Firefox. */ fieldset { - padding: 0.35em 0.75em 0.625em; + padding: 0.35em 0.75em 0.625em; } /** @@ -276,60 +265,60 @@ fieldset { * `fieldset` elements in all browsers. */ legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; } /** * Add the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { - vertical-align: baseline; + vertical-align: baseline; } /** * Remove the default vertical scrollbar in IE 10+. */ textarea { - overflow: auto; + overflow: auto; } /** * 1. Add the correct box sizing in IE 10. * 2. Remove the padding in IE 10. */ -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; - padding: 0; +[type=checkbox], +[type=radio] { + box-sizing: border-box; + padding: 0; } /** * Correct the cursor style of increment and decrement buttons in Chrome. */ -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; +[type=number]::-webkit-inner-spin-button, +[type=number]::-webkit-outer-spin-button { + height: auto; } /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ -[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; +[type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; } /** * Remove the inner padding in Chrome and Safari on macOS. */ -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; +[type=search]::-webkit-search-decoration { + -webkit-appearance: none; } /** @@ -337,63 +326,59 @@ textarea { * 2. Change font properties to `inherit` in Safari. */ ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; + -webkit-appearance: button; + font: inherit; } /* Interactive ========================================================================== */ - /* * Add the correct display in Edge, IE 10+, and Firefox. */ details { - display: block; + display: block; } /* * Add the correct display in all browsers. */ summary { - display: list-item; + display: list-item; } /* Misc ========================================================================== */ - /** * Add the correct display in IE 10+. */ template { - display: none; + display: none; } /** * Add the correct display in IE 10. */ [hidden] { - display: none; + display: none; } /* 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/ */ *, *::before, *::after { - box-sizing: inherit; + box-sizing: inherit; } html { - box-sizing: border-box; + box-sizing: border-box; } /*-------------------------------------------------------------- # Base --------------------------------------------------------------*/ - /* Typography --------------------------------------------- */ body, @@ -402,10 +387,10 @@ input, select, optgroup, textarea { - color: #404040; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 1rem; - line-height: 1.5; + color: #404040; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 1rem; + line-height: 1.5; } h1, @@ -414,377 +399,346 @@ h3, h4, h5, h6 { - clear: both; + clear: both; } p { - margin-bottom: 1.5em; + margin-bottom: 1.5em; } dfn, cite, em, i { - font-style: italic; + font-style: italic; } blockquote { - margin: 0 1.5em; + margin: 0 1.5em; } address { - margin: 0 0 1.5em; + margin: 0 0 1.5em; } pre { - background: #eee; - font-family: "Courier 10 Pitch", courier, monospace; - line-height: 1.6; - margin-bottom: 1.6em; - max-width: 100%; - overflow: auto; - padding: 1.6em; + background: #eee; + font-family: "Courier 10 Pitch", courier, monospace; + line-height: 1.6; + margin-bottom: 1.6em; + max-width: 100%; + overflow: auto; + padding: 1.6em; } code, kbd, tt, var { - font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; + font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } abbr, acronym { - border-bottom: 1px dotted #666; - cursor: help; + border-bottom: 1px dotted #666; + cursor: help; } mark, ins { - background: #fff9c0; - text-decoration: none; + background: #fff9c0; + text-decoration: none; } big { - font-size: 125%; + font-size: 125%; } /* Elements --------------------------------------------- */ body { - background: #fff; + background: #fff; } hr { - background-color: #ccc; - border: 0; - height: 1px; - margin-bottom: 1.5em; + background-color: #ccc; + border: 0; + height: 1px; + margin-bottom: 1.5em; } ul, ol { - margin: 0 3em 1.5em 0; + margin: 0 0 1.5em 3em; } ul { - list-style: disc; + list-style: disc; } ol { - list-style: decimal; + list-style: decimal; } li > ul, li > ol { - margin-bottom: 0; - margin-right: 1.5em; + margin-bottom: 0; + margin-left: 1.5em; } dt { - font-weight: 700; + font-weight: 700; } dd { - margin: 0 1.5em 1.5em; + margin: 0 1.5em 1.5em; } /* Make sure embeds and iframes fit their containers. */ embed, iframe, object { - max-width: 100%; + max-width: 100%; } img { - height: auto; - max-width: 100%; + height: auto; + max-width: 100%; } figure { - margin: 1em 0; + margin: 1em 0; } table { - margin: 0 0 1.5em; - width: 100%; + margin: 0 0 1.5em; + width: 100%; } /* Links --------------------------------------------- */ a { - color: #4169e1; + color: #4169e1; } - a:visited { - color: #800080; + color: #800080; } - -a:hover, -a:focus, -a:active { - color: #191970; +a:hover, a:focus, a:active { + color: #191970; } - a:focus { - outline: thin dotted; + outline: thin dotted; } - -a:hover, -a:active { - outline: 0; +a:hover, a:active { + outline: 0; } /* Forms --------------------------------------------- */ button, -input[type="button"], -input[type="reset"], -input[type="submit"] { - border: 1px solid; - border-color: #ccc #ccc #bbb; - border-radius: 3px; - background: #e6e6e6; - color: rgba(0, 0, 0, 0.8); - line-height: 1; - padding: 0.6em 1em 0.4em; +input[type=button], +input[type=reset], +input[type=submit] { + border: 1px solid; + border-color: #ccc #ccc #bbb; + border-radius: 3px; + background: #e6e6e6; + color: rgba(0, 0, 0, 0.8); + line-height: 1; + padding: 0.6em 1em 0.4em; } - button:hover, -input[type="button"]:hover, -input[type="reset"]:hover, -input[type="submit"]:hover { - border-color: #ccc #bbb #aaa; -} - -button:active, -button:focus, -input[type="button"]:active, -input[type="button"]:focus, -input[type="reset"]:active, -input[type="reset"]:focus, -input[type="submit"]:active, -input[type="submit"]:focus { - border-color: #aaa #bbb #bbb; -} - -input[type="text"], -input[type="email"], -input[type="url"], -input[type="password"], -input[type="search"], -input[type="number"], -input[type="tel"], -input[type="range"], -input[type="date"], -input[type="month"], -input[type="week"], -input[type="time"], -input[type="datetime"], -input[type="datetime-local"], -input[type="color"], +input[type=button]:hover, +input[type=reset]:hover, +input[type=submit]:hover { + border-color: #ccc #bbb #aaa; +} +button:active, button:focus, +input[type=button]:active, +input[type=button]:focus, +input[type=reset]:active, +input[type=reset]:focus, +input[type=submit]:active, +input[type=submit]:focus { + border-color: #aaa #bbb #bbb; +} + +input[type=text], +input[type=email], +input[type=url], +input[type=password], +input[type=search], +input[type=number], +input[type=tel], +input[type=range], +input[type=date], +input[type=month], +input[type=week], +input[type=time], +input[type=datetime], +input[type=datetime-local], +input[type=color], textarea { - color: #666; - border: 1px solid #ccc; - border-radius: 3px; - padding: 3px; -} - -input[type="text"]:focus, -input[type="email"]:focus, -input[type="url"]:focus, -input[type="password"]:focus, -input[type="search"]:focus, -input[type="number"]:focus, -input[type="tel"]:focus, -input[type="range"]:focus, -input[type="date"]:focus, -input[type="month"]:focus, -input[type="week"]:focus, -input[type="time"]:focus, -input[type="datetime"]:focus, -input[type="datetime-local"]:focus, -input[type="color"]:focus, + color: #666; + border: 1px solid #ccc; + border-radius: 3px; + padding: 3px; +} +input[type=text]:focus, +input[type=email]:focus, +input[type=url]:focus, +input[type=password]:focus, +input[type=search]:focus, +input[type=number]:focus, +input[type=tel]:focus, +input[type=range]:focus, +input[type=date]:focus, +input[type=month]:focus, +input[type=week]:focus, +input[type=time]:focus, +input[type=datetime]:focus, +input[type=datetime-local]:focus, +input[type=color]:focus, textarea:focus { - color: #111; + color: #111; } select { - border: 1px solid #ccc; + border: 1px solid #ccc; } textarea { - width: 100%; + width: 100%; } /*-------------------------------------------------------------- # Layouts --------------------------------------------------------------*/ - /*-------------------------------------------------------------- # Components --------------------------------------------------------------*/ - /* Navigation --------------------------------------------- */ .main-navigation { - display: block; - width: 100%; + display: block; + width: 100%; } - .main-navigation ul { - display: none; - list-style: none; - margin: 0; - padding-right: 0; + display: none; + list-style: none; + margin: 0; + padding-left: 0; } - .main-navigation ul ul { - box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); - float: right; - position: absolute; - top: 100%; - right: -999em; - z-index: 99999; + box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); + float: left; + position: absolute; + top: 100%; + left: -999em; + z-index: 99999; } - .main-navigation ul ul ul { - right: -999em; - top: 0; + left: -999em; + top: 0; } - -.main-navigation ul ul li:hover > ul, -.main-navigation ul ul li.focus > ul { - display: block; - right: auto; +.main-navigation ul ul li:hover > ul, .main-navigation ul ul li.focus > ul { + display: block; + left: auto; } - .main-navigation ul ul a { - width: 200px; + width: 200px; } - .main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul { - right: auto; + left: auto; } - .main-navigation li { - position: relative; + position: relative; } - .main-navigation a { - display: block; - text-decoration: none; + display: block; + text-decoration: none; } - /* Small menu. */ .menu-toggle, .main-navigation.toggled ul { - display: block; + display: block; } @media screen and (min-width: 37.5em) { + .menu-toggle { + display: none; + } - .menu-toggle { - display: none; - } - - .main-navigation ul { - display: flex; - } + .main-navigation ul { + display: flex; + } } - .site-main .comment-navigation, -.site-main -.posts-navigation, -.site-main -.post-navigation { - margin: 0 0 1.5em; +.site-main .posts-navigation, +.site-main .post-navigation { + margin: 0 0 1.5em; } - .comment-navigation .nav-links, .posts-navigation .nav-links, .post-navigation .nav-links { - display: flex; + display: flex; } - .comment-navigation .nav-previous, .posts-navigation .nav-previous, .post-navigation .nav-previous { - flex: 1 0 50%; + flex: 1 0 50%; } - .comment-navigation .nav-next, .posts-navigation .nav-next, .post-navigation .nav-next { - text-align: end; - flex: 1 0 50%; + text-align: end; + flex: 1 0 50%; } /* Posts and pages --------------------------------------------- */ .sticky { - display: block; + display: block; } .post, .page { - margin: 0 0 1.5em; + margin: 0 0 1.5em; } .updated:not(.published) { - display: none; + display: none; } .page-content, .entry-content, .entry-summary { - margin: 1.5em 0 0; + margin: 1.5em 0 0; } .page-links { - clear: both; - margin: 0 0 1.5em; + clear: both; + margin: 0 0 1.5em; } /* Comments --------------------------------------------- */ .comment-content a { - word-wrap: break-word; + word-wrap: break-word; } .bypostauthor { - display: block; + display: block; } /* Widgets --------------------------------------------- */ .widget { - margin: 0 0 1.5em; + margin: 0 0 1.5em; } - .widget select { - max-width: 100%; + max-width: 100%; } /* Media @@ -792,170 +746,169 @@ textarea { .page-content .wp-smiley, .entry-content .wp-smiley, .comment-content .wp-smiley { - border: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; + border: none; + margin-bottom: 0; + margin-top: 0; + padding: 0; } /* Make sure logo link wraps around logo image. */ .custom-logo-link { - display: inline-block; + display: inline-block; } /* Captions --------------------------------------------- */ .wp-caption { - margin-bottom: 1.5em; - max-width: 100%; + margin-bottom: 1.5em; + max-width: 100%; } - -.wp-caption img[class*="wp-image-"] { - display: block; - margin-right: auto; - margin-left: auto; +.wp-caption img[class*=wp-image-] { + display: block; + margin-left: auto; + margin-right: auto; } - .wp-caption .wp-caption-text { - margin: 0.8075em 0; + margin: 0.8075em 0; } .wp-caption-text { - text-align: center; + text-align: center; } /* Galleries --------------------------------------------- */ .gallery { - margin-bottom: 1.5em; - display: grid; - grid-gap: 1.5em; + margin-bottom: 1.5em; + display: grid; + grid-gap: 1.5em; } .gallery-item { - display: inline-block; - text-align: center; - width: 100%; + display: inline-block; + text-align: center; + width: 100%; } .gallery-columns-2 { - grid-template-columns: repeat(2, 1fr); + grid-template-columns: repeat(2, 1fr); } .gallery-columns-3 { - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(3, 1fr); } .gallery-columns-4 { - grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, 1fr); } .gallery-columns-5 { - grid-template-columns: repeat(5, 1fr); + grid-template-columns: repeat(5, 1fr); } .gallery-columns-6 { - grid-template-columns: repeat(6, 1fr); + grid-template-columns: repeat(6, 1fr); } .gallery-columns-7 { - grid-template-columns: repeat(7, 1fr); + grid-template-columns: repeat(7, 1fr); } .gallery-columns-8 { - grid-template-columns: repeat(8, 1fr); + grid-template-columns: repeat(8, 1fr); } .gallery-columns-9 { - grid-template-columns: repeat(9, 1fr); + grid-template-columns: repeat(9, 1fr); } .gallery-caption { - display: block; + display: block; } /*-------------------------------------------------------------- # 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 { - display: none; + display: none; } /* Re-display the Theme Footer when Infinite Scroll has reached its end. */ .infinity-end.neverending .site-footer { - display: block; + display: block; } /*-------------------------------------------------------------- # Utilities --------------------------------------------------------------*/ - /* Accessibility --------------------------------------------- */ - /* Text meant only for screen readers. */ .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 !important; - width: 1px; - word-wrap: normal !important; + border: 0; + clip: rect(1px, 1px, 1px, 1px); + clip-path: inset(50%); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute !important; + width: 1px; + word-wrap: normal !important; } - .screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: 700; - height: auto; - right: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; + background-color: #f1f1f1; + border-radius: 3px; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + clip: auto !important; + clip-path: none; + color: #21759b; + display: block; + font-size: 0.875rem; + font-weight: 700; + height: auto; + left: 5px; + line-height: normal; + padding: 15px 23px 14px; + text-decoration: none; + top: 5px; + width: auto; + z-index: 100000; } /* Do not show the outline on the skip link target. */ #primary[tabindex="-1"]:focus { - outline: 0; + outline: 0; } /* Alignments --------------------------------------------- */ .alignleft { - float: left; - margin-right: 1.5em; - margin-bottom: 1.5em; + /*rtl:ignore*/ + float: left; + /*rtl:ignore*/ + margin-right: 1.5em; + margin-bottom: 1.5em; } .alignright { - float: right; - margin-left: 1.5em; - margin-bottom: 1.5em; + /*rtl:ignore*/ + float: right; + /*rtl:ignore*/ + margin-left: 1.5em; + margin-bottom: 1.5em; } .aligncenter { - clear: both; - display: block; - margin-right: auto; - margin-left: auto; - margin-bottom: 1.5em; + clear: both; + display: block; + margin-left: auto; + margin-right: auto; + margin-bottom: 1.5em; } + +/*# sourceMappingURL=style.css.map */ diff --git a/woocommerce.css b/css/woocommerce.css similarity index 50% rename from woocommerce.css rename to css/woocommerce.css index 309a7fa49d..f2702ac9b1 100644 --- a/woocommerce.css +++ b/css/woocommerce.css @@ -3,445 +3,376 @@ Theme Name: _s WooCommerce styles override */ - /** * Shop tables */ table.shop_table_responsive thead { - display: none; + display: none; } - table.shop_table_responsive tbody th { - display: none; + display: none; } - table.shop_table_responsive tr td { - display: block; - text-align: right; - clear: both; + display: block; + text-align: right; + clear: both; } - table.shop_table_responsive tr td::before { - content: attr(data-title) ": "; - float: left; + content: attr(data-title) ": "; + float: left; } - table.shop_table_responsive tr td.product-remove a { - text-align: left; + text-align: left; } - 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 { - display: none; +table.shop_table_responsive tr td.actions::before, table.shop_table_responsive tr td.download-actions::before { + display: none; } - table.shop_table_responsive tr td.download-actions .button { - display: block; - text-align: center; + display: block; + text-align: center; } @media screen and (min-width: 48em) { - - table.shop_table_responsive thead { - display: table-header-group; - } - - table.shop_table_responsive tbody th { - display: table-cell; - } - - table.shop_table_responsive tr th, - table.shop_table_responsive tr td { - text-align: left; - } - - table.shop_table_responsive tr td { - display: table-cell; - } - - table.shop_table_responsive tr td::before { - display: none; - } + table.shop_table_responsive thead { + display: table-header-group; + } + table.shop_table_responsive tbody th { + display: table-cell; + } + table.shop_table_responsive tr th, +table.shop_table_responsive tr td { + text-align: left; + } + table.shop_table_responsive tr td { + display: table-cell; + } + table.shop_table_responsive tr td::before { + display: none; + } } - /** * Products */ ul.products { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } - ul.products li.product { - list-style: none; - position: relative; - margin-bottom: 2em; + list-style: none; + position: relative; + margin-bottom: 2em; } - ul.products li.product img { - display: block; + display: block; } - ul.products li.product .button { - display: block; + display: block; } @media screen and (min-width: 48em) { - - ul.products li.product { - width: 30.79667%; - float: left; - margin-right: 3.8%; - } - - ul.products li.product.first { - clear: both; - } - - ul.products li.product.last { - margin-right: 0; - } - - ul.products.columns-1 li.product { - float: none; - width: 100%; - } - - ul.products.columns-2 li.product { - width: 48.1%; - } - - ul.products.columns-3 li.product { - width: 30.79667%; - } - - ul.products.columns-4 li.product { - width: 22.15%; - } - - ul.products.columns-5 li.product { - width: 16.96%; - } - - ul.products.columns-6 li.product { - width: 13.49333%; - } + ul.products li.product { + width: 30.7966666667%; + float: left; + margin-right: 3.8%; + } + ul.products li.product.first { + clear: both; + } + ul.products li.product.last { + margin-right: 0; + } + + ul.products.columns-1 li.product { + float: none; + width: 100%; + } + + ul.products.columns-2 li.product { + width: 48.1%; + } + + ul.products.columns-3 li.product { + width: 30.7966666667%; + } + + ul.products.columns-4 li.product { + width: 22.15%; + } + + ul.products.columns-5 li.product { + width: 16.96%; + } + + ul.products.columns-6 li.product { + width: 13.4933333333%; + } } - /** * Single product */ .single-product div.product { - position: relative; + position: relative; } - .single-product div.product .woocommerce-product-gallery { - position: relative; - float: left; + position: relative; + float: left; } - .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { - position: absolute; - top: 2em; - right: 1em; - display: block; - z-index: 99; + position: absolute; + top: 2em; + right: 1em; + display: block; + z-index: 99; } - .single-product div.product .woocommerce-product-gallery .flex-viewport { - margin-bottom: 1em; + margin-bottom: 1em; } - .single-product div.product .woocommerce-product-gallery .flex-control-thumbs { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } - .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { - list-style: none; - cursor: pointer; - float: left; + list-style: none; + cursor: pointer; + float: left; } - .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { - opacity: 0.5; + opacity: 0.5; } - .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { - opacity: 1; + opacity: 1; } - .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img { - opacity: 1; + opacity: 1; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li { - width: 48.1%; + width: 48.1%; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) { - margin-right: 0; + margin-right: 0; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) { - clear: both; + clear: both; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li { - width: 30.79667%; + width: 30.7966666667%; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) { - margin-right: 0; + margin-right: 0; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) { - clear: both; + clear: both; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li { - width: 22.15%; + width: 22.15%; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) { - margin-right: 0; + margin-right: 0; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) { - clear: both; + clear: both; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li { - width: 16.96%; + width: 16.96%; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) { - margin-right: 0; + margin-right: 0; } - .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) { - clear: both; + clear: both; } .stock:empty::before { - display: none; + display: none; } - .stock.in-stock { - color: #0f834d; + color: #0f834d; } - .stock.out-of-stock { - color: #e2401c; + color: #e2401c; } /** * Checkout */ @media screen and (min-width: 768px) { - - .col2-set .form-row-first { - float: left; - margin-right: 3.8%; - } - - .col2-set .form-row-last { - float: right; - margin-right: 0; - } - - .col2-set .form-row-first, - .col2-set .form-row-last { - width: 48.1%; - } + .col2-set .form-row-first { + float: left; + margin-right: 3.8%; + } + .col2-set .form-row-last { + float: right; + margin-right: 0; + } + .col2-set .form-row-first, +.col2-set .form-row-last { + width: 48.1%; + } } - /** * General WooCommerce components */ - /** * Header cart */ .site-header-cart { - position: relative; - margin: 0; - padding: 0; + position: relative; + margin: 0; + padding: 0; } - .site-header-cart .cart-contents { - text-decoration: none; + text-decoration: none; } - .site-header-cart .widget_shopping_cart { - display: none; + display: none; } - .site-header-cart .product_list_widget { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } /** * Star rating */ .star-rating { - overflow: hidden; - position: relative; - height: 1.618em; - line-height: 1.618; - width: 5.3em; - font-family: star; - font-weight: 400; + overflow: hidden; + position: relative; + height: 1.618em; + line-height: 1.618; + width: 5.3em; + font-family: star; + font-weight: 400; } - .star-rating::before { - content: "\53\53\53\53\53"; - opacity: 0.25; - float: left; - top: 0; - left: 0; - position: absolute; + content: "SSSSS"; + opacity: 0.25; + float: left; + top: 0; + left: 0; + position: absolute; } - .star-rating span { - overflow: hidden; - float: left; - top: 0; - left: 0; - position: absolute; - padding-top: 1.5em; + overflow: hidden; + float: left; + top: 0; + left: 0; + position: absolute; + padding-top: 1.5em; } - .star-rating span::before { - content: "\53\53\53\53\53"; - top: 0; - position: absolute; - left: 0; - color: #4169e1; + content: "SSSSS"; + top: 0; + position: absolute; + left: 0; + color: #4169e1; } p.stars a { - position: relative; - height: 1em; - width: 1em; - text-indent: -999em; - display: inline-block; - text-decoration: none; - margin-right: 1px; - font-weight: 400; + position: relative; + height: 1em; + width: 1em; + text-indent: -999em; + display: inline-block; + text-decoration: none; + margin-right: 1px; + font-weight: 400; } - p.stars a::before { - display: block; - position: absolute; - top: 0; - left: 0; - width: 1em; - height: 1em; - line-height: 1; - font-family: star; - content: "\53"; - color: #404040; - text-indent: 0; - opacity: 0.25; + display: block; + position: absolute; + top: 0; + left: 0; + width: 1em; + height: 1em; + line-height: 1; + font-family: star; + content: "S"; + color: #404040; + text-indent: 0; + opacity: 0.25; } - p.stars a:hover ~ a::before { - content: "\53"; - color: #404040; - opacity: 0.25; + content: "S"; + color: #404040; + opacity: 0.25; } - p.stars:hover a::before { - content: "\53"; - color: #4169e1; - opacity: 1; + content: "S"; + color: #4169e1; + opacity: 1; } - p.stars.selected a.active::before { - content: "\53"; - color: #4169e1; - opacity: 1; + content: "S"; + color: #4169e1; + opacity: 1; } - p.stars.selected a.active ~ a::before { - content: "\53"; - color: #404040; - opacity: 0.25; + content: "S"; + color: #404040; + opacity: 0.25; } - p.stars.selected a:not(.active)::before { - content: "\53"; - color: #4169e1; - opacity: 1; + content: "S"; + color: #4169e1; + opacity: 1; } /** * Tabs */ .woocommerce-tabs ul.tabs { - list-style: none; - margin: 0; - padding: 0; - text-align: left; + list-style: none; + margin: 0; + padding: 0; + text-align: left; } - .woocommerce-tabs ul.tabs li { - display: block; - margin: 0; - position: relative; + display: block; + margin: 0; + position: relative; } - .woocommerce-tabs ul.tabs li a { - padding: 1em 0; - display: block; + padding: 1em 0; + display: block; } - .woocommerce-tabs .panel h2:first-of-type { - margin-bottom: 1em; + margin-bottom: 1em; } /** * Password strength meter */ .woocommerce-password-strength { - text-align: right; + text-align: right; } - .woocommerce-password-strength.strong { - color: #0f834d; + color: #0f834d; } - .woocommerce-password-strength.short { - color: #e2401c; + color: #e2401c; } - .woocommerce-password-strength.bad { - color: #e2401c; + color: #e2401c; } - .woocommerce-password-strength.good { - color: #3d9cd2; + color: #3d9cd2; } /** * Forms */ .form-row.woocommerce-validated input.input-text { - box-shadow: inset 2px 0 0 #0f834d; + box-shadow: inset 2px 0 0 #0f834d; } - .form-row.woocommerce-invalid input.input-text { - box-shadow: inset 2px 0 0 #e2401c; + box-shadow: inset 2px 0 0 #e2401c; } .required { - color: #f00; + color: #f00; } /** @@ -452,116 +383,102 @@ p.stars.selected a:not(.active)::before { .woocommerce-error, .woocommerce-noreviews, p.no-comments { - background-color: #0f834d; - clear: both; + background-color: #0f834d; + clear: both; } .woocommerce-info, .woocommerce-noreviews, p.no-comments { - background-color: #3d9cd2; + background-color: #3d9cd2; } .woocommerce-error { - background-color: #e2401c; + background-color: #e2401c; } .demo_store { - position: fixed; - left: 0; - bottom: 0; - right: 0; - margin: 0; - padding: 1em; - background-color: #3d9cd2; - z-index: 9999; + position: fixed; + left: 0; + bottom: 0; + right: 0; + margin: 0; + padding: 1em; + background-color: #3d9cd2; + z-index: 9999; } @media screen and (min-width: 48em) { - - /** - * Header cart - */ - .site-header-cart .widget_shopping_cart { - position: absolute; - top: 100%; - width: 100%; - z-index: 999999; - left: -999em; - display: block; - 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 { - left: 0; - display: block; - } + /** + * Header cart + */ + .site-header-cart .widget_shopping_cart { + position: absolute; + top: 100%; + width: 100%; + z-index: 999999; + left: -999em; + display: block; + 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 { + left: 0; + display: block; + } } - /** * WooCommerce widgets */ - /** * WooCommerce Price Filter */ .widget_price_filter .price_slider { - margin-bottom: 1.5em; + margin-bottom: 1.5em; } - .widget_price_filter .price_slider_amount { - text-align: right; - line-height: 2.4; + text-align: right; + line-height: 2.4; } - .widget_price_filter .price_slider_amount .button { - float: left; + float: left; } - .widget_price_filter .ui-slider { - position: relative; - text-align: left; + position: relative; + text-align: left; } - .widget_price_filter .ui-slider .ui-slider-handle { - position: absolute; - z-index: 2; - width: 1em; - height: 1em; - cursor: ew-resize; - outline: none; - background: #4169e1; - box-sizing: border-box; - margin-top: -0.25em; - opacity: 1; + position: absolute; + z-index: 2; + width: 1em; + height: 1em; + cursor: ew-resize; + outline: none; + background: #4169e1; + box-sizing: border-box; + margin-top: -0.25em; + opacity: 1; } - .widget_price_filter .ui-slider .ui-slider-handle:last-child { - 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 { - box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1); +.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); } - .widget_price_filter .ui-slider .ui-slider-range { - position: absolute; - z-index: 1; - display: block; - border: 0; - background: #4169e1; + position: absolute; + z-index: 1; + display: block; + border: 0; + background: #4169e1; } - .widget_price_filter .price_slider_wrapper .ui-widget-content { - background: rgba(0, 0, 0, 0.1); + background: rgba(0, 0, 0, 0.1); } - .widget_price_filter .ui-slider-horizontal { - height: 0.5em; + height: 0.5em; } - .widget_price_filter .ui-slider-horizontal .ui-slider-range { - height: 100%; + height: 100%; } + +/*# sourceMappingURL=woocommerce.css.map */ diff --git a/css/woocommerce.css.map b/css/woocommerce.css.map new file mode 100644 index 0000000000..a0f654d43d --- /dev/null +++ b/css/woocommerce.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../sass/woocommerce.scss","../sass/plugins/woocommerce/_tables.scss","../sass/plugins/woocommerce/_products.scss","../sass/abstracts/mixins/_mixins.scss","../sass/abstracts/variables/_columns.scss","../sass/plugins/woocommerce/_single-product.scss","../sass/plugins/woocommerce/_checkout.scss","../sass/plugins/woocommerce/_components.scss","../sass/abstracts/variables/_colors.scss","../sass/plugins/woocommerce/_widgets.scss"],"names":[],"mappings":"AAAA;AAAA;;AAAA;AAAA;AAcA;AAAA;AAAA;ACZC;EACC;;AAKA;EACC;;AAMD;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAKA;EACC;;AAGD;EACC;;AAOD;EACC;;AAMD;EACC;EACA;;;AAOL;EAIE;IACC;;EAKA;IACC;;EAMD;AAAA;IAEC;;EAGD;IACC;;EAEA;IACC;;;AD9DL;AAAA;AAAA;AEnBA;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;;AAKH;EAIE;ICdD;IDiBE;IACA,cEfe;;EFiBf;IACC;;EAGD;IACC;;;EAOF;IACC;IACA;;;EASA;IC3CF;;;ED2CE;IC3CF;;;ED2CE;IC3CF;;;ED2CE;IC3CF;;;ED2CE;IC3CF;;;AHeD;AAAA;AAAA;AKtBC;EACC;;AAEA;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;;AAEA;EACC;;AAMD;EACC;;AAYD;EF5CL;;AEgDM;EACC;;AAGD;EACC;;AATF;EF5CL;;AEgDM;EACC;;AAGD;EACC;;AATF;EF5CL;;AEgDM;EACC;;AAGD;EACC;;AATF;EF5CL;;AEgDM;EACC;;AAGD;EACC;;;AAYP;EACC;;AAGD;EACC,OLvE2B;;AK0E5B;EACC,OL5EyB;;;AAsB3B;AAAA;AAAA;AM7BA;EAIE;IACC;IACA,cFMe;;EEHhB;IACC;IACA;;EAGD;AAAA;IHLD;;;AHyBD;AAAA;AAAA;AOlCA;AAAA;AAAA;AAGA;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;;AAIF;AAAA;AAAA;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA,OC/CY;;;ADqDb;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OCvEgB;EDwEhB;EACA;;AAKA;EACC;EACA,OChFe;EDiFf;;AASD;EACC;EACA,OC/FU;EDgGV;;AASD;EACC;EACA,OC3GU;ED4GV;;AAGD;EACC;EACA,OC9Ge;ED+Gf;;AAMD;EACC;EACA,OC1HU;ED2HV;;;AAMJ;AAAA;AAAA;AAKC;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAOF;EACC;;;AAKH;AAAA;AAAA;AAGA;EACC;;AAEA;EACC,OPzK2B;;AO4K5B;EACC,OP9KyB;;AOiL1B;EACC,OPlLyB;;AOqL1B;EACC,OPpLwB;;;AOwL1B;AAAA;AAAA;AAOE;EACC;;AAMD;EACC;;;AAKH;EACC;;;AAGD;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;EAKC,kBPzN4B;EO0N5B;;;AAGD;AAAA;AAAA;EAGC,kBP/NyB;;;AOkO1B;EACC,kBPrO0B;;;AOwO3B;EACC;EACA;EACA;EACA;EACA;EACA;EACA,kBP7OyB;EO8OzB;;;AAGD;AAEC;AAAA;AAAA;EAKC;IACC;IACA;IACA;IACA;IACA;IACA;IACA;;EAMA;IACC;IACA;;;APzOJ;AAAA;AAAA;ASvCA;AAAA;AAAA;AAKC;EACC;;AAGD;EACC;EACA;;AAEA;EACC;;AAIF;EACC;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA,YDpBY;ECqBZ;EACA;EACA;;AAEA;EACC;;AAGD;EAEC;;AAIF;EACC;EACA;EACA;EACA;EACA,YDxCY;;AC2Cb;EACC;;AAGD;EACC;;AAGD;EACC","file":"woocommerce.css"} \ No newline at end of file diff --git a/functions.php b/functions.php index c6336bda97..b4e03495fa 100644 --- a/functions.php +++ b/functions.php @@ -138,7 +138,8 @@ function _s_widgets_init() { * Enqueue scripts and styles. */ function _s_scripts() { - wp_enqueue_style( '_s-style', get_stylesheet_uri(), array(), _S_VERSION ); + wp_enqueue_style( '_s-style', get_template_directory_uri() . '/css/style.css', _S_VERSION ); + //wp_enqueue_style( '_s-style', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false); wp_style_add_data( '_s-style', 'rtl', 'replace' ); wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true ); @@ -182,3 +183,15 @@ function _s_scripts() { if ( class_exists( 'WooCommerce' ) ) { require get_template_directory() . '/inc/woocommerce.php'; } + +/** + * Enqueue WooCommerce stylesheet + */ +function wp_enqueue_woocommerce_style(){ + wp_register_style( '_s-woocommerce', get_template_directory_uri() . '/css/woocommerce.css' ); + + if ( class_exists( 'woocommerce' ) ) { + wp_enqueue_style( '_s-woocommerce' ); + } +} +add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' ); \ No newline at end of file diff --git a/js/navigation.js b/js/navigation.js index a485fd1057..5f5edaa5db 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -72,7 +72,7 @@ /** * Sets or removes .focus class on an element. */ - function toggleFocus() { + function toggleFocus(event) { if ( event.type === 'focus' || event.type === 'blur' ) { let self = this; // Move up through the ancestors of the current link until we hit .nav-menu. diff --git a/package.json b/package.json index 88f2d537d6..fe51c9ddb1 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "url": "https://github.com/Automattic/_s/issues" }, "devDependencies": { - "@wordpress/scripts": "^19.2.2", - "dir-archiver": "^1.1.1", - "node-sass": "^7.0.1", + "@wordpress/scripts": "^23.1.0", + "dir-archiver": "^1.2.0", + "sass": "^1.52.1", "rtlcss": "^3.5.0" }, "rtlcssConfig": { @@ -36,9 +36,9 @@ "map": false }, "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:rtl": "rtlcss style.css style-rtl.css", + "watch": "sass sass/:./css --style expanded -w", + "compile:css": "sass sass/:./css && stylelint '*.css' --fix || true && stylelint '*.css' --fix", + "compile:rtl": "rtlcss ./css/style.css ./css/style-rtl.css", "lint:scss": "wp-scripts lint-style 'sass/**/*.scss'", "lint:js": "wp-scripts lint-js 'js/*.js'", "bundle": "dir-archiver --src . --dest ../_s.zip --exclude .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist sass style.css.map yarn.lock" diff --git a/sass/abstracts/mixins/_mixins.scss b/sass/abstracts/mixins/_mixins.scss index 860eefe861..48e864fc2d 100644 --- a/sass/abstracts/mixins/_mixins.scss +++ b/sass/abstracts/mixins/_mixins.scss @@ -7,5 +7,5 @@ // Column width with margin @mixin column-width($numberColumns: 3) { - width: map-get($columns, $numberColumns) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns ); + width: map-get($columns, $numberColumns) - ( calc(( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns )); } diff --git a/style.css b/style.css index e49999960b..014651e7a5 100644 --- a/style.css +++ b/style.css @@ -21,949 +21,3 @@ 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: ----------------------------------------------------------------- -# Generic - - Normalize - - Box sizing -# Base - - Typography - - Elements - - Links - - Forms -## Layouts -# Components - - Navigation - - Posts and pages - - Comments - - Widgets - - Media - - Captions - - Galleries -# plugins - - Jetpack infinite scroll -# Utilities - - Accessibility - - 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. - */ -html { - line-height: 1.15; - -webkit-text-size-adjust: 100%; -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers. - */ -body { - margin: 0; -} - -/** - * Render the `main` element consistently in IE. - */ -main { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ -pre { - font-family: monospace, monospace; - font-size: 1em; -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Remove the gray background on active links in IE 10. - */ -a { - background-color: transparent; -} - -/** - * 1. Remove the bottom border in Chrome 57- - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ -abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -/** - * Add the correct font size in all browsers. - */ -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove the border on images inside links in IE 10. - */ -img { - border-style: none; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers. - * 2. Remove the margin in Firefox and Safari. - */ -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ -button, -input { - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ -button, -select { - text-transform: none; -} - -/** - * Correct the inability to style clickable types in iOS and Safari. - */ -button, -[type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -/** - * Remove the inner border and padding in Firefox. - */ -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ -legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; -} - -/** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ -progress { - vertical-align: baseline; -} - -/** - * Remove the default vertical scrollbar in IE 10+. - */ -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10. - * 2. Remove the padding in IE 10. - */ -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; - padding: 0; -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ -[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; -} - -/** - * Remove the inner padding in Chrome and Safari on macOS. - */ -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ -::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in Edge, IE 10+, and Firefox. - */ -details { - display: block; -} - -/* - * Add the correct display in all browsers. - */ -summary { - display: list-item; -} - -/* Misc - ========================================================================== */ - -/** - * Add the correct display in IE 10+. - */ -template { - display: none; -} - -/** - * Add the correct display in IE 10. - */ -[hidden] { - display: none; -} - -/* 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/ */ -*, -*::before, -*::after { - box-sizing: inherit; -} - -html { - box-sizing: border-box; -} - -/*-------------------------------------------------------------- -# Base ---------------------------------------------------------------*/ - -/* Typography ---------------------------------------------- */ -body, -button, -input, -select, -optgroup, -textarea { - color: #404040; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 1rem; - line-height: 1.5; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; -} - -p { - margin-bottom: 1.5em; -} - -dfn, -cite, -em, -i { - font-style: italic; -} - -blockquote { - margin: 0 1.5em; -} - -address { - margin: 0 0 1.5em; -} - -pre { - background: #eee; - font-family: "Courier 10 Pitch", courier, monospace; - line-height: 1.6; - margin-bottom: 1.6em; - max-width: 100%; - overflow: auto; - padding: 1.6em; -} - -code, -kbd, -tt, -var { - font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} - -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} - -mark, -ins { - background: #fff9c0; - text-decoration: none; -} - -big { - font-size: 125%; -} - -/* Elements ---------------------------------------------- */ -body { - background: #fff; -} - -hr { - background-color: #ccc; - border: 0; - height: 1px; - margin-bottom: 1.5em; -} - -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: 700; -} - -dd { - margin: 0 1.5em 1.5em; -} - -/* Make sure embeds and iframes fit their containers. */ -embed, -iframe, -object { - max-width: 100%; -} - -img { - height: auto; - max-width: 100%; -} - -figure { - margin: 1em 0; -} - -table { - margin: 0 0 1.5em; - width: 100%; -} - -/* Links ---------------------------------------------- */ -a { - color: #4169e1; -} - -a:visited { - color: #800080; -} - -a:hover, -a:focus, -a:active { - color: #191970; -} - -a:focus { - outline: thin dotted; -} - -a:hover, -a:active { - outline: 0; -} - -/* Forms ---------------------------------------------- */ -button, -input[type="button"], -input[type="reset"], -input[type="submit"] { - border: 1px solid; - border-color: #ccc #ccc #bbb; - border-radius: 3px; - background: #e6e6e6; - color: rgba(0, 0, 0, 0.8); - line-height: 1; - padding: 0.6em 1em 0.4em; -} - -button:hover, -input[type="button"]:hover, -input[type="reset"]:hover, -input[type="submit"]:hover { - border-color: #ccc #bbb #aaa; -} - -button:active, -button:focus, -input[type="button"]:active, -input[type="button"]:focus, -input[type="reset"]:active, -input[type="reset"]:focus, -input[type="submit"]:active, -input[type="submit"]:focus { - border-color: #aaa #bbb #bbb; -} - -input[type="text"], -input[type="email"], -input[type="url"], -input[type="password"], -input[type="search"], -input[type="number"], -input[type="tel"], -input[type="range"], -input[type="date"], -input[type="month"], -input[type="week"], -input[type="time"], -input[type="datetime"], -input[type="datetime-local"], -input[type="color"], -textarea { - color: #666; - border: 1px solid #ccc; - border-radius: 3px; - padding: 3px; -} - -input[type="text"]:focus, -input[type="email"]:focus, -input[type="url"]:focus, -input[type="password"]:focus, -input[type="search"]:focus, -input[type="number"]:focus, -input[type="tel"]:focus, -input[type="range"]:focus, -input[type="date"]:focus, -input[type="month"]:focus, -input[type="week"]:focus, -input[type="time"]:focus, -input[type="datetime"]:focus, -input[type="datetime-local"]:focus, -input[type="color"]:focus, -textarea:focus { - color: #111; -} - -select { - border: 1px solid #ccc; -} - -textarea { - width: 100%; -} - -/*-------------------------------------------------------------- -# Layouts ---------------------------------------------------------------*/ - -/*-------------------------------------------------------------- -# Components ---------------------------------------------------------------*/ - -/* Navigation ---------------------------------------------- */ -.main-navigation { - display: block; - width: 100%; -} - -.main-navigation ul { - display: none; - list-style: none; - margin: 0; - padding-left: 0; -} - -.main-navigation ul ul { - box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); - float: left; - position: absolute; - top: 100%; - left: -999em; - z-index: 99999; -} - -.main-navigation ul ul ul { - left: -999em; - top: 0; -} - -.main-navigation ul ul li:hover > ul, -.main-navigation ul ul li.focus > ul { - display: block; - left: auto; -} - -.main-navigation ul ul a { - width: 200px; -} - -.main-navigation ul li:hover > ul, -.main-navigation ul li.focus > ul { - left: auto; -} - -.main-navigation li { - position: relative; -} - -.main-navigation a { - display: block; - text-decoration: none; -} - -/* Small menu. */ -.menu-toggle, -.main-navigation.toggled ul { - display: block; -} - -@media screen and (min-width: 37.5em) { - - .menu-toggle { - display: none; - } - - .main-navigation ul { - display: flex; - } -} - -.site-main .comment-navigation, -.site-main -.posts-navigation, -.site-main -.post-navigation { - margin: 0 0 1.5em; -} - -.comment-navigation .nav-links, -.posts-navigation .nav-links, -.post-navigation .nav-links { - display: flex; -} - -.comment-navigation .nav-previous, -.posts-navigation .nav-previous, -.post-navigation .nav-previous { - flex: 1 0 50%; -} - -.comment-navigation .nav-next, -.posts-navigation .nav-next, -.post-navigation .nav-next { - text-align: end; - flex: 1 0 50%; -} - -/* Posts and pages ---------------------------------------------- */ -.sticky { - display: block; -} - -.post, -.page { - margin: 0 0 1.5em; -} - -.updated:not(.published) { - display: none; -} - -.page-content, -.entry-content, -.entry-summary { - margin: 1.5em 0 0; -} - -.page-links { - clear: both; - margin: 0 0 1.5em; -} - -/* Comments ---------------------------------------------- */ -.comment-content a { - word-wrap: break-word; -} - -.bypostauthor { - display: block; -} - -/* Widgets ---------------------------------------------- */ -.widget { - margin: 0 0 1.5em; -} - -.widget select { - max-width: 100%; -} - -/* Media ---------------------------------------------- */ -.page-content .wp-smiley, -.entry-content .wp-smiley, -.comment-content .wp-smiley { - border: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} - -/* Make sure logo link wraps around logo image. */ -.custom-logo-link { - display: inline-block; -} - -/* Captions ---------------------------------------------- */ -.wp-caption { - margin-bottom: 1.5em; - max-width: 100%; -} - -.wp-caption img[class*="wp-image-"] { - display: block; - margin-left: auto; - margin-right: auto; -} - -.wp-caption .wp-caption-text { - margin: 0.8075em 0; -} - -.wp-caption-text { - text-align: center; -} - -/* Galleries ---------------------------------------------- */ -.gallery { - margin-bottom: 1.5em; - display: grid; - grid-gap: 1.5em; -} - -.gallery-item { - display: inline-block; - text-align: center; - width: 100%; -} - -.gallery-columns-2 { - grid-template-columns: repeat(2, 1fr); -} - -.gallery-columns-3 { - grid-template-columns: repeat(3, 1fr); -} - -.gallery-columns-4 { - grid-template-columns: repeat(4, 1fr); -} - -.gallery-columns-5 { - grid-template-columns: repeat(5, 1fr); -} - -.gallery-columns-6 { - grid-template-columns: repeat(6, 1fr); -} - -.gallery-columns-7 { - grid-template-columns: repeat(7, 1fr); -} - -.gallery-columns-8 { - grid-template-columns: repeat(8, 1fr); -} - -.gallery-columns-9 { - grid-template-columns: repeat(9, 1fr); -} - -.gallery-caption { - display: block; -} - -/*-------------------------------------------------------------- -# 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 { - display: none; -} - -/* Re-display the Theme Footer when Infinite Scroll has reached its end. */ -.infinity-end.neverending .site-footer { - display: block; -} - -/*-------------------------------------------------------------- -# Utilities ---------------------------------------------------------------*/ - -/* Accessibility ---------------------------------------------- */ - -/* Text meant only for screen readers. */ -.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 !important; - width: 1px; - word-wrap: normal !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: 700; - height: auto; - left: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; -} - -/* Do not show the outline on the skip link target. */ -#primary[tabindex="-1"]:focus { - outline: 0; -} - -/* 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; -} - -.aligncenter { - clear: both; - display: block; - margin-left: auto; - margin-right: auto; - margin-bottom: 1.5em; -}