blocks
6 years ago
components
6 years ago
utils
6 years ago
blocks.js
6 years ago
common.scss
6 years ago
common.scss
112 lines
| 1 | /** |
| 2 | * #.# Common SCSS |
| 3 | * |
| 4 | * Can include things like variables and mixins |
| 5 | * that are used across the project. |
| 6 | */ |
| 7 | |
| 8 | $default-font: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !default; |
| 9 | $default-font-size: 13px !default; |
| 10 | $default-line-height: 1.4 !default; |
| 11 | $icon-button-size: 36px !default; |
| 12 | |
| 13 | /* Colors */ |
| 14 | $dark-gray-100: #8f98a1 !default; |
| 15 | $dark-gray-700: #32373c !default; |
| 16 | $light-gray-700: #ccd0d4 !default; |
| 17 | $white: #fff; |
| 18 | $blue-wordpress-700: #00669b !default; |
| 19 | $blue-wordpress: #0073aa !default; |
| 20 | $color-brand-3: #4f5969 !default; |
| 21 | |
| 22 | // Widths, heights & dimensions |
| 23 | $item-spacing: 10px !default; |
| 24 | |
| 25 | .gblocks-notice { |
| 26 | margin-bottom: 20px; |
| 27 | } |
| 28 | |
| 29 | .gblocks-panel-label .components-panel__body-toggle.components-button { |
| 30 | display: flex; |
| 31 | flex-direction: row-reverse; |
| 32 | justify-content: flex-end; |
| 33 | } |
| 34 | |
| 35 | .gblocks-panel-label svg.components-panel__icon { |
| 36 | margin: 0 10px 0 0; |
| 37 | } |
| 38 | |
| 39 | .components-gblocks-control__header { |
| 40 | display: flex; |
| 41 | justify-content: space-between; |
| 42 | margin-bottom: 5px; |
| 43 | align-items: center; |
| 44 | } |
| 45 | |
| 46 | .components-panel__body .components-gblocks-control__units .components-button { |
| 47 | background: #fff; |
| 48 | border-color: #e2e4e7; |
| 49 | -webkit-box-shadow: none !important; |
| 50 | box-shadow: none !important; |
| 51 | color: #6c7781; |
| 52 | font-size: 10px; |
| 53 | padding: 0 5px; |
| 54 | position: relative; |
| 55 | text-align: center; |
| 56 | text-shadow: none; |
| 57 | border: 1px solid; |
| 58 | |
| 59 | &.is-primary { |
| 60 | background: #0070a7; |
| 61 | border-color: #0070a7; |
| 62 | color: #fff; |
| 63 | cursor: default; |
| 64 | z-index: 1; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .gblocks-control-tabs .components-tab-panel__tabs { |
| 69 | display: flex; |
| 70 | flex-wrap: wrap; |
| 71 | margin-bottom: 15px; |
| 72 | border-bottom: 1px solid #e8eaeb; |
| 73 | } |
| 74 | |
| 75 | .gblocks-control-tabs .components-tab-panel__tabs button { |
| 76 | padding: 9px 11px; |
| 77 | padding-bottom: 11px; |
| 78 | margin: 0; |
| 79 | margin-bottom: -1px; |
| 80 | color: #555d66; |
| 81 | cursor: pointer; |
| 82 | background: none; |
| 83 | border: none; |
| 84 | border-bottom: 2px solid transparent; |
| 85 | border-radius: 0; |
| 86 | outline-offset: -1px; |
| 87 | flex: 1; |
| 88 | justify-content: center; |
| 89 | } |
| 90 | |
| 91 | .gblocks-control-tabs .components-tab-panel__tabs button.active-tab { |
| 92 | position: relative; |
| 93 | border-bottom: 2px solid #00a0d2; |
| 94 | z-index: 1; |
| 95 | font-weight: bold; |
| 96 | background: #fafafa; |
| 97 | } |
| 98 | |
| 99 | .gblocks-block-control-icon svg { |
| 100 | margin-right: 0 !important; |
| 101 | margin-left: 0 !important; |
| 102 | padding: 2px; |
| 103 | } |
| 104 | |
| 105 | .gblocks-block-control-icon.gblocks-add-grid-item svg { |
| 106 | padding: 0; |
| 107 | } |
| 108 | |
| 109 | .gblocks-block-control-icon svg path { |
| 110 | fill: inherit !important; |
| 111 | } |
| 112 |