tre revised this gist 3 hours ago. Go to revision
1 file changed, 1 insertion, 1 deletion
ffx.css
| @@ -102,7 +102,7 @@ li, .choices td { | |||
| 102 | 102 | li:hover:before, .choices .select:before { | |
| 103 | 103 | position: absolute; | |
| 104 | 104 | left: -35px; | |
| 105 | - | content: url("/ffx/pointer.png"); /* replace with the source for the ffx pointer image on your site. download the image from https://tre.praze.net/ffx/pointer.png and reupload to your own server */ | |
| 105 | + | content: url("/ffx/pointer.png"); | |
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | 108 | li:hover:has(li:hover):before { | |
tre revised this gist 3 hours ago. Go to revision
No changes
tre revised this gist 3 hours ago. Go to revision
2 files changed, 298 insertions
ffx.css(file created)
| @@ -0,0 +1,298 @@ | |||
| 1 | + | /* by mez, https://tre.praze.net */ | |
| 2 | + | ||
| 3 | + | @charset "utf-8" | |
| 4 | + | ||
| 5 | + | @import url(https://fonts.bunny.net/css?family=inconsolata:400); | |
| 6 | + | ||
| 7 | + | @font-face { | |
| 8 | + | font-family: "TB UD Gothic"; | |
| 9 | + | src: url("/fonts/ffx.ttf"); | |
| 10 | + | display: swap; | |
| 11 | + | } | |
| 12 | + | ||
| 13 | + | body { | |
| 14 | + | font-family: "TB UD Gothic", sans-serif; | |
| 15 | + | font-weight: bold; | |
| 16 | + | font-size: 0.8em; | |
| 17 | + | text-align: center; | |
| 18 | + | background-image: url(""); | |
| 19 | + | background-size: auto; | |
| 20 | + | background-repeat: no-repeat; | |
| 21 | + | background-attachment: fixed; | |
| 22 | + | color: #cfcecc; | |
| 23 | + | line-height: 1.5rem; | |
| 24 | + | letter-spacing: 0.5px; | |
| 25 | + | margin: 8px; | |
| 26 | + | } | |
| 27 | + | ||
| 28 | + | body * { | |
| 29 | + | margin: 0; | |
| 30 | + | font-size: 1em; | |
| 31 | + | font-style: normal; | |
| 32 | + | list-style-type: none; | |
| 33 | + | text-decoration: none; | |
| 34 | + | } | |
| 35 | + | ||
| 36 | + | div:not(.e-content):not(.subtitle):not(.invisible), .choices { | |
| 37 | + | width: fit-content; | |
| 38 | + | background: rgba(54,45,88,1); | |
| 39 | + | background: linear-gradient(0deg, rgba(54,45,88,1) 0%, rgba(70,59,127,1) 100%); | |
| 40 | + | border-width: 3px; | |
| 41 | + | border-style: double; | |
| 42 | + | border-color: #6a619a; | |
| 43 | + | padding: 12px 30px; | |
| 44 | + | margin: 20px auto; | |
| 45 | + | } | |
| 46 | + | ||
| 47 | + | div.invisible { | |
| 48 | + | padding: 12px 30px; | |
| 49 | + | margin: 20px auto; | |
| 50 | + | display: flex; | |
| 51 | + | gap: 10px; | |
| 52 | + | flex-direction: row; | |
| 53 | + | flex-wrap: wrap; | |
| 54 | + | justify-content: space-between; | |
| 55 | + | align-items: center; | |
| 56 | + | } | |
| 57 | + | ||
| 58 | + | div:not(.e-content), .choices, .battle { | |
| 59 | + | text-align: left; | |
| 60 | + | } | |
| 61 | + | ||
| 62 | + | div:not(.e-content) { | |
| 63 | + | max-width: 340px; | |
| 64 | + | } | |
| 65 | + | ||
| 66 | + | div.dialog { | |
| 67 | + | text-align: center; | |
| 68 | + | } | |
| 69 | + | ||
| 70 | + | div.fullwidth, div.invisible { | |
| 71 | + | max-width: 900px; | |
| 72 | + | } | |
| 73 | + | ||
| 74 | + | div#table-wrapper { | |
| 75 | + | max-width: 100%; | |
| 76 | + | } | |
| 77 | + | ||
| 78 | + | div:not(.e-content) *, .choices * { | |
| 79 | + | text-shadow: 0px 0px 0 #000, 1px 0px 0 #000, 0px 1px 0 #000, 1px 1px 0 #000; | |
| 80 | + | } | |
| 81 | + | ||
| 82 | + | p.title { | |
| 83 | + | text-align: center; | |
| 84 | + | } | |
| 85 | + | ||
| 86 | + | h1, h2, em, a, .crit .name, .crit .hp-value, .yellow { | |
| 87 | + | color: #eeb206; | |
| 88 | + | } | |
| 89 | + | ||
| 90 | + | h1, h2 { | |
| 91 | + | text-align: center; | |
| 92 | + | } | |
| 93 | + | ||
| 94 | + | .fullwidth h1, .fullwidth h2 { | |
| 95 | + | text-align: left; | |
| 96 | + | } | |
| 97 | + | ||
| 98 | + | li, .choices td { | |
| 99 | + | position: relative; | |
| 100 | + | } | |
| 101 | + | ||
| 102 | + | li:hover:before, .choices .select:before { | |
| 103 | + | position: absolute; | |
| 104 | + | left: -35px; | |
| 105 | + | content: url("/ffx/pointer.png"); /* replace with the source for the ffx pointer image on your site. download the image from https://tre.praze.net/ffx/pointer.png and reupload to your own server */ | |
| 106 | + | } | |
| 107 | + | ||
| 108 | + | li:hover:has(li:hover):before { | |
| 109 | + | content: ""; | |
| 110 | + | } | |
| 111 | + | ||
| 112 | + | .subtitle, .battle { | |
| 113 | + | text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; | |
| 114 | + | padding: 0; | |
| 115 | + | } | |
| 116 | + | ||
| 117 | + | .battle { | |
| 118 | + | margin: 0 auto; | |
| 119 | + | border-collapse: collapse; | |
| 120 | + | } | |
| 121 | + | ||
| 122 | + | .big, .subtitle { | |
| 123 | + | max-width: 100%; | |
| 124 | + | } | |
| 125 | + | ||
| 126 | + | .subtitle { | |
| 127 | + | background: transparent; | |
| 128 | + | border: none; | |
| 129 | + | margin: 20px auto; | |
| 130 | + | font-size: 1rem; | |
| 131 | + | } | |
| 132 | + | ||
| 133 | + | .al-bhed, .pink, i { | |
| 134 | + | color: #f375e5; | |
| 135 | + | } | |
| 136 | + | ||
| 137 | + | .blue { | |
| 138 | + | color: #95b4d0; # not right | |
| 139 | + | } | |
| 140 | + | ||
| 141 | + | .choices { | |
| 142 | + | text-align: left; | |
| 143 | + | } | |
| 144 | + | ||
| 145 | + | .choices tr > * + * { | |
| 146 | + | padding-left: 80px; | |
| 147 | + | } | |
| 148 | + | ||
| 149 | + | .battle td { | |
| 150 | + | padding: 0 5px; | |
| 151 | + | } | |
| 152 | + | ||
| 153 | + | .battle td.hp.label { | |
| 154 | + | color: #69d2a7; | |
| 155 | + | } | |
| 156 | + | ||
| 157 | + | .battle td.mp.label { | |
| 158 | + | color: #c8a8f4; | |
| 159 | + | } | |
| 160 | + | ||
| 161 | + | .battle td.value { | |
| 162 | + | text-align: right; | |
| 163 | + | } | |
| 164 | + | ||
| 165 | + | .battle td.name { | |
| 166 | + | padding-right: 100px; | |
| 167 | + | } | |
| 168 | + | ||
| 169 | + | .battle progress { | |
| 170 | + | width: 100%; | |
| 171 | + | height: 5px; | |
| 172 | + | position: relative; | |
| 173 | + | bottom: 10px; | |
| 174 | + | -webkit-appearance: none; | |
| 175 | + | appearance: none; | |
| 176 | + | border: 1px solid black; | |
| 177 | + | } | |
| 178 | + | ||
| 179 | + | .battle progress[value]::-webkit-progress-bar { | |
| 180 | + | background-color: #000; | |
| 181 | + | } | |
| 182 | + | ||
| 183 | + | .battle progress[value]::-webkit-progress-value { | |
| 184 | + | background-color: #eeb206; | |
| 185 | + | } | |
| 186 | + | ||
| 187 | + | .battle progress[value="100"]::-webkit-progress-value { | |
| 188 | + | background-color: #ff5f01; | |
| 189 | + | } | |
| 190 | + | ||
| 191 | + | code { | |
| 192 | + | background-color: #f2f2f2; | |
| 193 | + | font-family: "Inconsolata", mono; | |
| 194 | + | color: #000; | |
| 195 | + | text-shadow: none !important; | |
| 196 | + | font-weight: normal; | |
| 197 | + | font-size: 0.9em; | |
| 198 | + | } | |
| 199 | + | ||
| 200 | + | p, ul { | |
| 201 | + | margin: 5px 0; | |
| 202 | + | } | |
| 203 | + | ||
| 204 | + | blockquote { | |
| 205 | + | margin: 10px 20px; | |
| 206 | + | } | |
| 207 | + | ||
| 208 | + | details { | |
| 209 | + | margin: 5px 0; | |
| 210 | + | } | |
| 211 | + | ||
| 212 | + | blockquote, details { | |
| 213 | + | text-align: justify; | |
| 214 | + | background-color: rgba(54,45,88,1); | |
| 215 | + | padding: 5px; | |
| 216 | + | border-radius: 10px; | |
| 217 | + | border: 1px solid #6a619a; | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | details > summary { | |
| 221 | + | cursor: pointer; | |
| 222 | + | } | |
| 223 | + | ||
| 224 | + | details[open] > summary { | |
| 225 | + | border-bottom: 1px solid #6a619a; | |
| 226 | + | } | |
| 227 | + | ||
| 228 | + | details > summary:before { | |
| 229 | + | content: "[click to show] "; | |
| 230 | + | font-size: 0.8em; | |
| 231 | + | color: #eeb206; | |
| 232 | + | } | |
| 233 | + | ||
| 234 | + | details[open] > summary:before { | |
| 235 | + | content: "[click to hide] "; | |
| 236 | + | } | |
| 237 | + | ||
| 238 | + | details blockquote { | |
| 239 | + | margin: 0; | |
| 240 | + | border-radius: 0; | |
| 241 | + | } | |
| 242 | + | ||
| 243 | + | blockquote.quote p:first-child:before { | |
| 244 | + | content:"“" | |
| 245 | + | } | |
| 246 | + | ||
| 247 | + | blockquote.quote p:last-child:after { | |
| 248 | + | content:"”" | |
| 249 | + | } | |
| 250 | + | ||
| 251 | + | img { | |
| 252 | + | max-width: 100%; | |
| 253 | + | } | |
| 254 | + | ||
| 255 | + | small { | |
| 256 | + | font-size: 0.8em; | |
| 257 | + | } | |
| 258 | + | ||
| 259 | + | img.metaimg{ | |
| 260 | + | display: block; | |
| 261 | + | margin: 5px auto; | |
| 262 | + | } | |
| 263 | + | ||
| 264 | + | del { | |
| 265 | + | color: #9c9a96; | |
| 266 | + | } | |
| 267 | + | ||
| 268 | + | hr { | |
| 269 | + | border: 1px solid #6a619a; | |
| 270 | + | margin: 10px 0; | |
| 271 | + | } | |
| 272 | + | ||
| 273 | + | /* form#theform { | |
| 274 | + | min-width: 400px; | |
| 275 | + | } */ | |
| 276 | + | ||
| 277 | + | form#theform > * { | |
| 278 | + | display:block; | |
| 279 | + | } | |
| 280 | + | ||
| 281 | + | form#theform input, form#theform textarea { | |
| 282 | + | width:95%; | |
| 283 | + | margin: 10px; | |
| 284 | + | } | |
| 285 | + | ||
| 286 | + | form#theform input, form#theform textarea, form#theform button { | |
| 287 | + | background-color: rgba(54,45,88,1); | |
| 288 | + | color: #cfcecc; | |
| 289 | + | } | |
| 290 | + | ||
| 291 | + | form#theform input::placeholder, form#theform textarea::placeholder { | |
| 292 | + | color: #cfecc; | |
| 293 | + | opacity: 1; | |
| 294 | + | } | |
| 295 | + | ||
| 296 | + | form#theform button { | |
| 297 | + | cursor: pointer; | |
| 298 | + | } | |