decred.org/dcrdex@v1.0.5/client/webserver/site/src/css/utilities.scss (about) 1 .flex-grow-1 { 2 flex-grow: 1; 3 } 4 5 .flex-center { 6 display: flex; 7 justify-content: center; 8 align-items: center; 9 } 10 11 .flex-stretch-column { 12 display: flex; 13 flex-direction: column; 14 align-items: stretch; 15 } 16 17 .flex-wrap { 18 flex-wrap: wrap; 19 } 20 21 .text-nowrap { 22 white-space: nowrap; 23 } 24 25 .position-relative { 26 position: relative; 27 } 28 29 .position-absolute { 30 position: absolute; 31 } 32 33 .hoverbg:hover { 34 background-color: var(--tertiary-bg); 35 } 36 37 .invisible { 38 visibility: hidden; 39 } 40 41 .stylish-overflow { 42 @include stylish-overflow; 43 44 &.hoveronly:not(:hover) { 45 scrollbar-color: transparent transparent; 46 47 &::-webkit-scrollbar-track { 48 background-color: transparent; 49 } 50 51 &::-webkit-scrollbar-thumb { 52 background-color: transparent; 53 border-radius: 4px; 54 } 55 } 56 57 &.overflow-x-hidden { 58 overflow-x: hidden; 59 } 60 } 61 62 .hidden-overflow { 63 @include hidden-overflow; 64 } 65 66 @keyframes spin { 67 0% { 68 transform: rotate(0deg); 69 } 70 71 100% { 72 transform: rotate(360deg); 73 } 74 } 75 76 .ease-color { 77 transition: color 1s ease; 78 } 79 80 .mw-375 { 81 max-width: 375px; 82 } 83 84 .mw-425 { 85 max-width: 425px; 86 } 87 88 .max-h-100 { 89 max-height: 100%; 90 } 91 92 .d-hide { 93 display: none !important; 94 } 95 96 .buycolor { 97 color: var(--buy-color); 98 } 99 100 .sellcolor { 101 color: var(--sell-color); 102 } 103 104 .grey { 105 color: var(--text-grey); 106 } 107 108 .rounded3 { 109 border-radius: 3px; 110 } 111 112 hr.dashed { 113 @include border-top(2px, dashed); 114 } 115 116 117 img.token-parent { 118 width: 0.7em; 119 height: 0.7em; 120 position: relative; 121 top: -0.4em; 122 } 123 124 sup.token-parent { 125 font-size: 0.6em; 126 position: relative; 127 top: -0.6em; 128 } 129 130 .preline { 131 white-space: pre-line; 132 } 133 134 .vscroll { 135 @extend .stylish-overflow; 136 137 max-width: 100%; 138 overflow-x: hidden; 139 } 140 141 .pointer { 142 cursor: pointer !important; 143 } 144 145 .underline { 146 text-decoration: underline; 147 } 148 149 .plainlink { 150 color: inherit; 151 } 152 153 .ico-info { 154 margin-left: 0.25rem; 155 } 156 157 .subtlelink, 158 .subtlelink:visited { 159 text-decoration: none; 160 161 // TODO this color is almost identical to the default body color, with text-decoration: none 162 // the link isn't visible. Consider using a different shade. 163 // color: var(--subtle-link-color); 164 &:hover { 165 text-decoration: underline !important; 166 // color: var(--subtle-link-hover-color); 167 cursor: pointer; 168 } 169 } 170 171 .word-break-all { 172 word-break: break-all; 173 user-select: all; 174 } 175 176 .lh1 { 177 line-height: 1; 178 } 179 180 .fill-abs { 181 @include fill-abs; 182 } 183 184 .min-fit { 185 min-height: fit-content; 186 } 187 188 div.clear { 189 opacity: 0; // Set by animation upon initial loading. 190 } 191 192 193 .overflow-y-auto { 194 overflow-y: auto; 195 } 196 197 .overflow-y-hidden { 198 overflow-y: hidden; 199 } 200 201 .overflow-x-hidden, 202 .stylish-overflow.overflow-x-hidden { 203 overflow-x: hidden; 204 } 205 206 .user-select-all { 207 user-select: all; 208 } 209 210 .overflow-ellipsis { 211 overflow: hidden; 212 text-overflow: ellipsis; 213 } 214 215 .user-select-none { 216 user-select: none; 217 } 218 219 .text-danger { 220 color: var(--text-danger); 221 } 222 223 .text-warning { 224 color: var(--text-warning); 225 } 226 227 .text-buycolor { 228 color: var(--buy-color); 229 } 230 231 .text-sellcolor { 232 color: var(--sell-color); 233 }