felixarntz/theme-boilerplate

View on GitHub
editor-style-rtl.css

Summary

Maintainability
Test Coverage
/* -------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Editor
# Typography
# Elements
# Forms
# Accessibility
# Alignments
# Media
    ## Captions
    ## Galleries
------------------------------------------------------------- */
/* -------------------------------------------------------------
# Normalize
Styles based on Normalize v5.0.0 @link https://github.com/necolas/normalize.css
------------------------------------------------------------- */
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden],
template {
    display: none;
}

a {
    background-color: transparent;
}

a:active,
a:hover {
    outline: 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b,
strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

h1 {
    margin: 0.67em 0;
    font-size: 2em;
}

mark {
    color: #000;
    background: #ff0;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 40px;
}

hr {
    -webkit-box-sizing: content-box;
            box-sizing: content-box;
    height: 0;
}

pre {
    overflow: auto;
}

code,
kbd,
pre,
samp {
    font-family: monospace;
    font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    padding: 0.35em 0.625em 0.75em;
    margin: 0 2px;
    border: 1px solid #c0c0c0;
}

legend {
    padding: 0;
    border: 0;
}

textarea {
    overflow: auto;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    padding: 0;
}

/* -------------------------------------------------------------
# Editor
------------------------------------------------------------- */
body {
    max-width: 40rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0.75rem auto;
}

/* -------------------------------------------------------------
# Typography
------------------------------------------------------------- */
body,
button,
input,
select,
textarea {
    color: #404040;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 1em 0 0;
    margin: 0 0 1em;
    clear: both;
    font-weight: 700;
    line-height: 1.4;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    padding: 0;
}

h1 {
    font-size: 24px;
    font-size: 1.5rem;
}

h2 {
    font-size: 20px;
    font-size: 1.25rem;
}

h1 + h2 {
    padding: 0;
}

h3 {
    font-size: 18px;
    font-size: 1.125rem;
}

h2 + h3 {
    padding: 0;
}

h4 {
    font-size: 16px;
    font-size: 1rem;
    font-weight: 800;
}

h3 + h4 {
    padding: 0;
}

h5 {
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 800;
}

h4 + h5 {
    padding: 0;
}

h6 {
    font-size: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

h5 + h6 {
    padding: 0;
}

p {
    padding: 0;
    margin: 0 0 1em;
}

strong {
    font-weight: 700;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    padding-right: 1rem;
    margin: 0 0 1em;
    color: #404040;
    border-right: 4px solid #404040;
}

blockquote cite,
blockquote footer {
    margin-top: 1em;
    color: #8f98a1;
    font-size: 13.6px;
    font-size: 0.85rem;
    font-style: normal;
}

address {
    margin: 0 0 1em;
}

pre {
    max-width: 100%;
    padding: 1.6em;
    margin-bottom: 1.6em;
    overflow: auto;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    background: #eee;
}

code,
kbd,
tt,
var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 15px;
    font-size: 0.9375rem;
}

abbr,
acronym {
    border-bottom: 1px dotted #404040;
    cursor: help;
}

mark,
ins {
    text-decoration: none;
    background: #fff9c0;
}

big {
    font-size: 125%;
}

a {
    color: #21759b;
}

a:visited {
    color: #21759b;
}

a:hover,
a:focus,
a:active {
    color: #1a5c79;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

.icon {
    position: relative;
    top: -0.0625em;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;

    fill: currentColor;
}

/* Typography for Arabic Font */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ary"] body,
html[lang="ary"] button,
html[lang="ary"] input,
html[lang="ary"] select,
html[lang="ary"] textarea,
html[lang="azb"] body,
html[lang="azb"] button,
html[lang="azb"] input,
html[lang="azb"] select,
html[lang="azb"] textarea,
html[lang="fa-IR"] body,
html[lang="fa-IR"] button,
html[lang="fa-IR"] input,
html[lang="fa-IR"] select,
html[lang="fa-IR"] textarea,
html[lang="haz"] body,
html[lang="haz"] button,
html[lang="haz"] input,
html[lang="haz"] select,
html[lang="haz"] textarea,
html[lang="ps"] body,
html[lang="ps"] button,
html[lang="ps"] input,
html[lang="ps"] select,
html[lang="ps"] textarea,
html[lang="ur"] body,
html[lang="ur"] button,
html[lang="ur"] input,
html[lang="ur"] select,
html[lang="ur"] textarea {
    font-family: Tahoma, Arial, sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ary"] h1,
html[lang="ary"] h2,
html[lang="ary"] h3,
html[lang="ary"] h4,
html[lang="ary"] h5,
html[lang="ary"] h6,
html[lang="azb"] h1,
html[lang="azb"] h2,
html[lang="azb"] h3,
html[lang="azb"] h4,
html[lang="azb"] h5,
html[lang="azb"] h6,
html[lang="fa-IR"] h1,
html[lang="fa-IR"] h2,
html[lang="fa-IR"] h3,
html[lang="fa-IR"] h4,
html[lang="fa-IR"] h5,
html[lang="fa-IR"] h6,
html[lang="haz"] h1,
html[lang="haz"] h2,
html[lang="haz"] h3,
html[lang="haz"] h4,
html[lang="haz"] h5,
html[lang="haz"] h6,
html[lang="ps"] h1,
html[lang="ps"] h2,
html[lang="ps"] h3,
html[lang="ps"] h4,
html[lang="ps"] h5,
html[lang="ps"] h6,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] h6 {
    font-weight: 700;
}

/* Typography for Chinese Font */
html[lang^="zh-"] body,
html[lang^="zh-"] button,
html[lang^="zh-"] input,
html[lang^="zh-"] select,
html[lang^="zh-"] textarea {
    font-family: "PingFang TC", "Helvetica Neue", Helvetica, STHeitiTC-Light, Arial, sans-serif;
}

html[lang^="zh-"] h1,
html[lang^="zh-"] h2,
html[lang^="zh-"] h3,
html[lang^="zh-"] h4,
html[lang^="zh-"] h5,
html[lang^="zh-"] h6 {
    font-weight: 700;
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] select,
html[lang="zh-CN"] textarea {
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-Light, Arial, sans-serif;
}

/* Typography for Cyrillic Font */
html[lang="bg-BG"] body,
html[lang="bg-BG"] button,
html[lang="bg-BG"] input,
html[lang="bg-BG"] select,
html[lang="bg-BG"] textarea,
html[lang="ru-RU"] body,
html[lang="ru-RU"] button,
html[lang="ru-RU"] input,
html[lang="ru-RU"] select,
html[lang="ru-RU"] textarea,
html[lang="uk"] body,
html[lang="uk"] button,
html[lang="uk"] input,
html[lang="uk"] select,
html[lang="uk"] textarea {
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

html[lang="bg-BG"] h1,
html[lang="bg-BG"] h2,
html[lang="bg-BG"] h3,
html[lang="bg-BG"] h4,
html[lang="bg-BG"] h5,
html[lang="bg-BG"] h6,
html[lang="ru-RU"] h1,
html[lang="ru-RU"] h2,
html[lang="ru-RU"] h3,
html[lang="ru-RU"] h4,
html[lang="ru-RU"] h5,
html[lang="ru-RU"] h6,
html[lang="uk"] h1,
html[lang="uk"] h2,
html[lang="uk"] h3,
html[lang="uk"] h4,
html[lang="uk"] h5,
html[lang="uk"] h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Typography for Devanagari Font */
html[lang="bn-BD"] body,
html[lang="bn-BD"] button,
html[lang="bn-BD"] input,
html[lang="bn-BD"] select,
html[lang="bn-BD"] textarea,
html[lang="hi-IN"] body,
html[lang="hi-IN"] button,
html[lang="hi-IN"] input,
html[lang="hi-IN"] select,
html[lang="hi-IN"] textarea,
html[lang="mr-IN"] body,
html[lang="mr-IN"] button,
html[lang="mr-IN"] input,
html[lang="mr-IN"] select,
html[lang="mr-IN"] textarea {
    font-family: Arial, sans-serif;
}

html[lang="bn-BD"] h1,
html[lang="bn-BD"] h2,
html[lang="bn-BD"] h3,
html[lang="bn-BD"] h4,
html[lang="bn-BD"] h5,
html[lang="bn-BD"] h6,
html[lang="hi-IN"] h1,
html[lang="hi-IN"] h2,
html[lang="hi-IN"] h3,
html[lang="hi-IN"] h4,
html[lang="hi-IN"] h5,
html[lang="hi-IN"] h6,
html[lang="mr-IN"] h1,
html[lang="mr-IN"] h2,
html[lang="mr-IN"] h3,
html[lang="mr-IN"] h4,
html[lang="mr-IN"] h5,
html[lang="mr-IN"] h6 {
    font-weight: 700;
}

/* Typography for Greek Font */
html[lang="el"] body,
html[lang="el"] button,
html[lang="el"] input,
html[lang="el"] select,
html[lang="el"] textarea {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang="el"] h1,
html[lang="el"] h2,
html[lang="el"] h3,
html[lang="el"] h4,
html[lang="el"] h5,
html[lang="el"] h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Typography for Gujarati Font */
html[lang="gu-IN"] body,
html[lang="gu-IN"] button,
html[lang="gu-IN"] input,
html[lang="gu-IN"] select,
html[lang="gu-IN"] textarea {
    font-family: Arial, sans-serif;
}

html[lang="gu-IN"] h1,
html[lang="gu-IN"] h2,
html[lang="gu-IN"] h3,
html[lang="gu-IN"] h4,
html[lang="gu-IN"] h5,
html[lang="gu-IN"] h6 {
    font-weight: 700;
}

/* Typography for Hebrew Font */
html[lang="he-IL"] body,
html[lang="he-IL"] button,
html[lang="he-IL"] input,
html[lang="he-IL"] select,
html[lang="he-IL"] textarea {
    font-family: "Arial Hebrew", Arial, sans-serif;
}

html[lang="he-IL"] h1,
html[lang="he-IL"] h2,
html[lang="he-IL"] h3,
html[lang="he-IL"] h4,
html[lang="he-IL"] h5,
html[lang="he-IL"] h6 {
    font-weight: 700;
}

/* Typography for Japanese Font */
html[lang="ja"] body,
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea {
    font-family: "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6 {
    font-weight: 700;
}

/* Typography for Korean font */
html[lang="ko-KR"] body,
html[lang="ko-KR"] button,
html[lang="ko-KR"] input,
html[lang="ko-KR"] select,
html[lang="ko-KR"] textarea {
    font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", Dotum, sans-serif;
}

html[lang="ko-KR"] h1,
html[lang="ko-KR"] h2,
html[lang="ko-KR"] h3,
html[lang="ko-KR"] h4,
html[lang="ko-KR"] h5,
html[lang="ko-KR"] h6 {
    font-weight: 600;
}

/* Typography for Thai Font */
html[lang="th"] body,
html[lang="th"] button,
html[lang="th"] input,
html[lang="th"] select,
html[lang="th"] textarea {
    font-family: "Sukhumvit Set", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6 {
    font-family: "Sukhumvit Set", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

/* Remove letter-spacing for all non-latin alphabets */
html[lang="ar"] *,
html[lang="ary"] *,
html[lang="azb"] *,
html[lang="haz"] *,
html[lang="ps"] *,
html[lang^="zh-"] *,
html[lang="bg-BG"] *,
html[lang="ru-RU"] *,
html[lang="uk"] *,
html[lang="bn-BD"] *,
html[lang="hi-IN"] *,
html[lang="mr-IN"] *,
html[lang="el"] *,
html[lang="gu-IN"] *,
html[lang="he-IL"] *,
html[lang="ja"] *,
html[lang="ko-KR"] *,
html[lang="th"] * {
    letter-spacing: 0 !important;
}

/* -------------------------------------------------------------
# Elements
------------------------------------------------------------- */
html {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    text-direction: rtl;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
            box-sizing: inherit;
}

body {
    background: #fff;
}

blockquote,
q {
    quotes: "" "";
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
}

hr {
    margin: 1em auto;
    border: 0;
    border-bottom: 2px solid #8f98a1;
}

ul,
ol {
    margin: 0 0 1em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-right: 1em;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 1rem 0.75rem;
}

img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1em 0;
}

table {
    width: 100%;
    margin: 0 0 1em;
    overflow-x: auto;
    border-collapse: collapse;
}

tr {
    border-bottom: 1px solid #8f98a1;
}

th,
td {
    padding: 0.375rem 0.5rem;
}

thead th,
thead
td {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #bbb;
}

th:first-child,
td:first-child {
    padding-right: 0;
}

th:last-child,
td:last-child {
    padding-left: 0;
}

th {
    text-align: right;
}

/* -------------------------------------------------------------
# Forms
------------------------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
    padding: 0.75rem 1rem;
    color: #404040;
    text-decoration: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: #e6e6e6;
    border: 0;
    border-radius: 3px;
}

button:hover,
button:focus,
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 {
    background-color: #d2d2d2;
}

button.button-primary,
input[type="button"].button-primary,
input[type="reset"].button-primary,
input[type="submit"].button-primary,
.button.button-primary {
    color: #fff;
    background-color: #21759b;
}

button.button-primary:hover,
button.button-primary:focus,
input[type="button"].button-primary:hover,
input[type="button"].button-primary:focus,
input[type="reset"].button-primary:hover,
input[type="reset"].button-primary:focus,
input[type="submit"].button-primary:hover,
input[type="submit"].button-primary:focus,
.button.button-primary:hover,
.button.button-primary:focus {
    background-color: #1a5c79;
}

button.button-link,
input[type="button"].button-link,
input[type="reset"].button-link,
input[type="submit"].button-link,
.button.button-link {
    color: #21759b;
    text-decoration: underline;
    background-color: transparent;
}

button.button-link:hover,
button.button-link:focus,
input[type="button"].button-link:hover,
input[type="button"].button-link:focus,
input[type="reset"].button-link:hover,
input[type="reset"].button-link:focus,
input[type="submit"].button-link:hover,
input[type="submit"].button-link:focus,
.button.button-link:hover,
.button.button-link:focus {
    color: #1a5c79;
    background-color: transparent;
}

.form-group {
    display: block;
    margin-bottom: 1em;
}

@media screen and (min-width: 48rem) {
    form.form-horizontal .form-group {
        align-items: stretch;
        -ms-flex-align: stretch;
        -ms-flex-pack: stretch;
        justify-content: stretch;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;

        -webkit-box-align: stretch;
        -webkit-box-pack: stretch;
    }
    form.form-horizontal .form-group > label:first-child {
        -ms-flex: 1;
            flex: 1;
        padding: 0.375rem 0.5rem;
        text-align: left;

        -webkit-box-flex: 1;
    }
    form.form-horizontal .form-group > label:first-child + *:last-child {
        -ms-flex: 3;
            flex: 3;

        -webkit-box-flex: 3;
    }
}

fieldset {
    margin-bottom: 2em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 800;
    cursor: pointer;
}

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 {
    display: block;
    width: 100%;
    padding: 0.375rem 0.5rem;
    color: #404040;
    border: 1px solid #ccc;
    border-radius: 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: #2c2c2c;
    border-color: #b8b8b8;
}

select {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-left: 0.5em;
    cursor: pointer;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    display: inline;
    font-weight: 400;
}

/* Placeholder text color -- selectors need to be separate to work. */
::-webkit-input-placeholder {
    color: #a6a6a6;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
}

:-moz-placeholder {
    color: #a6a6a6;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
}

::-moz-placeholder {
    color: #a6a6a6;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    /* Since FF19 lowers the opacity of the placeholder by default */
    opacity: 1;
}

:-ms-input-placeholder {
    color: #a6a6a6;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
}

.notice {
    padding: 0.5em 1em;
    margin-bottom: 1em;
    background-color: #fff;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
            box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    border-right: 4px solid #aaa;
}

.notice.notice-success {
    background-color: #d4ffd8;
    border-right-color: #46b450;
}

.notice.notice-info {
    background-color: #d1f4ff;
    border-right-color: #00a0d2;
}

.notice.notice-warning {
    background-color: #fff3d2;
    border-right-color: #ffb900;
}

.notice.notice-error {
    background-color: #ffdcdc;
    border-right-color: #dc3232;
}

.notice > p:first-child,
.notice > ul:first-child {
    margin-top: 0;
}

.notice > p:last-child,
.notice > ul:last-child {
    margin-bottom: 0;
}

.field-notice.notice-success {
    color: #46b450;
}

.field-notice.notice-info {
    color: #00a0d2;
}

.field-notice.notice-warning {
    color: #ffb900;
}

.field-notice.notice-error {
    color: #dc3232;
}

input[type="text"] + span.field-notice,
input[type="email"] + span.field-notice,
input[type="url"] + span.field-notice,
input[type="password"] + span.field-notice,
input[type="search"] + span.field-notice,
input[type="number"] + span.field-notice,
input[type="tel"] + span.field-notice,
input[type="range"] + span.field-notice,
input[type="date"] + span.field-notice,
input[type="month"] + span.field-notice,
input[type="week"] + span.field-notice,
input[type="time"] + span.field-notice,
input[type="datetime"] + span.field-notice,
input[type="datetime-local"] + span.field-notice,
input[type="color"] + span.field-notice,
select + span.field-notice {
    margin-right: 1em;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal[aria-hidden="true"] {
    display: none;
}

.modal .modal-dialog {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

@media (min-width: 48rem) {
    .modal .modal-dialog {
        top: 50%;
        right: 50%;
        width: 80%;
        height: auto;
        max-width: 40rem;
        max-height: 95%;
        border-radius: 10px;
        -webkit-transform: translate(50%, -50%);
                transform: translate(50%, -50%);

             -o-transform: translate(50%, -50%);
    }
}

.modal-dialog {
    background-color: #fff;
    border: 1px solid #ccc;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 0.75rem 1rem;
}

.modal-header {
    align-items: flex-start;
    -ms-flex-align: start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid #ccc;

    -webkit-box-align: start;
    -webkit-box-pack: justify;
}

.modal-header .modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-header .modal-close {
    float: left;
    padding: 0.75rem 1rem;
    margin: -0.75rem auto -0.75rem -1rem;
    color: #8f98a1;
    background-color: transparent;
}

.modal-footer {
    align-items: center;
    -ms-flex-align: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-top: 1px solid #ccc;

    -webkit-box-align: center;
    -webkit-box-pack: end;
}

.modal-footer > :not(:last-child) {
    margin-left: 0.5em;
}

.search-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

input[type="search"].search-field {
    display: block;
    width: auto;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e6e6e6;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

button.search-submit {
    display: block;
    padding: 0.375rem 0.5rem;
    background-color: #e6e6e6;
    border: 1px solid #e6e6e6;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.no-svg .search-submit .screen-reader-text {
    position: relative !important;
    width: auto;
    height: auto;
    clip: auto;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
}

.post-password-form {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.no-sidebar .post-password-form {
    max-width: 20rem;
}

.post-password-form input[type="submit"] {
    color: #fff;
    background-color: #21759b;
}

.post-password-form input[type="submit"]:visited {
    color: #fff;
}

.post-password-form input[type="submit"]:hover,
.post-password-form input[type="submit"]:focus {
    background-color: #1a5c79;
}

.post-password-form p:last-child {
    overflow: hidden;
}

.post-password-form p:last-child input[type="submit"] {
    float: left;
}

.page-login-form {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.no-sidebar .page-login-form {
    max-width: 20rem;
}

.page-login-form form {
    overflow: hidden;
}

.page-login-form form .login-remember {
    float: right;
}

.page-login-form form .login-submit input[type="submit"] {
    float: left;
}

.page-login-form form + .login-links {
    margin-top: 1em;
    font-size: 14.4px;
    font-size: 0.9rem;
}

.page-login-form .login-links {
    text-align: center;
}

#signup-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

#signup-content .wp-signup-container,
#signup-content .wp-activate-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.no-sidebar #signup-content .wp-signup-container,
body.no-sidebar
#signup-content .wp-activate-container {
    max-width: 20rem;
}

#setupform,
#activateform {
    font-size: 14.4px;
    font-size: 0.9rem;
}

#setupform label,
#setupform input,
#setupform select,
#setupform textarea,
#activateform label,
#activateform input,
#activateform select,
#activateform textarea {
    font-size: 16px;
    font-size: 1rem;
}

#setupform br,
#activateform br {
    display: block;
    margin: 0;
    content: "";
}

#setupform label,
#activateform label {
    margin-top: 1em;
}

#setupform input[type="submit"],
#activateform input[type="submit"] {
    color: #fff;
    background-color: #21759b;
}

#setupform input[type="submit"]:visited,
#activateform input[type="submit"]:visited {
    color: #fff;
}

#setupform input[type="submit"]:hover,
#setupform input[type="submit"]:focus,
#activateform input[type="submit"]:hover,
#activateform input[type="submit"]:focus {
    background-color: #1a5c79;
}

#setupform p.submit,
#activateform p.submit {
    text-align: left;
}

