| 1 |
/** |
| 2 |
* CSS code for the CodeMirror editor for the "Custom CSS" on the "Plugin Options" screen. |
| 3 |
* |
| 4 |
* @package TablePress |
| 5 |
* @subpackage Views CSS |
| 6 |
* @author Tobias Bäthge |
| 7 |
* @since 1.7.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
.CodeMirror { |
| 11 |
height: 100px; |
| 12 |
|
| 13 |
&.large { |
| 14 |
height: 500px; |
| 15 |
resize: both; /* Allow resizing of the enlarged text field only to reduce confusion when resize on click is applied. */ |
| 16 |
z-index: 0; /* Necessary to prevent the resizer from being hidden when height is reduced. */ |
| 17 |
} |
| 18 |
|
| 19 |
&-scroll { |
| 20 |
border: 1px solid #ddd; |
| 21 |
height: calc(100% - 2px); |
| 22 |
padding-bottom: 0; |
| 23 |
margin-right: 0; |
| 24 |
|
| 25 |
.CodeMirror-sizer { |
| 26 |
border-right-width: 0 !important; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
&.disabled .CodeMirror-scroll { |
| 31 |
background-color: #eeeeee; |
| 32 |
} |
| 33 |
|
| 34 |
} |
| 35 |
|