Files: d45e0ad160051c97802cf3566af0ab967fcc0c0e / modules_basic / compose.mcss
1321 bytesRaw
1 | Compose { |
2 | display: flex |
3 | flex-direction: column |
4 | |
5 | padding: 1rem .5rem 1rem 7.3rem |
6 | |
7 | textarea { |
8 | border: 1px solid gainsboro |
9 | } |
10 | |
11 | section.actions { |
12 | display: flex |
13 | flex-direction: row |
14 | align-items: baseline |
15 | |
16 | margin-top: .4rem |
17 | |
18 | input[type="file"] { |
19 | flex-grow: 1 |
20 | |
21 | padding: .5rem 0 |
22 | |
23 | width: 5.5rem |
24 | color: transparent |
25 | |
26 | ::-webkit-file-upload-button { |
27 | visibility: hidden |
28 | } |
29 | |
30 | ::before { |
31 | $composeButton |
32 | padding-top: .3rem |
33 | |
34 | content: '๐' |
35 | font-size: 1rem |
36 | |
37 | outline: none |
38 | white-space: nowrap |
39 | -webkit-user-select: none |
40 | } |
41 | |
42 | :active, :focus { |
43 | outline: none |
44 | box-shadow: none |
45 | } |
46 | } |
47 | |
48 | button { |
49 | $composeButton |
50 | |
51 | text-transform: uppercase |
52 | font-weight: bold |
53 | font-size: .7rem |
54 | } |
55 | } |
56 | |
57 | -expanded { |
58 | textarea { |
59 | height: 200px |
60 | transition: height .15s ease-out |
61 | } |
62 | |
63 | section.actions { |
64 | display: flex |
65 | } |
66 | } |
67 | |
68 | -contracted { |
69 | textarea { |
70 | height: 50px |
71 | transition: height .15s ease-in |
72 | } |
73 | |
74 | section.actions { |
75 | display: none |
76 | } |
77 | } |
78 | |
79 | } |
80 | |
81 | $composeButton { |
82 | background: #fff |
83 | color: #666 |
84 | border: 1px solid #bbb |
85 | border-radius: .5rem |
86 | padding: .5rem |
87 | margin: 0 |
88 | cursor: pointer |
89 | } |
90 | |
91 |
Built with git-ssb-web