#setupform p.error,
#activateform p.error {
    padding: 0.5em 1em;
    background-color: #ffdcdc;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
            box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    border-right: 4px solid #dc3232;
}

#signup-welcome .h3 {
    padding: 0 1rem;
    font-weight: bold;
}

/* -------------------------------------------------------------
# Accessibility
------------------------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    top: 5px;
    right: 5px;
    z-index: 100000;
    display: block;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    clip: auto !important;
    color: #21759b;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: normal;
    text-decoration: none;
    background-color: #f1f1f1;
    -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
            box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
    outline: 0;
}

/* -------------------------------------------------------------
# Alignments
------------------------------------------------------------- */
.alignleft {
    display: inline;
    float: right;
    margin-left: 1em;
}

.alignright {
    display: inline;
    float: left;
    margin-right: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignwide {
    width: auto;
}

@media (min-width: 42rem) {
    body.no-sidebar .entry-header .alignwide,
    body.no-sidebar .entry-content .alignwide,
    body.no-sidebar .entry-footer .alignwide,
    body.mce-content-body .alignwide {
        margin-left: calc(40rem / 2 + 1rem - 50vw);
        margin-right: calc(40rem / 2 + 1rem - 50vw);
    }
}

@media (min-width: 72rem) {
    body.no-sidebar .entry-header .alignwide,
    body.no-sidebar .entry-content .alignwide,
    body.no-sidebar .entry-footer .alignwide,
    body.mce-content-body .alignwide {
        margin-left: -15rem;
        margin-right: -15rem;
    }
}

@media (min-width: 72rem) {
    body.navbar-left.no-sidebar .entry-header .alignwide,
    body.navbar-left.no-sidebar .entry-content .alignwide,
    body.navbar-left.no-sidebar .entry-footer .alignwide,
    body.navbar-right.no-sidebar .entry-header .alignwide,
    body.navbar-right.no-sidebar .entry-content .alignwide,
    body.navbar-right.no-sidebar .entry-footer .alignwide {
        margin-left: -5rem;
        margin-right: -5rem;
    }
}

.alignfull {
    width: auto;
}

body.no-sidebar .alignfull,
body.mce-content-body .alignfull {
    margin-left: -1rem;
    margin-right: -1rem;
}

@media (min-width: 42rem) {
    body.no-sidebar .entry-header .alignfull,
    body.no-sidebar .entry-content .alignfull,
    body.no-sidebar .entry-footer .alignfull,
    body.mce-content-body .alignfull {
        margin-left: calc(40rem / 2 - 50vw);
        margin-right: calc(40rem / 2 - 50vw);
    }
}

@media (min-width: 42rem) {
    body.wrapped-layout.no-sidebar .entry-header .alignfull,
    body.wrapped-layout.no-sidebar .entry-content .alignfull,
    body.wrapped-layout.no-sidebar .entry-footer .alignfull {
        margin-left: -16rem;
        margin-right: -16rem;
    }
}

@media (min-width: 42rem) {
    body.navbar-left.no-sidebar .entry-header .alignfull,
    body.navbar-left.no-sidebar .entry-content .alignfull,
    body.navbar-left.no-sidebar .entry-footer .alignfull,
    body.navbar-right.no-sidebar .entry-header .alignfull,
    body.navbar-right.no-sidebar .entry-content .alignfull,
    body.navbar-right.no-sidebar .entry-footer .alignfull {
        margin-left: calc(40rem / 2 - (50vw - 20rem / 2));
        margin-right: calc(40rem / 2 - (50vw - 20rem / 2));
    }
}

@media (min-width: 42rem) {
    body.navbar-left.wrapped-layout.no-sidebar .entry-header .alignfull,
    body.navbar-left.wrapped-layout.no-sidebar .entry-content .alignfull,
    body.navbar-left.wrapped-layout.no-sidebar .entry-footer .alignfull,
    body.navbar-right.wrapped-layout.no-sidebar .entry-header .alignfull,
    body.navbar-right.wrapped-layout.no-sidebar .entry-content .alignfull,
    body.navbar-right.wrapped-layout.no-sidebar .entry-footer .alignfull {
        margin-left: -6rem;
        margin-right: -6rem;
    }
}

/* -------------------------------------------------------------
# Media
------------------------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* -------------------------------------------------------------
## Captions
------------------------------------------------------------- */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.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;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    text-align: center;
    vertical-align: top;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33333%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66667%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28571%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11111%;
}

.gallery-caption {
    display: block;
}