Mercurial Hosting > freedit
annotate src/bbcode/bbcode.css @ 61:389e5d8e5f8a default tip
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 06 Dec 2022 13:37:25 -0700 |
parents | 8b5b1bce7d6b |
children |
rev | line source |
---|---|
50 | 1 div[bbcode_editor] * { |
44 | 2 box-sizing: border-box; |
3 } | |
50 | 4 div[bbcode_editor] textarea { |
44 | 5 font: inherit; |
6 padding: 7px; | |
7 border-color: #DDDDDD; | |
8 width: 100%; | |
9 } | |
10 | |
50 | 11 div[bbcode_editor] input[type="file"] { |
44 | 12 display: none; |
13 } | |
45 | 14 |
60 | 15 div[bbcode_editor] input[type="checkbox"], |
16 div[bbcode_editor] button { | |
45 | 17 cursor: pointer; |
18 } | |
19 | |
50 | 20 div[bbcode_editor] div[buttons] { |
45 | 21 display: flex; |
60 | 22 gap: 4px; |
23 align-items: center; | |
24 } | |
25 div[bbcode_editor] div[buttons="top"] { | |
26 margin-bottom: 2px; | |
27 } | |
28 div[bbcode_editor] div[buttons="bottom"] { | |
45 | 29 justify-content: flex-end; |
30 } | |
51 | 31 div[bbcode_editor] button { |
60 | 32 padding-top: 2px; |
33 } | |
34 div[bbcode_editor] button:has(img) { | |
45 | 35 border: 0; |
36 background-color: transparent; | |
47 | 37 border-radius: 4px; |
38 } | |
60 | 39 div[bbcode_editor] button input[type="checkbox"] { |
40 margin: 0; | |
41 } | |
42 div[bbcode_editor] button:has(img):hover { | |
47 | 43 background-color: lightgrey; |
44 } | |
51 | 45 div[bbcode_editor] button[checked] { |
47 | 46 background-color: lightblue; |
45 | 47 } |
51 | 48 div[bbcode_editor] button:disabled { |
49 cursor: not-allowed; | |
50 background-color: initial; | |
51 opacity: 0.3; | |
52 } | |
50 | 53 div[bbcode_editor] div[buttons] img { |
45 | 54 height: 24px; |
55 } | |
51 | 56 div[bbcode_editor] div[preview] { |
57 display: none; | |
58 border: solid #888888; | |
59 padding: 7px; | |
60 margin-bottom: 4px; | |
61 } | |
49 | 62 |
50 | 63 |
49 | 64 div[from_bbcode] { |
65 white-space: pre-wrap; | |
66 line-height: 1.4; | |
67 } | |
68 div[from_bbcode] code { | |
69 display: block; | |
70 background-color: #EEE; | |
71 padding: 7px; | |
72 } | |
73 div[from_bbcode] code[inline] { | |
74 display: initial; | |
75 padding: 1px; | |
76 } | |
53
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
77 div[from_bbcode] img { |
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
78 max-width: 100%; |
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
79 } |
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
80 div[from_bbcode] iframe { |
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
81 max-width: 100%; |
cac477dd1f82
convert image and video urls
Franklin Schmidt <fschmidt@gmail.com>
parents:
52
diff
changeset
|
82 } |