|
| 1 | +.react-dat-gui { |
| 2 | + position: fixed; |
| 3 | + right: 16px; |
| 4 | + bottom: 0; |
| 5 | + width: 280px; |
| 6 | + font-size: 12px; |
| 7 | + font-family: 'Lucida Grande', sans-serif; |
| 8 | + box-sizing: border-box; |
| 9 | + -webkit-font-smoothing: antialiased; |
| 10 | + -moz-osx-font-smoothing: grayscale; |
| 11 | + -webkit-tap-highlight-color: transparent; } |
| 12 | + .react-dat-gui *, .react-dat-gui *:before, .react-dat-gui *:after { |
| 13 | + box-sizing: inherit; } |
| 14 | + .react-dat-gui .dg { |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + color: #eee; |
| 18 | + overflow: auto; } |
| 19 | + .react-dat-gui .dg.main { |
| 20 | + background: #1a1a1a; } |
| 21 | + .react-dat-gui .dg.main::-webkit-scrollbar { |
| 22 | + width: 5px; |
| 23 | + background: #1a1a1a; } |
| 24 | + .react-dat-gui .dg.main::-webkit-scrollbar-corner { |
| 25 | + height: 0; |
| 26 | + display: none; } |
| 27 | + .react-dat-gui .dg.main::-webkit-scrollbar-thumb { |
| 28 | + border-radius: 5px; |
| 29 | + background: #676767; } |
| 30 | + .react-dat-gui .cr { |
| 31 | + display: flex; |
| 32 | + border-bottom: 1px solid #272727; |
| 33 | + user-select: none; } |
| 34 | + .react-dat-gui .cr.number { |
| 35 | + border-left: 5px solid #2FA1D6; } |
| 36 | + .react-dat-gui .cr.number .slider { |
| 37 | + display: none; |
| 38 | + position: relative; |
| 39 | + width: 40%; |
| 40 | + border: 3px solid #1a1a1a; |
| 41 | + border-right-width: 1px; |
| 42 | + background-color: #303030; |
| 43 | + user-select: none; |
| 44 | + cursor: ew-resize; } |
| 45 | + .react-dat-gui .cr.number .slider:hover, .react-dat-gui .cr.number .slider.is-active { |
| 46 | + background-color: #3c3c3c; } |
| 47 | + .react-dat-gui .cr.number .slider .slider-bar { |
| 48 | + position: absolute; |
| 49 | + top: 0; |
| 50 | + left: 0; |
| 51 | + width: 100%; |
| 52 | + height: 100%; |
| 53 | + background-color: #2FA1D6; } |
| 54 | + .react-dat-gui .cr.number input[type=text] { |
| 55 | + width: 60%; |
| 56 | + color: #2FA1D6; } |
| 57 | + .react-dat-gui .cr.number.has-slider .slider { |
| 58 | + display: block; } |
| 59 | + .react-dat-gui .cr.number.has-slider input[type=text] { |
| 60 | + width: 20%; } |
| 61 | + .react-dat-gui .cr.string { |
| 62 | + border-left: 5px solid #1ed36f; } |
| 63 | + .react-dat-gui .cr.string input[type=text] { |
| 64 | + width: 60%; |
| 65 | + color: #1ed36f; } |
| 66 | + .react-dat-gui .cr.boolean { |
| 67 | + border-left: 5px solid #806787; } |
| 68 | + .react-dat-gui .cr.boolean label { |
| 69 | + width: calc(100% - 1.2em - 10px); } |
| 70 | + .react-dat-gui .cr.boolean .checkbox-wrapper { |
| 71 | + position: relative; |
| 72 | + width: calc(1.2em + 10px); } |
| 73 | + .react-dat-gui .cr.boolean .checkbox-wrapper .checkbox, |
| 74 | + .react-dat-gui .cr.boolean .checkbox-wrapper input[type=checkbox] { |
| 75 | + position: absolute; |
| 76 | + top: 0; |
| 77 | + left: 0; |
| 78 | + width: 100%; |
| 79 | + height: 100%; } |
| 80 | + .react-dat-gui .cr.boolean .checkbox-wrapper .checkbox { |
| 81 | + display: flex; |
| 82 | + align-items: center; |
| 83 | + justify-content: center; |
| 84 | + border: 3px solid #1a1a1a; |
| 85 | + background: #303030; |
| 86 | + z-index: 0; |
| 87 | + left: auto; |
| 88 | + right: 0; } |
| 89 | + .react-dat-gui .cr.boolean .checkbox-wrapper .checkbox > .checkmark { |
| 90 | + display: none; |
| 91 | + width: 0.7em; |
| 92 | + height: 0.7em; |
| 93 | + stroke-width: 10px; |
| 94 | + stroke: #99829f; } |
| 95 | + .react-dat-gui .cr.boolean .checkbox-wrapper input[type=checkbox] { |
| 96 | + margin: 0; |
| 97 | + opacity: 0; |
| 98 | + z-index: 1; } |
| 99 | + .react-dat-gui .cr.boolean .checkbox-wrapper input[type=checkbox]:checked ~ .checkbox > .checkmark { |
| 100 | + display: block; } |
| 101 | + .react-dat-gui .cr.boolean .checkbox-wrapper input[type=checkbox]:hover ~ .checkbox { |
| 102 | + background-color: #3c3c3c; } |
| 103 | + .react-dat-gui .cr.button { |
| 104 | + border-left: 5px solid #c5bdad; } |
| 105 | + .react-dat-gui .cr.button:hover { |
| 106 | + background: #111; } |
| 107 | + .react-dat-gui .cr.button span { |
| 108 | + width: 100%; |
| 109 | + cursor: pointer; } |
| 110 | + .react-dat-gui .cr label, .react-dat-gui .cr span { |
| 111 | + display: inline-block; |
| 112 | + align-items: center; |
| 113 | + min-width: 0; |
| 114 | + width: 40%; |
| 115 | + padding: 5px; |
| 116 | + white-space: nowrap; |
| 117 | + overflow: hidden; |
| 118 | + text-overflow: ellipsis; |
| 119 | + user-select: none; } |
| 120 | + .react-dat-gui .cr input[type=text] { |
| 121 | + background: #303030; |
| 122 | + border: 3px solid #1a1a1a; |
| 123 | + border-radius: 0; |
| 124 | + padding: 2px 5px; |
| 125 | + outline: none; |
| 126 | + font-size: inherit; } |
| 127 | + .react-dat-gui .cr input[type=text]:hover { |
| 128 | + background: #3c3c3c; } |
| 129 | + .react-dat-gui .cr input[type=text]:focus { |
| 130 | + background: #494949; |
| 131 | + color: #fff; } |
0 commit comments