| @@ -1,244 +1,162 @@ | ||
| 1 | -/** | |
| 2 | - * General styles for snippets post types | |
| 3 | - * @author Webcraftic <[email protected]> | |
| 4 | - * @copyright Webcraftic 28.05.2018 | |
| 5 | - */ | |
| 6 | -//cm-matchhighlight | |
| 7 | - | |
| 8 | -.wbcr-inp-snippet-type-php .CodeMirror-sizer:before { | |
| 9 | - content: "<?php"; | |
| 10 | - color: #bbb; | |
| 11 | - padding: 4px 5px 0; | |
| 12 | -} | |
| 13 | - | |
| 14 | -.wbcr-inp-snippet-type-css .CodeMirror-sizer:before { | |
| 15 | - content: '<style type="text/css">'; | |
| 16 | - color: #bbb; | |
| 17 | - padding: 4px 5px 0; | |
| 18 | -} | |
| 19 | - | |
| 20 | -.wbcr-inp-snippet-type-css .CodeMirror:after { | |
| 21 | - content: '</style>'; | |
| 22 | - position: absolute; | |
| 23 | - display: block; | |
| 24 | - left: 55px; | |
| 25 | - bottom: 3px; | |
| 26 | - color: #bbb; | |
| 27 | -} | |
| 28 | - | |
| 29 | -.wbcr-inp-snippet-type-js .CodeMirror-sizer:before { | |
| 30 | - content: '<script type="text/javascript">'; | |
| 31 | - color: #bbb; | |
| 32 | - padding: 4px 5px 0; | |
| 33 | -} | |
| 34 | - | |
| 35 | -.wbcr-inp-snippet-type-js .CodeMirror:after { | |
| 36 | - content: '</script>'; | |
| 37 | - position: absolute; | |
| 38 | - display: block; | |
| 39 | - left: 55px; | |
| 40 | - bottom: 3px; | |
| 41 | - color: #bbb; | |
| 42 | -} | |
| 43 | - | |
| 44 | -.CodeMirror { | |
| 45 | - height: auto !important; | |
| 46 | - border: 0 !important; | |
| 47 | - | |
| 48 | - .cm-winp-matchhighlight { | |
| 49 | - background-color: rgba(255, 143, 26, 0.21); | |
| 50 | - border: 0 !important; | |
| 51 | - } | |
| 52 | - | |
| 53 | - .CodeMirror-selection-highlight-scrollbar { | |
| 54 | - background-color: rgba(255, 143, 26, 0.61) | |
| 55 | - } | |
| 56 | -} | |
| 57 | - | |
| 58 | -.CodeMirror-scroll { | |
| 59 | - min-height: 250px; | |
| 60 | -} | |
| 61 | - | |
| 62 | -.misc-pub-post-status, .misc-pub-visibility { | |
| 63 | - display: none; | |
| 64 | -} | |
| 65 | - | |
| 66 | -.postbox { | |
| 67 | - display: none; | |
| 68 | -} | |
| 69 | - | |
| 70 | -#WINP_BaseOptionsMetaBox, #WINP_InfoMetaBox, #tagsdiv-wbcr-snippet-tags, #submitdiv { | |
| 71 | - display: block; | |
| 72 | - | |
| 73 | - &.hide-if-js { | |
| 74 | - display: none; | |
| 75 | - } | |
| 76 | -} | |
| 77 | - | |
| 78 | -#WINP_InfoMetaBox { | |
| 79 | - //background: #2a2428; | |
| 80 | - color: #222; | |
| 81 | - | |
| 82 | - h2 { | |
| 83 | - display: none; | |
| 84 | - font-size: 12px; | |
| 85 | - color: #353535; | |
| 86 | - text-transform: uppercase; | |
| 87 | - } | |
| 88 | - | |
| 89 | - h4 { | |
| 90 | - margin: 0; | |
| 91 | - text-align: center; | |
| 92 | - } | |
| 93 | - | |
| 94 | - .inside { | |
| 95 | - padding: 0; | |
| 96 | - margin: 0; | |
| 97 | - } | |
| 98 | - | |
| 99 | - .wbcr-inp-metabox-banner { | |
| 100 | - //padding: 15px; | |
| 101 | - | |
| 102 | - .wbcr-inp-big-text { | |
| 103 | - display: block; | |
| 104 | - color: #9ca096; | |
| 105 | - font-size: 15px; | |
| 106 | - padding: 15px; | |
| 107 | - text-align: center; | |
| 108 | - } | |
| 109 | - | |
| 110 | - .wbcr-inp-image { | |
| 111 | - img { | |
| 112 | - width: 100%; | |
| 113 | - } | |
| 114 | - | |
| 115 | - //background: #f3f3f3; | |
| 116 | - //padding: 20px 0; | |
| 117 | - } | |
| 118 | - | |
| 119 | - .wbcr-inp-title { | |
| 120 | - padding: 15px; | |
| 121 | - margin: 0; | |
| 122 | - font-size: 15px; | |
| 123 | - text-align: center; | |
| 124 | - color: #ca4a1f; | |
| 125 | - background: #fff5f4; | |
| 126 | - | |
| 127 | - span { | |
| 128 | - font-size: 12px; | |
| 129 | - } | |
| 130 | - } | |
| 131 | - | |
| 132 | - .wbcr-inp-button { | |
| 133 | - display: block; | |
| 134 | - font-size: 16px; | |
| 135 | - text-align: center; | |
| 136 | - letter-spacing: 0; | |
| 137 | - text-decoration: none; | |
| 138 | - color: #828282; | |
| 139 | - font-weight: 600; | |
| 140 | - background-color: #f7f7f7; | |
| 141 | - padding: 15px 30px 15px 30px; | |
| 142 | - box-shadow: 0 1px 3px #b9b9b9; | |
| 143 | - border-bottom: 1px solid #e8e8e8; | |
| 144 | - margin: 10px; | |
| 145 | - } | |
| 146 | - } | |
| 147 | - | |
| 148 | -} | |
| 149 | - | |
| 150 | -.winp-enable-php-wrapper { | |
| 151 | - margin: 15px 0 auto; | |
| 152 | - | |
| 153 | - .winp-enable-php-btn i { | |
| 154 | - font-size: 1.2em; | |
| 155 | - line-height: inherit; | |
| 156 | - height: auto; | |
| 157 | - } | |
| 158 | -} | |
| 159 | - | |
| 160 | -.winp-editor-container { | |
| 161 | - visibility: hidden; | |
| 162 | - height: 0; | |
| 163 | -} | |
| 164 | - | |
| 165 | -.winp-snippet-enabled .winp-editor-container { | |
| 166 | - margin-top: 20px; | |
| 167 | - visibility: visible; | |
| 168 | - height: auto; | |
| 169 | -} | |
| 170 | - | |
| 171 | -.winp-snippet-enabled .composer-switch, | |
| 172 | -.winp-snippet-enabled .fl-builder-admin, | |
| 173 | -.winp-snippet-enabled #postdivrich, | |
| 174 | -.winp-snippet-enabled #elementor-switch-mode, | |
| 175 | -.winp-snippet-enabled.elementor-editor-active #elementor-editor, | |
| 176 | -.winp-snippet-enabled #elementor-editor { | |
| 177 | - display: none; | |
| 178 | -} | |
| 179 | - | |
| 180 | -.winp-snippet-enabled #wpb_visual_composer { | |
| 181 | - display: none !important; | |
| 182 | -} | |
| 183 | - | |
| 184 | -.winp-php-content { | |
| 185 | - height: 300px; | |
| 186 | - width: 100%; | |
| 187 | - box-sizing: border-box; | |
| 188 | - z-index: auto; | |
| 189 | - position: relative; | |
| 190 | - -webkit-transition: none; | |
| 191 | - transition: none; | |
| 192 | - background: transparent !important; | |
| 193 | -} | |
| 194 | - | |
| 195 | -#winp-export-action { | |
| 196 | - float: left; | |
| 197 | - line-height: 28px; | |
| 198 | - padding-right: 10px; | |
| 199 | -} | |
| 200 | - | |
| 201 | -.winp-import-radio-container label { | |
| 202 | - font-weight: normal; | |
| 203 | -} | |
| 204 | - | |
| 205 | -.wrap { | |
| 206 | - .winp-page-title-action { | |
| 207 | - margin-left: 4px; | |
| 208 | - padding: 4px 8px; | |
| 209 | - position: relative; | |
| 210 | - top: -3px; | |
| 211 | - text-decoration: none; | |
| 212 | - border: 1px solid #ccc; | |
| 213 | - border-radius: 2px; | |
| 214 | - background: #f7f7f7; | |
| 215 | - text-shadow: none; | |
| 216 | - font-weight: 600; | |
| 217 | - font-size: 13px; | |
| 218 | - line-height: normal; | |
| 219 | - color: #0073aa; | |
| 220 | - cursor: pointer; | |
| 221 | - } | |
| 222 | - | |
| 223 | - .winp-field-premium-icon::after { | |
| 224 | - display: inline-block; | |
| 225 | - position: relative; | |
| 226 | - content: 'PRO'; | |
| 227 | - background: #ff5722; | |
| 228 | - border-radius: 4px; | |
| 229 | - color: #fff; | |
| 230 | - font-size: 10px; | |
| 231 | - line-height: 1; | |
| 232 | - font-style: normal; | |
| 233 | - padding: 4px 6px; | |
| 234 | - margin-left: 4px; | |
| 235 | - vertical-align: top; | |
| 236 | - top: -40px; | |
| 237 | - left: 230px; | |
| 238 | - z-index: 11; | |
| 239 | - } | |
| 240 | - | |
| 241 | - .winp-field-w250 { | |
| 242 | - width: 250px; | |
| 243 | - } | |
| 1 | +/** | |
| 2 | + * General styles for snippets post types | |
| 3 | + */ | |
| 4 | +//cm-matchhighlight | |
| 5 | + | |
| 6 | +.wbcr-inp-snippet-type-php .CodeMirror-sizer:before { | |
| 7 | + content: "<?php"; | |
| 8 | + color: #bbb; | |
| 9 | + padding: 4px 5px 0; | |
| 10 | +} | |
| 11 | + | |
| 12 | +.wbcr-inp-snippet-type-css .CodeMirror-sizer:before { | |
| 13 | + content: '<style type="text/css">'; | |
| 14 | + color: #bbb; | |
| 15 | + padding: 4px 5px 0; | |
| 16 | +} | |
| 17 | + | |
| 18 | +.wbcr-inp-snippet-type-css .CodeMirror:after { | |
| 19 | + content: '</style>'; | |
| 20 | + position: absolute; | |
| 21 | + display: block; | |
| 22 | + left: 55px; | |
| 23 | + bottom: 3px; | |
| 24 | + color: #bbb; | |
| 25 | +} | |
| 26 | + | |
| 27 | +.wbcr-inp-snippet-type-js .CodeMirror-sizer:before { | |
| 28 | + content: '<script type="text/javascript">'; | |
| 29 | + color: #bbb; | |
| 30 | + padding: 4px 5px 0; | |
| 31 | +} | |
| 32 | + | |
| 33 | +.wbcr-inp-snippet-type-js .CodeMirror:after { | |
| 34 | + content: '</script>'; | |
| 35 | + position: absolute; | |
| 36 | + display: block; | |
| 37 | + left: 55px; | |
| 38 | + bottom: 3px; | |
| 39 | + color: #bbb; | |
| 40 | +} | |
| 41 | + | |
| 42 | +.CodeMirror { | |
| 43 | + height: auto !important; | |
| 44 | + border: 0 !important; | |
| 45 | + | |
| 46 | + .cm-winp-matchhighlight { | |
| 47 | + background-color: rgba(255, 143, 26, 0.21); | |
| 48 | + border: 0 !important; | |
| 49 | + } | |
| 50 | + | |
| 51 | + .CodeMirror-selection-highlight-scrollbar { | |
| 52 | + background-color: rgba(255, 143, 26, 0.61) | |
| 53 | + } | |
| 54 | +} | |
| 55 | + | |
| 56 | +.CodeMirror-scroll { | |
| 57 | + min-height: 250px; | |
| 58 | +} | |
| 59 | + | |
| 60 | +.misc-pub-post-status, .misc-pub-visibility { | |
| 61 | + display: none; | |
| 62 | +} | |
| 63 | + | |
| 64 | +.postbox { | |
| 65 | + display: none; | |
| 66 | +} | |
| 67 | + | |
| 68 | +.winp-enable-php-wrapper { | |
| 69 | + margin: 15px 0 auto; | |
| 70 | + | |
| 71 | + .winp-enable-php-btn i { | |
| 72 | + font-size: 1.2em; | |
| 73 | + line-height: inherit; | |
| 74 | + height: auto; | |
| 75 | + } | |
| 76 | +} | |
| 77 | + | |
| 78 | +.winp-editor-container { | |
| 79 | + visibility: hidden; | |
| 80 | + height: 0; | |
| 81 | +} | |
| 82 | + | |
| 83 | +.winp-snippet-enabled .winp-editor-container { | |
| 84 | + margin-top: 20px; | |
| 85 | + visibility: visible; | |
| 86 | + height: auto; | |
| 87 | +} | |
| 88 | + | |
| 89 | +.winp-snippet-enabled .composer-switch, | |
| 90 | +.winp-snippet-enabled .fl-builder-admin, | |
| 91 | +.winp-snippet-enabled #postdivrich, | |
| 92 | +.winp-snippet-enabled #elementor-switch-mode, | |
| 93 | +.winp-snippet-enabled.elementor-editor-active #elementor-editor, | |
| 94 | +.winp-snippet-enabled #elementor-editor { | |
| 95 | + display: none; | |
| 96 | +} | |
| 97 | + | |
| 98 | +.winp-snippet-enabled #wpb_visual_composer { | |
| 99 | + display: none !important; | |
| 100 | +} | |
| 101 | + | |
| 102 | +.winp-php-content { | |
| 103 | + height: 300px; | |
| 104 | + width: 100%; | |
| 105 | + box-sizing: border-box; | |
| 106 | + z-index: auto; | |
| 107 | + position: relative; | |
| 108 | + -webkit-transition: none; | |
| 109 | + transition: none; | |
| 110 | + background: transparent !important; | |
| 111 | +} | |
| 112 | + | |
| 113 | +#winp-export-action { | |
| 114 | + float: left; | |
| 115 | + line-height: 28px; | |
| 116 | + padding-right: 10px; | |
| 117 | +} | |
| 118 | + | |
| 119 | +.winp-import-radio-container label { | |
| 120 | + font-weight: normal; | |
| 121 | +} | |
| 122 | + | |
| 123 | +.wrap { | |
| 124 | + .winp-page-title-action { | |
| 125 | + margin-left: 4px; | |
| 126 | + padding: 4px 8px; | |
| 127 | + position: relative; | |
| 128 | + top: -3px; | |
| 129 | + text-decoration: none; | |
| 130 | + border: 1px solid #ccc; | |
| 131 | + border-radius: 2px; | |
| 132 | + background: #f7f7f7; | |
| 133 | + text-shadow: none; | |
| 134 | + font-weight: 600; | |
| 135 | + font-size: 13px; | |
| 136 | + line-height: normal; | |
| 137 | + color: #0073aa; | |
| 138 | + cursor: pointer; | |
| 139 | + } | |
| 140 | + | |
| 141 | + .winp-field-premium-icon::after { | |
| 142 | + display: inline-block; | |
| 143 | + position: relative; | |
| 144 | + content: 'PRO'; | |
| 145 | + background: #ff5722; | |
| 146 | + border-radius: 4px; | |
| 147 | + color: #fff; | |
| 148 | + font-size: 10px; | |
| 149 | + line-height: 1; | |
| 150 | + font-style: normal; | |
| 151 | + padding: 4px 6px; | |
| 152 | + margin-left: 4px; | |
| 153 | + vertical-align: top; | |
| 154 | + top: -40px; | |
| 155 | + left: 230px; | |
| 156 | + z-index: 11; | |
| 157 | + } | |
| 158 | + | |
| 159 | + .winp-field-w250 { | |
| 160 | + width: 250px; | |
| 161 | + } | |
| 244 | 162 | } |