| 1 |
/* CodeMirror Styling for TablePress page/customizations compared to original CSS in this file */ |
| 2 |
#tablepress-page .CodeMirror { |
| 3 |
height: 100px; |
| 4 |
} |
| 5 |
#tablepress-page .CodeMirror.large { |
| 6 |
height: 500px; |
| 7 |
} |
| 8 |
#tablepress-page .CodeMirror-scroll { |
| 9 |
background-color: #fff; |
| 10 |
border: 1px solid #ddd; |
| 11 |
-webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); |
| 12 |
box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); |
| 13 |
-webkit-transition: 0.05s border-color ease-in-out; |
| 14 |
transition: 0.05s border-color ease-in-out; |
| 15 |
height: 100%; /* Fallback for browsers that don't support calc() */ |
| 16 |
height: -webkit-calc( 100% - 2px ); |
| 17 |
height: calc( 100% - 2px ); |
| 18 |
padding-bottom: 0; |
| 19 |
margin-right: 0; |
| 20 |
} |
| 21 |
#tablepress-page .CodeMirror-scroll .CodeMirror-sizer { |
| 22 |
border-right-width: 0 !important; |
| 23 |
} |
| 24 |
#tablepress-page .CodeMirror.disabled .CodeMirror-scroll { |
| 25 |
background-color: #eeeeee; |
| 26 |
} |
| 27 |
#tablepress-page .CodeMirror-focused { |
| 28 |
-webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); |
| 29 |
box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); |
| 30 |
} |
| 31 |
#tablepress-page .CodeMirror-focused .CodeMirror-scroll { |
| 32 |
-webkit-box-shadow: none; |
| 33 |
box-shadow: none; |
| 34 |
border-color: #5b9dd9; |
| 35 |
} |
| 36 |
|
| 37 |
/* jQuery UI resizable styles, for the resizable CodeMirror instance */ |
| 38 |
.ui-resizable { |
| 39 |
position: relative; |
| 40 |
} |
| 41 |
.ui-resizable-handle { |
| 42 |
position: absolute; |
| 43 |
font-size: 0.1px; |
| 44 |
display: block; |
| 45 |
-ms-touch-action: none; |
| 46 |
touch-action: none; |
| 47 |
} |
| 48 |
.ui-resizable-s { |
| 49 |
cursor: s-resize; |
| 50 |
height: 10px; |
| 51 |
width: 100%; |
| 52 |
bottom: -5px; |
| 53 |
left: 0; |
| 54 |
} |
| 55 |
|