|
166 | 166 | position: absolute; |
167 | 167 | right: 36px; |
168 | 168 | border-radius: 3px !important; |
169 | | - border: solid 1px #ccc; |
| 169 | + border: solid 1px var(--red-ui-form-input-border-color, #ccc); |
170 | 170 | -webkit-appearance: none; |
171 | 171 | font-size: smaller; |
172 | 172 | text-align: center; |
|
230 | 230 | <link rel="stylesheet" href="./ui_base/css/gridstack-extra.min.css"> |
231 | 231 | <style> |
232 | 232 | .grid-stack { |
233 | | - background-color: #f8f8f8; |
234 | | - border: solid 2px #C0C0C0; |
| 233 | + background-color: var(--red-ui-primary-background, #f8f8f8); |
| 234 | + border: solid 2px var(--red-ui-tertiary-border-color, #C0C0C0); |
235 | 235 | margin: auto; |
236 | 236 | min-height: 42px; |
237 | 237 | display: table-cell; |
238 | | - background-image: linear-gradient(#C0C0C0 1px, transparent 0), |
239 | | - linear-gradient(90deg, #C0C0C0 1px, transparent 0); |
| 238 | + background-image: linear-gradient(var(--red-ui-tertiary-border-color, #C0C0C0) 1px, transparent 0), |
| 239 | + linear-gradient(90deg, var(--red-ui-tertiary-border-color, #C0C0C0) 1px, transparent 0); |
240 | 240 | background-size: 40px 43px; |
241 | 241 | } |
242 | 242 | .grid-stack>.grid-stack-item>.grid-stack-item-content { |
|
1321 | 1321 | .css("width","80%") |
1322 | 1322 | .css("display","inline-block") |
1323 | 1323 | .appendTo(divDateFormat); |
1324 | | - $('<div>').html("<a href='https://momentjs.com/docs/#/displaying/format/' target='_new'><i class='fa fa-info-circle' style='color:grey;'></i></a>") |
| 1324 | + $('<div>').html("<a href='https://momentjs.com/docs/#/displaying/format/' target='_new'><i class='fa fa-info-circle' style='color:var(--red-ui-secondary-text-color, grey);'></i></a>") |
1325 | 1325 | .css("display","inline-block") |
1326 | 1326 | .css("margin-right","6px") |
1327 | 1327 | .css("float","right") |
|
3049 | 3049 | var c_width = has_height ? '15%' : '6%'; |
3050 | 3050 | var container = $('<div>').css({ |
3051 | 3051 | position: 'absolute', |
3052 | | - background: 'white', |
| 3052 | + background: 'var(--red-ui-secondary-background, white)', |
3053 | 3053 | padding: '10px 10px 10px 10px', |
3054 | | - border: '1px solid grey', |
| 3054 | + border: '1px solid var(--red-ui-primary-border-color, grey)', |
3055 | 3055 | zIndex: '20', |
3056 | 3056 | borderRadius: "4px", |
3057 | 3057 | display:"none", |
3058 | 3058 | width: c_width |
3059 | 3059 | }).appendTo(document.body); |
3060 | 3060 | var box0 = $("<div>").css({ |
3061 | 3061 | fontSize: '13px', |
3062 | | - color: '#aaa', |
| 3062 | + color: 'var(--red-ui-tertiary-text-color, #aaa)', |
3063 | 3063 | float: 'left', |
3064 | 3064 | paddingTop: '1px' |
3065 | 3065 | }).appendTo(container); |
|
3162 | 3162 | var pos = $(this).offset(); |
3163 | 3163 | var container = $('<div>').css({ |
3164 | 3164 | position: 'absolute', |
3165 | | - background: 'white', |
| 3165 | + background: 'var(--red-ui-secondary-background, white)', |
3166 | 3166 | padding: '5px 10px 10px 10px', |
3167 | | - border: '1px solid grey', |
| 3167 | + border: '1px solid var(--red-ui-primary-border-color, grey)', |
3168 | 3168 | zIndex: '20', |
3169 | 3169 | borderRadius: "4px", |
3170 | 3170 | display:"none" |
|
3182 | 3182 |
|
3183 | 3183 | var label = $("<div>").css({ |
3184 | 3184 | fontSize: '13px', |
3185 | | - color: '#aaa', |
| 3185 | + color: 'var(--red-ui-tertiary-text-color, #aaa)', |
3186 | 3186 | float: 'left', |
3187 | 3187 | paddingTop: '1px' |
3188 | 3188 | }).appendTo(container).text((width === 0 && height === 0)?auto_text:(width+(that.options.hasOwnProperty('height')?" x "+height:""))); |
|
3231 | 3231 | }); |
3232 | 3232 | } |
3233 | 3233 |
|
3234 | | - var cellBorder = "1px dashed lightGray"; |
| 3234 | + var cellBorder = "1px dashed var(--red-ui-secondary-border-color, lightGray)"; |
3235 | 3235 | var cellBorderExisting = "1px solid gray"; |
3236 | | - var cellBorderHighlight = "1px dashed black"; |
| 3236 | + var cellBorderHighlight = "1px dashed var(--red-ui-primary-border-color, black)"; |
3237 | 3237 | var rows = []; |
3238 | 3238 | function addRow(i) { |
3239 | 3239 | var row = $('<div>').css({padding:0,margin:0,height:"25px","box-sizing":"border-box"}).appendTo(container); |
|
3253 | 3253 | borderBottom: (i===(height-1)&&j<width)?cellBorderExisting:cellBorder, |
3254 | 3254 | boxSizing: "border-box", |
3255 | 3255 | cursor:"pointer", |
3256 | | - background: (j<maxWidth)?"#fff":"#eee" |
| 3256 | + background: (j<maxWidth)?"var(--red-ui-secondary-background, #fff)" : "var(--red-ui-node-background-placeholder, #eee)" |
3257 | 3257 | }).appendTo(row); |
3258 | 3258 | cells[i].push(cell); |
3259 | 3259 | if (j===0) { |
|
3278 | 3278 | for (var y = 0; y<maxHeight; y++) { |
3279 | 3279 | for (var x = 0; x<maxWidth; x++) { |
3280 | 3280 | cells[y][x].css({ |
3281 | | - background: (y<=h && x<=w)?'#ddd':'#fff', |
| 3281 | + background: (y<=h && x<=w)?'var(--red-ui-secondary-background-selected, #ddd)' : 'var(--red-ui-secondary-background, #fff)', |
3282 | 3282 | borderLeft: (x===0&&y<=h)?cellBorderHighlight:(x===0)?((y<=height-1)?cellBorderExisting:cellBorder):'', |
3283 | 3283 | borderTop: (y===0&&x<=w)?cellBorderHighlight:(y===0)?((x<=width-1)?cellBorderExisting:cellBorder):'', |
3284 | 3284 | borderRight: (x===w&&y<=h)?cellBorderHighlight:((x===width-1&&y<=height-1)?cellBorderExisting:cellBorder), |
|
0 commit comments