|
20 | 20 | margin: 3px;
|
21 | 21 | }
|
22 | 22 |
|
| 23 | +.color-picker-area { |
| 24 | + width: 100%; |
| 25 | + padding: 8px; |
| 26 | + |
| 27 | + display: flex; |
| 28 | + flex-direction: column; |
| 29 | + align-items: center; |
| 30 | +} |
| 31 | +.color-picker-area > div:nth-child(1), |
| 32 | +.color-picker-area > div:nth-child(2) { |
| 33 | + width: 100%; |
| 34 | + display: flex; |
| 35 | + flex-direction: row; |
| 36 | + justify-content: space-evenly; |
| 37 | +} |
| 38 | +/* .color-picker-area div:nth-child(1) { |
| 39 | + border-bottom: 1px solid rgba(0, 0, 0, 0.2); |
| 40 | +} |
| 41 | +[theme="dark"] .color-picker-area div:nth-child(1) { |
| 42 | + border-bottom: 1px solid rgba(255, 255, 255, 0.2); |
| 43 | +} */ |
| 44 | + |
23 | 45 | /* Color inputs & color swatch */
|
24 | 46 | .body input[type="color"] {
|
25 | 47 | appearance: none;
|
26 | 48 | -moz-appearance: none;
|
27 | 49 | -webkit-appearance: none;
|
28 | 50 | background: none;
|
29 |
| - border: 1px solid #333; |
30 | 51 | padding: 0;
|
| 52 | + border: 0 !important; |
31 | 53 | cursor: pointer;
|
32 |
| - border-radius: 2400px; |
33 |
| - height: 15px; |
34 |
| -} |
35 |
| -[theme="dark"] .body input[type="color"] { |
36 |
| - border: 1px solid #ddd; |
37 | 54 | }
|
38 | 55 | ::-webkit-color-swatch-wrapper {
|
| 56 | + margin: 0; |
39 | 57 | padding: 0;
|
40 | 58 | }
|
41 | 59 |
|
42 | 60 | ::-webkit-color-swatch {
|
43 |
| - border: 0; |
44 |
| - border-radius: 2400px; |
| 61 | + margin: 0; |
| 62 | + border-radius: 100%; |
| 63 | + border: 2px solid rgba(0, 0, 0, 0.2); |
| 64 | + overflow: none; |
| 65 | + padding: 0; |
| 66 | +} |
| 67 | +::-moz-color-swatch { |
| 68 | + margin: 0; |
| 69 | + border-radius: 100%; |
| 70 | + border: 2px solid rgba(0, 0, 0, 0.2); |
| 71 | + overflow: none; |
| 72 | + padding: 0; |
| 73 | +} |
| 74 | +[theme="dark"] ::-webkit-color-swatch { |
| 75 | + border-color: white; |
| 76 | +} |
| 77 | +[theme="dark"] ::-moz-color-swatch { |
| 78 | + border-color: white; |
45 | 79 | }
|
46 | 80 |
|
47 |
| -::-moz-color-swatch, |
48 | 81 | ::-moz-focus-inner {
|
| 82 | + margin: 0; |
49 | 83 | border: 0;
|
50 | 84 | }
|
51 | 85 |
|
52 | 86 | ::-moz-focus-inner {
|
| 87 | + margin: 0; |
53 | 88 | padding: 0;
|
54 | 89 | }
|
55 | 90 |
|
56 | 91 | /* Preset color options */
|
57 | 92 | .preset-color {
|
58 |
| - border: 1px solid #333; |
| 93 | + border: 2px solid rgba(0, 0, 0, 0.2); |
59 | 94 | margin: 4px;
|
60 |
| - margin-left: 0px; |
61 |
| - border-radius: 4px; |
62 |
| - width: 1em; |
63 |
| - height: 1em; |
| 95 | + border-radius: 100%; |
| 96 | + width: 2.5em; |
| 97 | + height: 2.5em; |
64 | 98 | }
|
| 99 | +/* prevent soft-looking colors */ |
65 | 100 | [theme="dark"] .preset-color {
|
66 |
| - border: 1px solid #ddd; |
| 101 | + border-color: white; |
| 102 | +} |
| 103 | + |
| 104 | +.parent-custom { |
| 105 | + margin: 4px; |
| 106 | + width: 2.5em; |
| 107 | + height: 2.5em; |
| 108 | + position: relative; |
| 109 | +} |
| 110 | +.parent-custom > .preset-color { |
| 111 | + margin: 0; |
| 112 | + width: 100%; |
| 113 | + height: 100%; |
| 114 | +} |
| 115 | + |
| 116 | +.custom-plus { |
| 117 | + position: absolute; |
| 118 | + left: 4px; |
| 119 | + top: 4px; |
| 120 | + width: calc(100% - 8px); |
| 121 | + height: calc(100% - 8px); |
| 122 | + z-index: 500; |
| 123 | + pointer-events: none; |
| 124 | +} |
| 125 | + |
| 126 | +.preset-color:active { |
| 127 | + transform: scale(0.7); |
| 128 | + transition-duration: 0.1s; |
| 129 | + transition-timing-function: ease-out; |
| 130 | + transition-property: transform; |
| 131 | +} |
| 132 | +.preset-color { |
| 133 | + transition-duration: 0.3s; |
| 134 | + transition-timing-function: cubic-bezier(0, 0, 0.24, 1.83); |
| 135 | + transition-property: transform; |
67 | 136 | }
|
68 | 137 |
|
69 | 138 | /* Blocks workspace for custom procedure declaration editor */
|
|
124 | 193 | }
|
125 | 194 |
|
126 | 195 | /* "Run without screen refresh" row */
|
127 |
| -.checkbox-row { |
| 196 | +/* .checkbox-row { |
128 | 197 | margin-top: 1rem;
|
129 |
| -} |
| 198 | +} */ |
130 | 199 |
|
131 | 200 | /* Confirmation buttons at the bottom of the modal */
|
132 | 201 | .button-row {
|
|
0 commit comments