123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786 |
- /*
- * Theme Name: Affinity
- * Description: Gutenberg Block Editor Styles
- */
- /*--------------------------------------------------------------
- >>> TABLE OF CONTENTS:
- ----------------------------------------------------------------
- 1.0 General Typography
- 2.0 General Block Styles
- 3.0 Blocks - Common Blocks
- 4.0 Blocks - Formatting
- 5.0 Blocks - Layout Elements
- 6.0 Blocks - Widgets
- --------------------------------------------------------------*/
- /*--------------------------------------------------------------
- 1.0 General Typography
- --------------------------------------------------------------*/
- .edit-post-visual-editor .editor-block-list__block,
- .edit-post-visual-editor .editor-block-list__block p,
- .editor-default-block-appender textarea.editor-default-block-appender__content {
- font-size: 16px;
- font-family: Lora, Baskerville, Georgia, Times, serif;
- line-height: 1.6;
- }
- .edit-post-visual-editor .editor-block-list__block {
- color: #5e5853;
- }
- .alignleft {
- margin: .8em 1.6em .8em 0;
- }
- .alignright {
- margin: .8em 0 .8em 1.6em;
- }
- /* Title */
- .editor-post-title__block .editor-post-title__input {
- color: #5e5853;
- font-family: Lora, Baskerville, Georgia, Times, serif;
- font-size: 28px;
- font-style: italic;
- font-weight: normal;
- margin-top: 0.2em;
- margin-bottom: 0.2em;
- }
- /* Headings */
- .edit-post-visual-editor h1,
- .edit-post-visual-editor h2,
- .edit-post-visual-editor h3,
- .edit-post-visual-editor h4,
- .edit-post-visual-editor h5,
- .edit-post-visual-editor h6 {
- clear: both;
- color: #5e5853;
- font-family: Lora, Baskerville, Georgia, Times, serif;
- font-style: italic;
- font-weight: normal;
- margin-top: 0.2em;
- margin-bottom: 0.2em;
- }
- .edit-post-visual-editor h1 {
- font-size: 34px;
- }
- .edit-post-visual-editor h2 {
- font-size: 29.2px;
- }
- .edit-post-visual-editor h3 {
- font-size: 26px;
- }
- .edit-post-visual-editor h4 {
- font-size: 18px;
- }
- .edit-post-visual-editor h5 {
- font-size: 16px;
- }
- .edit-post-visual-editor h6 {
- font-size: 14px;
- }
- @media screen and (min-width: 46em) {
- .edit-post-visual-editor h1,
- .editor-post-title__block .editor-post-title__input {
- font-size: 47.12px;
- }
- .edit-post-visual-editor h2 {
- font-size: 42px;
- }
- .edit-post-visual-editor h3 {
- font-size: 29.2px;
- }
- .edit-post-visual-editor h4 {
- font-size: 26px;
- }
- .edit-post-visual-editor h5 {
- font-size: 18px;
- }
- .edit-post-visual-editor h6 {
- font-size: 16px;
- }
- }
- /* Paragraphs */
- .edit-post-visual-editor p {
- margin: 0 0 1.6em;
- }
- .edit-post-visual-editor blockquote p {
- margin-bottom: 1.6em;
- }
- /* Images */
- .wp-block-image figcaption {
- font-size: 13.2px;
- font-style: italic;
- }
- @media screen and ( min-width: 48em ) {
- .edit-post-visual-editor .editor-block-list__block[data-align=wide] {
- max-width: 860px;
- }
- }
- /*--------------------------------------------------------------
- 2.0 General Block Styles
- --------------------------------------------------------------*/
- /* Main column width */
- .wp-block {
- max-width: 567px; /* 537px + 30px padding */
- }
- /* Link styles */
- .edit-post-visual-editor a,
- .editor-block-list__block a,
- .wp-block-freeform.block-library-rich-text__tinymce a {
- color: #99908a;
- transition: 0.3s;
- }
- .edit-post-visual-editor a:hover,
- .edit-post-visual-editor a:focus,
- .edit-post-visual-editor a:active,
- .editor-block-list__block a:hover,
- .editor-block-list__block a:focus,
- .editor-block-list__block a:active,
- .wp-block-freeform.block-library-rich-text__tinymce a:hover,
- .wp-block-freeform.block-library-rich-text__tinymce a:focus,
- .wp-block-freeform.block-library-rich-text__tinymce a:active {
- color: #383e44;
- text-decoration: underline !important;
- }
- /* List styles */
- .edit-post-visual-editor ul:not(.wp-block-gallery),
- .editor-block-list__block ul:not(.wp-block-gallery),
- .block-library-list ul {
- list-style: disc;
- }
- .edit-post-visual-editor ol,
- .editor-block-list__block ol,
- .block-library-list ol {
- list-style: decimal;
- }
- .edit-post-visual-editor ul:not(.wp-block-gallery) li,
- .editor-block-list__block ul:not(.wp-block-gallery) li,
- .edit-post-visual-editor ol li,
- .editor-block-list__block ol li,
- .block-library-list li {
- margin-bottom: 0;
- }
- .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
- .editor-block-list__block ul:not(.wp-block-gallery) li > ul,
- .block-library-list li > ul,
- .edit-post-visual-editor li > ol,
- .editor-block-list__block li > ol,
- .block-library-list li > ol {
- margin-bottom: 0;
- }
- .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
- .rtl .editor-block-list__block ul:not(.wp-block-gallery),
- .rtl .block-library-list ul,
- .rtl .edit-post-visual-editor ol,
- .rtl .editor-block-list__block ol,
- .rtl .block-library-list ol {
- margin-left: 0;
- margin-right: 1.6em;
- padding: 0;
- }
- .rtl .edit-post-visual-editor ol,
- .rtl .editor-block-list__block ol,
- .rtl .block-library-list ol {
- margin-left: 1.6em;
- margin-right: 1.6em;
- }
- /* Quotes */
- .rtl .editor-block-list__block blockquote {
- border-left: 0;
- padding-left: 0;
- }
- /* Captions */
- [class^="wp-block-"] figcaption {
- color: #686868;
- font-style: italic;
- line-height: 1.6153846154;
- padding-top: 0.5384615385em;
- }
- /*--------------------------------------------------------------
- 3.0 Blocks - Common Blocks
- --------------------------------------------------------------*/
- /* Paragraph */
- .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
- font-family: Lora, Baskerville, Georgia, Times, serif;
- font-size: 64px;
- }
- .rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
- }
- /* Quote */
- .wp-block-quote {
- color: #99908a;
- font-size: 18px;
- font-style: italic;
- margin: 0;
- margin-bottom: .8em;
- padding-top: .8em;
- padding-bottom: .8em;
- }
- .wp-block-quote,
- .wp-block-quote[style*="text-align:center"],
- .wp-block-quote[style*="text-align: center"] {
- border-top: 3px solid #e8e9ea;
- border-bottom: 1px solid #e8e9ea;
- }
- .wp-block-quote[style*="text-align:right"],
- .wp-block-quote[style*="text-align: right"],
- .wp-block-quote:not(.is-large):not(.is-style-large),
- .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
- .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
- border-left: 0;
- border-right: 0;
- padding-left: 0;
- padding-right: 0;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
- color: #99908a;
- font-size: 18px;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote p:last-child {
- margin-bottom: 0;
- }
- .wp-block-quote__citation {
- color: #99908a;
- display: block;
- text-align: right;
- font-style: normal;
- font-size: 16px;
- }
- .wp-block-quote__citation:before {
- }
- .wp-block-quote em,
- .wp-block-quote i,
- .wp-block-quote__citation:before {
- font-style: normal;
- }
- .wp-block-quote > :last-child {
- margin-bottom: 0;
- }
- .wp-block-quote.alignleft {
- margin: .8em 1.6em .8em 0;
- }
- .wp-block-quote.alignright {
- margin: .8em 0 .8em 1.6em;
- }
- .wp-block-quote.aligncenter {
- margin-bottom: 1.6em;
- }
- .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
- .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
- }
- .wp-block-quote.is-large,
- .wp-block-quote.is-style-large {
- padding: .4em 0 .8em;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
- font-size: 26px;
- }
- @media screen and ( min-width: 68em ) {
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
- font-size: 26px;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
- .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
- font-size: 36px;
- }
- }
- /* Audio */
- /* Cover */
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
- .edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
- font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
- }
- /* File */
- .wp-block-file .wp-block-file__button {
- border-radius: 0;
- display: inline-block;
- font-size: 13.2px;
- font-family: Raleway, "Helvetica Neue", sans-serif;
- text-transform: uppercase;
- letter-spacing: 1px;
- font-weight: bold;
- line-height: 1;
- transition: 0.3s;
- text-decoration: none;
- background-color: #99908a;
- outline: 4px solid #99908a;
- border: 2px solid white;
- position: relative;
- left: 4px;
- }
- .rtl .wp-block-file * + .wp-block-file__button {
- margin-left: 0.75em;
- margin-right: 0;
- }
- /*--------------------------------------------------------------
- 4.0 Blocks - Formatting
- --------------------------------------------------------------*/
- /* Verse */
- .wp-block-verse pre {
- color: #5e5853;
- background: transparent;
- font-family: inherit;
- font-size: 18px;
- line-height: inherit;
- margin-bottom: 1.6em;
- max-width: 100%;
- overflow: auto;
- padding: 0;
- }
- /* Code */
- .wp-block-code {
- font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
- font-size: 13.2px;
- }
- /* Classic */
- .wp-block-freeform.block-library-rich-text__tinymce address {
- margin-bottom: 1.5em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote {
- color: #99908a;
- font-size: 18px;
- font-style: italic;
- margin: 0;
- padding: .8em 0;
- border-top: 3px solid #e8e9ea;
- border-bottom: 1px solid #e8e9ea;
- border-left: 0;
- margin-bottom: .8em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
- font-size: 18px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
- margin-bottom: 0;
- }
- @media screen and ( min-width: 68em ) {
- .wp-block-freeform.block-library-rich-text__tinymce blockquote,
- .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
- font-size: 26px;
- }
- }
- .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
- margin-left: 0;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
- display: block;
- text-align: right;
- font-style: normal;
- font-size: 16px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
- float: left;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
- float: right;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
- margin: .8em 1.6em .8em 0;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
- margin: .8em 0 .8em 1.6em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h1 {
- font-size: 34px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h2 {
- font-size: 29.2px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h3 {
- font-size: 26px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h4 {
- font-size: 18px;
- margin-top: 0.4em;
- margin-bottom: 0.4em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h5 {
- font-size: 16px;
- margin-top: 0.8em;
- margin-bottom: 0.8em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h6 {
- font-size: 14px;
- margin-top: 0.8em;
- margin-bottom: 0.8em;
- }
- @media screen and ( min-width: 48em ) {
- .wp-block-freeform.block-library-rich-text__tinymce h1 {
- font-size: 47.12px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h2 {
- font-size: 42px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h3 {
- font-size: 29.2px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h4 {
- font-size: 26px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h5 {
- font-size: 18px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h6 {
- font-size: 16px;
- }
- }
- .wp-block-freeform.block-library-rich-text__tinymce pre {
- background: #e8e9ea;
- font-family: "Courier 10 Pitch", Courier, monospace;
- font-size: 13.2px;
- margin-bottom: 1.6em;
- max-width: 100%;
- overflow: auto;
- padding: 1.6em;
- }
- .wp-block-freeform.block-library-rich-text__tinymce table {
- display: table;
- margin: 0 0 1.6em;
- width: 100%;
- border-collapse: collapse;
- }
- .wp-block-freeform.block-library-rich-text__tinymce .alternate {
- background: transparent;
- }
- .wp-block-freeform.block-library-rich-text__tinymce table td,
- .wp-block-freeform.block-library-rich-text__tinymce table th {
- padding: 0.4em 0.2em;
- border: 0;
- border-bottom: 1px solid #e8e9ea;
- }
- .wp-block-freeform.block-library-rich-text__tinymce table th {
- font-weight: bold;
- border-bottom-width: 3px;
- text-align: left;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce th,
- .rtl .wp-block-freeform.block-library-rich-text__tinymce td {
- text-align: right;
- }
- /* Definition List styles */
- .wp-block-freeform.block-library-rich-text__tinymce dt {
- font-weight: bold;
- }
- .wp-block-freeform.block-library-rich-text__tinymce dd {
- margin-bottom: 1em;
- }
- /* Code styles */
- .wp-block-freeform.block-library-rich-text__tinymce code,
- .wp-block-freeform.block-library-rich-text__tinymce kbd,
- .wp-block-freeform.block-library-rich-text__tinymce tt,
- .wp-block-freeform.block-library-rich-text__tinymce var {
- background: transparent;
- color: #777;
- font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
- font-size: 15px;
- }
- /* Mark, Ins styles */
- .wp-block-freeform.block-library-rich-text__tinymce mark,
- .wp-block-freeform.block-library-rich-text__tinymce ins {
- background: #fff9c0;
- }
- /* Preformatted */
- .editor-block-list__block .wp-block-preformatted pre {
- background: #e8e9ea;
- font-family: "Courier 10 Pitch", Courier, monospace;
- font-size: 13.2px;
- margin-bottom: 1.6em;
- max-width: 100%;
- overflow: auto;
- padding: 1.6em;
- }
- /* Pullquote */
- .editor-block-list__block .wp-block-pullquote blockquote {
- margin: 0;
- padding: 0;
- border: 0;
- }
- .wp-block-pullquote {
- border-color: #e8e9ea;
- padding: 1.6em 0;
- }
- .wp-block-pullquote blockquote {
- font-size: 18px;
- font-style: italic;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
- color: #99908a;
- font-size: 18px;
- }
- .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:last-child {
- margin-bottom: 0;
- }
- .wp-block-pullquote .wp-block-pullquote__citation {
- color: #99908a;
- display: block;
- text-transform: uppercase;
- font-size: 14px;
- }
- .wp-block-pullquote .wp-block-pullquote__citation:before {
- }
- @media screen and ( min-width: 68em ) {
- .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
- font-size: 26px;
- }
- }
- /* Table */
- .editor-block-list__block table.wp-block-table {
- display: table;
- margin: 0 0 1.6em;
- width: 100%;
- }
- .editor-block-list__block table.wp-block-table td,
- .editor-block-list__block table.wp-block-table th {
- padding: 0.4em 0.2em;
- border: 0;
- border-bottom: 1px solid #e8e9ea;
- }
- .editor-block-list__block table.wp-block-table th {
- font-weight: bold;
- border-bottom-width: 3px;
- text-align: left;
- }
- .rtl .wp-block-table th,
- .rtl .wp-block-table td {
- text-align: right;
- }
- /*--------------------------------------------------------------
- 5.0 Blocks - Layout Elements
- --------------------------------------------------------------*/
- /* Buttons */
- .wp-block-button__link {
- background-color: #99908a;
- box-shadow: 0 0 0 4px #99908a;
- border: 2px solid #fff;
- color: #fff;
- display: inline-block;
- font-size: 13.2px;
- font-family: Raleway, "Helvetica Neue", sans-serif;
- text-transform: uppercase;
- letter-spacing: 1px;
- font-weight: bold;
- line-height: 1 !important;
- transition: 0.3s;
- text-decoration: none;
- position: relative;
- left: 4px;
- }
- .wp-block-button.is-style-outline .wp-block-button__link,
- .wp-block-button__link.has-background {
- box-shadow: none;
- border: none;
- padding: 16px 28px;
- }
- .wp-block-button.is-style-outline .wp-block-button__link {
- border: 2px solid currentColor;
- color: #99908a;
- }
- /* Separator */
- .wp-block-separator {
- background-color: #e8e9ea;
- border: 0;
- height: 1px;
- margin: 0.8em auto;
- max-width: 66%;
- }
- .wp-block-separator.is-wide {
- max-width: 100%;
- }
- /*--------------------------------------------------------------
- 6.0 Blocks - Widgets
- --------------------------------------------------------------*/
- /* General Widget styles */
- .edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
- .edit-post-visual-editor [data-align="center"] .wp-block-archives,
- .edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
- list-style-position: inside;
- }
- /* Latest Comments */
- .editor-block-list__block .wp-block-latest-comments__comment-meta a {
- box-shadow: none;
- font-weight: 700;
- text-decoration: none;
- }
- .wp-block-latest-comments__comment-date {
- }
- .wp-block-latest-comments .wp-block-latest-comments__comment {
- border-top: 1px solid #d1d1d1;
- margin-bottom: 0;
- padding: 1.75em 0;
- }
- .wp-block-latest-comments__comment-excerpt p:last-child {
- margin-bottom: 0;
- }
- /* Latest Posts */
- .edit-post-visual-editor .wp-block-latest-posts.is-grid {
- list-style: none;
- margin-left: 0;
- margin-right: 0;
- }
- .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
- margin-bottom: 1em;
- }
|