File: /home/joyfejor/www/wp-content/themes/onepress/assets/sass/_document.scss
@use "variables";
// main: style.scss
/*------------------------------
2.1 Typography
------------------------------*/
@use "sass:math";
html, body {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0,0,0,0);
font-size: 16px;
@include variables.media-breakpoint-down(md) {
font-size: 15px;
}
@include variables.media-breakpoint-down(sm) {
font-size: 14px;
}
}
body {
background: #ffffff;
}
.site {
background: #FFFFFF;
position: relative;
}
body, button, input, select, textarea {
font-family: variables.$font_text;
@include variables.rem('font-size', 14px);
line-height: 1.7;
color: variables.$text;
}
pre,
code,
input,
textarea {
font: inherit;
}
::-moz-selection {
background: #000000;
color: #FFFFFF;
}
::selection {
background: #000000;
color: #FFFFFF;
}
/*------------------------------
2.2 Links
------------------------------*/
a {
color: variables.$primary;
text-decoration: none;
outline: none;
&:hover{
text-decoration: none;
color: variables.$text;
text-decoration: underline;
}
&:active, &:focus, &:hover {
outline: none;
}
}
/*------------------------------
2.3 Heading
------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
font-family: variables.$font_heading;
font-weight: 600;
margin-bottom: 15px;
@include variables.rem('margin-bottom', 15px);
margin-top: 0;
@extend .break;
color: #333333;
& a {
color: #333333;
text-decoration: none;
}
}
h1 {
line-height: 1.3;
@include variables.rem('font-size', 33px);
@include variables.media-breakpoint-up(md) {
@include variables.rem('font-size', 40px);
}
span {
font-weight: bold;
}
}
h2 {
line-height: 1.2;
@include variables.rem('font-size', 25px);
@include variables.media-breakpoint-up(md) {
@include variables.rem('font-size', 32px);
}
}
h3 {
@include variables.rem('font-size', 20px);
font-weight: 600;
}
h4 {
@include variables.rem('font-size', 17px);
margin-bottom: 12px;
}
h5 {
text-transform: uppercase;
@include variables.rem('font-size', 15px);
font-weight: 700;
}
h6 {
font-weight: 700;
text-transform: uppercase;
@include variables.rem('font-size', 12px);
letter-spacing: 1px;
}
/*------------------------------
2.4 Base
------------------------------*/
ul,ol,dl,p,details,address,.vcard,figure,pre,fieldset,table,dt,dd,hr {
@include variables.rem('margin-bottom', 15px);
margin-top: 0;
}
p,ul,ol,dl,blockquote {
@extend .break;
}
/*------------------------------
2.5 Content
------------------------------*/
img {
height: auto;
max-width: 100%;
vertical-align: middle;
}
b,
strong {
font-weight: bold;
}
blockquote {
clear: both;
margin: variables.$base 0;
p {
font-style: italic;
}
cite {
font-style: normal;
margin-bottom: variables.$base;
font-size: 13px;
}
}
dfn,
cite,
em,
i {
font-style: italic;
}
figure {
margin: 0;
}
address {
margin: variables.$base 0;
}
hr {
border: 0;
border-top: 1px solid variables.$border;
height: 1px;
margin-bottom: variables.$base;
}
tt,
kbd,
pre,
code,
samp,
var {
font-family: variables.$monaco;
background-color: variables.$border;
padding: 5px 7px;
@include variables.border-radius;
}
pre {
overflow: auto;
white-space: pre-wrap;
max-width: 100%;
line-height: 1.7;
margin: variables.$base 0;
padding: variables.$base;
@extend .break;
}
details {
summary {
font-weight: bold;
margin-bottom: variables.$base;
}
:focus {
outline: none;
}
}
abbr,
acronym,
dfn {
cursor: help;
font-size: .95em;
text-transform: uppercase;
border-bottom: 1px dotted variables.$border;
letter-spacing: 1px;
}
mark {
background-color: #fff9c0;
text-decoration: none;
}
small {
font-size: 82%;
}
big {
font-size: 125%;
}
ul, ol {
padding-left: 20px;
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
ul li, ol li {
margin: math.div(variables.$base, 2.5) 0;
}
dt {
font-weight: bold;
}
dd {
margin: 0 variables.$base variables.$base;
}
/*------------------------------
2.6 Table
------------------------------*/
table {
width: 100%;
margin-bottom: variables.$base;
border: 1px solid variables.$border;;
border-collapse: collapse;
border-spacing: 0;
}
table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
border: 1px solid variables.$border;
line-height: 1.42857;
padding: 5px;
vertical-align: middle;
//text-align: center;
}
table > thead > tr > th, table > thead > tr > td {
border-bottom-width: 2px;
}
table th {
font-size: 14px;
letter-spacing: 2px;
text-transform: uppercase;
}
/*------------------------------
2.7 Form
------------------------------*/
fieldset{
padding: variables.$base;
border: 1px solid variables.$border;
}
input[type="reset"],input[type="submit"],input[type="submit"],
/* 3rd plugins support */
.pirate-forms-submit-button, .contact-form div.wpforms-container-full .wpforms-form .wpforms-submit {
cursor: pointer;
background: variables.$primary;
border: none;
display: inline-block;
color: #FFFFFF;
letter-spacing: 1px;
text-transform: uppercase;
line-height: 1;
text-align: center;
padding: 15px 23px 15px 23px;
@include variables.border-radius(2px);
box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1) inset;
margin: 3px 0;
text-decoration: none;
font-weight: 600;
font-size: 13px;
&:hover {
opacity: 0.8;
background: variables.$primary;
border: none;
}
}
input[type="button"]:hover, input[type="button"]:focus,input[type="reset"]:hover,
input[type="reset"]:focus,input[type="submit"]:hover,input[type="submit"]:focus,
button:hover,button:focus {
cursor:pointer;
}
textarea {
resize: vertical;
}
select {
max-width: 100%;
overflow: auto;
vertical-align: top;
outline: none;
border: 1px solid variables.$border;
padding: variables.$base*0.5;
}
textarea:not(.editor-post-title__input),
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"] {
padding: 10px;
max-width: 100%;
border: 0px;
font-size: 15px;
font-weight: normal;
line-height: 22px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-webkit-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
background-color: #f2f2f2;
border-bottom: 1px solid #fff;
box-sizing: border-box;
color: #000000;
&:focus {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
-o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-webkit-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
border-color: #EBEBEB;
border-bottom: 1px solid #fff !important;
background: #e9e9e9;
}
}
button::-moz-focus-inner {
border: 0;
padding: 0;
}
input[type="radio"],input[type="checkbox"] {
margin: 0 variables.$base*0.5;
}
/*------------------------------
2.8 Accessibility
------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
background-color: variables.$meta;
@include variables.border-radius( 3px );
clip: auto !important;
color: variables.$primary;
display: block;
height: auto;
left: 5px;
line-height: normal;
padding: 17px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar */
}
/*------------------------------
2.8 Accessibility
------------------------------*/
/*------------------------------
2.9 Alignments
------------------------------*/
.alignleft {
display: inline;
float: left;
margin-right: 3.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 3.5em;
}
.aligncenter {
clear: both;
@include variables.center-block;
}
/*------------------------------
3.0 Clearings
------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
@include variables.clearfix;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
@include variables.clearfix-after;
}
/*------------------------------
3.1 Infinite Scroll
------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
display: block;
}
/*------------------------------
3.1 Helper.
------------------------------*/
.hide {
display: none;
}
.clearleft {
clear: left;
}
.break {
word-break: break-word;
word-wrap: break-word;
}
body.mce-content-body{
margin: 20px 40px;
font-size: 13px;
}