123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681 |
- /*
- Theme Name: Button 2
- 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
- --------------------------------------------------------------*/
- .editor-styles-wrapper,
- .editor-styles-wrapper p,
- .editor-styles-wrapper .mce-content-body {
- line-height: 1.6;
- }
- .edit-post-visual-editor .editor-block-list__block,
- .editor-default-block-appender textarea.editor-default-block-appender__content {
- color: #777;
- font-family: Lato, Helvetica, sans-serif;
- font-size: 16px;
- }
- .alignleft,
- .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
- margin-right: 24px;
- }
- .alignright,
- .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit {
- margin-left: 24px;
- }
- /* Title */
- .editor-post-title__block .editor-post-title__input {
- clear: both;
- color: #777;
- font-family: Lora, Garamond, serif;
- font-size: 31.25px;
- font-weight: normal;
- margin-top: 0;
- text-align: center;
- line-height: 1.2;
- }
- /* 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;
- font-family: Lora, Garamond, serif;
- font-weight: normal;
- line-height: 1.2;
- }
- .edit-post-visual-editor h1 {
- font-size: 48px;
- }
- .edit-post-visual-editor h2 {
- font-size: 39px;
- }
- .edit-post-visual-editor h3 {
- font-size: 31px;
- }
- .edit-post-visual-editor h4 {
- font-size: 25px;
- }
- .edit-post-visual-editor h5 {
- font-size: 20px;
- }
- .edit-post-visual-editor h6 {
- font-size: 16px;
- }
- /* Paragraphs */
- .edit-post-visual-editor p {
- margin: 0 0 1.5em;
- }
- .edit-post-visual-editor blockquote p {
- margin-bottom: 1.5em;
- }
- /*--------------------------------------------------------------
- 2.0 General Block Styles
- --------------------------------------------------------------*/
- /* Main column width */
- .wp-block {
- max-width: 750px; /* 720px + 30px padding */
- }
- @media screen and (min-width: 960px) {
- .wp-block {
- max-width: 584px; /* 554px + 30px padding */
- }
- }
- @media screen and (min-width: 1080px) {
- .wp-block {
- max-width: 674px; /* 644px + 30px padding */
- }
- }
- @media screen and (min-width: 1380px) {
- .wp-block {
- max-width: 899px; /* 869px + 30px padding */
- }
- }
- /* Link styles */
- .edit-post-visual-editor a,
- .editor-block-list__block a,
- .wp-block-freeform.block-library-rich-text__tinymce a {
- color: #f78769;
- }
- /* List styles */
- .edit-post-visual-editor ul li:not(.blocks-gallery-item),
- .editor-block-list__block ul li:not(.blocks-gallery-item),
- .edit-post-visual-editor ol li,
- .editor-block-list__block ol li,
- .block-library-list li,
- .wp-block-freeform.block-library-rich-text__tinymce ul li,
- .wp-block-freeform.block-library-rich-text__tinymce ol li {
- line-height: 1.6;
- margin-bottom: 0;
- }
- /* Captions */
- [class^="wp-block-"] figcaption {
- color: #555d66;
- font-family: Lora, Garamond, serif;
- font-size: 13px;
- font-style: italic;
- text-align: center;
- line-height: 1.6;
- }
- /*--------------------------------------------------------------
- 3.0 Blocks - Common Blocks
- --------------------------------------------------------------*/
- /* Paragraph */
- .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
- font-family: Lora, Garamond, serif;
- font-size: 3.75em;
- }
- /* Images - Fancy styles */
- .wp-block-image.is-style-fancy,
- .wp-block-image.fancy {
- position: relative;
- line-height: 1;
- }
- .wp-block-image.is-style-fancy .alignright,
- .wp-block-image.fancy .alignright,
- .wp-block-image.is-style-fancy .alignleft,
- .wp-block-image.fancy .alignleft,
- .wp-block-image.is-style-fancy .aligncenter,
- .wp-block-image.fancy .aligncenter {
- margin: 0;
- }
- .wp-block-image.is-style-fancy img,
- .wp-block-image.fancy img {
- display: inline-block;
- max-width: 99.9%;
- }
- .wp-block-image.is-style-fancy:before,
- .wp-block-image.fancy:before,
- .wp-block-image.is-style-fancy:after,
- .wp-block-image.fancy:after {
- position: absolute;
- z-index: 1;
- top: -1px;
- left: -1px;
- display: block;
- width: 45px;
- height: 45px;
- content: "";
- background-image: url(img/corner.svg);
- background-repeat: no-repeat;
- background-size: 45px;
- }
- .wp-block-image.is-style-fancy:after,
- .wp-block-image.fancy:after {
- right: -1px;
- left: auto;
- -webkit-transform: rotate(90deg);
- -ms-transform: rotate(90deg);
- transform: rotate(90deg);
- }
- .wp-block-image.is-style-fancy .components-resizable-box__container:before,
- .wp-block-image.fancy .components-resizable-box__container:before,
- .wp-block-image.is-style-fancy .components-resizable-box__container:after,
- .wp-block-image.fancy .components-resizable-box__container:after {
- position: absolute;
- z-index: 1;
- bottom: -1px;
- left: -1px;
- display: block;
- width: 45px;
- height: 45px;
- content: "";
- -webkit-transform: rotate(-90deg);
- -ms-transform: rotate(-90deg);
- transform: rotate(-90deg);
- background-image: url(img/corner.svg);
- background-repeat: no-repeat;
- background-size: 45px;
- }
- .wp-block-image.is-style-fancy .components-resizable-box__container:after,
- .wp-block-image.fancy .components-resizable-box__container:after {
- right: -1px;
- left: auto;
- -webkit-transform: rotate(-180deg);
- -ms-transform: rotate(-180deg);
- transform: rotate(-180deg);
- }
- @media only screen and (min-width: 40.063em) {
- .wp-block-image.is-style-fancy:before,
- .wp-block-image.fancy:before,
- .wp-block-image.is-style-fancy:after,
- .wp-block-image.fancy:after,
- .wp-block-image.is-style-fancy .components-resizable-box__container:before,
- .wp-block-image.fancy .components-resizable-box__container:before,
- .wp-block-image.is-style-fancy .components-resizable-box__container:after,
- .wp-block-image.fancy .components-resizable-box__container:after {
- width: 75px;
- height: 75px;
- background-size: 75px;
- }
- }
- /* Improve appearance of fancy image block in preview */
- .editor-block-styles__item-preview .wp-block-image.is-style-fancy:before,
- .editor-block-styles__item-preview .wp-block-image.is-style-fancy:after,
- .editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
- .editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
- width: 20px;
- height: 20px;
- background-size: 20px;
- }
- .editor-block-preview .wp-block-image.is-style-fancy:before,
- .editor-block-preview .wp-block-image.is-style-fancy:after,
- .editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
- .editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
- width: 30px;
- height: 30px;
- background-size: 30px;
- }
- /* Quote */
- .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
- border-left: none;
- border-right: none;
- padding-left: 0;
- padding-right: 0;
- }
- .wp-block-quote {
- color: #bbb;
- font-family: Lora, Garamond, serif;
- font-size: 20px;
- font-style: italic;
- margin-left: 30px;
- margin-right: 30px;
- }
- .editor-block-list__block .wp-block-quote p {
- font-size: 20px;
- margin-bottom: 1.5em;
- }
- .editor-block-list__block .wp-block-quote p:last-of-type {
- margin-bottom: 1em;
- }
- .wp-block-quote__citation {
- font-size: 16px;
- color: #999;
- }
- .wp-block-quote.is-large p,
- .wp-block-quote.is-style-large p {
- font-size: 30px;
- }
- .wp-block-quote.is-large .wp-block-quote__citation,
- .wp-block-quote.is-style-large .wp-block-quote__citation {
- font-size: 20px;
- }
- /* File */
- .wp-block-file__textlink {
- color: #f78769;
- text-decoration: underline;
- }
- /*--------------------------------------------------------------
- 4.0 Blocks - Formatting
- --------------------------------------------------------------*/
- /* Verse */
- .wp-block-verse pre {
- }
- /* Code */
- .wp-block-code {
- background-color: #f3f3f3;
- border: none;
- border-radius: 0;
- padding: 24px;
- }
- .wp-block-code textarea.editor-plain-text {
- background-color: #f3f3f3;
- color: #777;
- font-family: "Courier 10 Pitch", Courier, monospace;
- font-size: 15px;
- line-height: 1.6;
- }
- /* Classic */
- .wp-block-freeform.block-library-rich-text__tinymce h1,
- .wp-block-freeform.block-library-rich-text__tinymce h2,
- .wp-block-freeform.block-library-rich-text__tinymce h3,
- .wp-block-freeform.block-library-rich-text__tinymce h4,
- .wp-block-freeform.block-library-rich-text__tinymce h5,
- .wp-block-freeform.block-library-rich-text__tinymce h6 {
- color: #777;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h1 {
- font-size: 48px
- }
- .wp-block-freeform.block-library-rich-text__tinymce h2 {
- font-size: 39px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h3 {
- font-size: 31px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h4 {
- font-size: 25px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce h5 {
- font-size: 20px
- }
- .wp-block-freeform.block-library-rich-text__tinymce h6 {
- font-size: 16px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce q,
- .wp-block-freeform.block-library-rich-text__tinymce blockquote {
- border-left: none;
- border-right: none;
- box-shadow: none;
- font-family: Lora, Garamond, serif;
- font-size: 20px;
- font-style: italic;
- padding-left: 0;
- padding-right: 0;
- color: #bbb;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote {
- margin-left: 30px;
- margin-right: 30px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
- font-size: 20px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
- margin: 0.75em 1.5em;
- text-align: left;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
- text-align: right;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
- text-align: right;
- }
- .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
- text-align: left;
- }
- .wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
- text-align: center;
- }
- .wp-block-freeform .mce-item-table,
- .wp-block-freeform .mce-item-table th,
- .wp-block-freeform .mce-item-table td {
- border-collapse: collapse;
- border: none;
- }
- .wp-block-freeform .mce-item-table td,
- .wp-block-freeform .mce-item-table th {
- border-bottom: 1px solid #ddd;
- padding: 5px 3px;
- }
- .wp-block-freeform.block-library-rich-text__tinymce table th {
- border-bottom: 3px solid #ddd;
- }
- /* Lists */
- .wp-block-freeform dl dt {
- font-weight: bold;
- }
- .wp-block-freeform dl dd {
- margin: 0 1.5em 1.5em;
- }
- .editor-styles-wrapper .wp-block-freeform ul,
- .editor-styles-wrapper .wp-block-freeform ul ul {
- list-style: disc;
- }
- .editor-styles-wrapper .wp-block-freeform li > ul,
- .editor-styles-wrapper .wp-block-freeform li > ol {
- margin-left: 0.75em;
- padding-left: 0;
- }
- .rtl .editor-styles-wrapper .wp-block-freeform li > ul,
- .rtl .editor-styles-wrapper .wp-block-freeform li > ol {
- margin-right: 0.75em;
- padding-right: 0;
- }
- .wp-block-freeform.block-library-rich-text__tinymce pre {
- background-color: #f3f3f3;
- color: #777;
- font-family: "Courier 10 Pitch", Courier, monospace;
- font-size: 15px;
- line-height: 1.6;
- margin-bottom: 1.6em;
- max-width: 100%;
- padding: 1.6em;
- overflow: auto;
- white-space: pre;
- }
- .wp-block-freeform address {
- line-height: 1.6;
- margin-bottom: 1.5em;
- }
- .wp-block-freeform abbr,
- .wp-block-freeform acronym {
- border-bottom: 1px dotted #f78769;
- }
- .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-color: transparent;
- color: #777;
- font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
- font-size: 15px;
- padding: 0;
- }
- .wp-block-freeform mark,
- .wp-block-freeform ins {
- background: #f3f3f3;
- text-decoration: none;
- }
- /* Preformatted */
- pre,
- .wp-block-code,
- .wp-block-preformatted pre,
- .wp-block-verse pre,
- pre.wp-block-verse {
- background: #f3f3f3;
- color: #777;
- font-family: "Courier 10 Pitch", Courier, monospace;
- font-size: 15px;
- line-height: 1.6;
- margin-bottom: 1.6em;
- max-width: 100%;
- padding: 1.6em;
- }
- /* Pullquote */
- .wp-block-pullquote {
- border-bottom: none;
- border-top: none;
- color: #bbb;
- font-family: Lora, Garamond, serif;
- font-size: 1.25em;
- padding: 0;
- }
- .wp-block-pullquote__citation,
- .wp-block-pullquote cite,
- .wp-block-pullquote footer {
- text-transform: capitalize;
- font-size: 20px;
- }
- .wp-block-pullquote.alignleft {}
- .wp-block-pullquote.alignright {}
- .wp-block-pullquote blockquote > .editor-rich-text p {}
- .wp-block-pullquote.alignleft blockquote p,
- .wp-block-pullquote.alignright blockquote p {}
- .wp-block-pullquote.alignleft .wp-block-pullquote__citation,
- .wp-block-pullquote.alignright .wp-block-pullquote__citation {}
- .wp-block-pullquote .wp-block-pullquote__citation {}
- /* Table */
- .wp-block-table td,
- .wp-block-table th {
- border: none;
- }
- .wp-block-table .wp-block-table__cell-content {
- border-bottom: 1px solid #ddd;
- padding: 5px 3px;
- }
- .wp-block-table th .wp-block-table__cell-content {
- border-bottom: 3px solid #ddd;
- text-align: left;
- }
- .rtl .wp-block-table th .wp-block-table__cell-content {
- text-align: right;
- }
- /* File */
- .wp-block-file .wp-block-file__button {
- background: #bbb;
- border-radius: 0;
- border: 1px dashed white;
- box-shadow: none;
- color: #fff;
- font-size: 14px;
- font-weight: bold;
- line-height: 1;
- margin: 5px;
- padding: .75em 1em;
- outline: 5px solid #bbb;
- text-shadow: none;
- text-transform: uppercase;
- transition: .3s;
- }
- /*--------------------------------------------------------------
- 5.0 Blocks - Layout Elements
- --------------------------------------------------------------*/
- /* Buttons */
- .wp-block-button .wp-block-button__link {
- background: #bbb;
- color: #fff;
- font-size: 14px;
- font-weight: bold;
- line-height: 1;
- padding: calc( .75em + 5px ) calc( 1em + 5px );
- text-shadow: none;
- text-transform: uppercase;
- transition: .3s;
- }
- .wp-block-button__link:not(.has-background) {
- border: 1px dashed white;
- box-shadow: 0 0 0 5px #bbb;
- margin: 0 5px;
- padding: .75em 1em;
- }
- .is-style-outline .wp-block-button__link {
- border: 1px dashed currentColor;
- background: #fff;
- box-shadow: none;
- margin: 0;
- padding: calc( .75em + 5px ) calc( 1em + 5px );
- }
- .is-style-outline .wp-block-button__link:not(.has-text-color) {
- color: #bbb;
- }
- .wp-block-button .editor-rich-text__tinymce.mce-content-body {
- line-height: 14px;
- }
- /* Separator */
- .wp-block-separator {
- background-color: #f3f3f3;
- height: 2px;
- margin-bottom: 24px;
- border-bottom: none;
- }
- .wp-block-separator.is-wide {}
- .wp-block-separator.is-style-dots::before {
- color: #ccc;
- }
- /*--------------------------------------------------------------
- 5.0 Blocks - Widgets
- --------------------------------------------------------------*/
- /* Categories, Archives & Latest Posts */
- .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;
- }
|