UNPKG

1.97 kBtext/lessView Raw
1.emoji-dialog {
2 &.open {
3 display: flex;
4 }
5
6 display: none;
7
8 z-index: 10001;
9
10 position: fixed;
11 top: 0;
12 left: 0;
13 max-height: 100vh;
14
15 height: 400px;
16 width: 400px;
17
18 flex-direction: column;
19 justify-content: flex-start;
20
21 border: 1px solid @modal-content-border-color;
22 border-radius: 11px;
23 background: @modal-content-bg;
24 overflow: auto;
25
26 button.close {
27 z-index: 2;
28 opacity: 1;
29 display: inline-block;
30
31 position: absolute;
32 right: 0;
33 top: 15px;
34 width: 30px;
35 height: 43px;
36
37 background: @nav-tabs-active-link-hover-bg;
38 color: @nav-tabs-active-link-hover-color;
39 border-left: 1px solid @nav-tabs-border-color;
40 }
41
42 .top-bar {
43 height: 15px;
44 background: #eee;
45 flex-shrink: 0;
46 }
47}
48
49
50@media (max-width: @screen-sm-max) {
51 html.composing.emoji-insert .composer {
52 bottom: calc(~"40% - 36px");
53 height: auto;
54 }
55
56 .emoji-dialog {
57 z-index: 10001;
58
59 bottom: 0 !important;
60 left: 0 !important;
61 right: 0 !important;
62 top: 60% !important;
63
64 width: auto;
65 height: auto;
66 border: none;
67 border-radius: 0;
68
69 .top-bar {
70 display: none;
71 }
72
73 button.close {
74 top: 0;
75 }
76 }
77}
78
79.emoji-tabs {
80 display: flex;
81 flex-direction: column;
82 height: 100%;
83
84 .nav-tabs {
85 overflow: hidden;
86 overflow-x: auto;
87 white-space: nowrap;
88 flex-shrink: 0;
89
90 > li {
91 display: inline-block;
92 float: none;
93
94 &:last-child {
95 margin-right: 30px;
96 }
97 }
98 }
99
100 .tab-content {
101 overflow: auto;
102 flex-shrink: 1;
103 flex-grow: 1;
104 }
105 .tab-pane {
106 padding-top: 10px;
107 padding-bottom: 10px;
108 padding-left: 5px;
109 padding-right: 5px;
110 flex-wrap: wrap;
111
112 margin: auto;
113 width: 370px;
114
115 &.active {
116 display: flex;
117 }
118 }
119}
120
121.emoji-link {
122 > span, > img {
123 height: 30px;
124 font-size: 30px;
125 line-height: 30px;
126 }
127
128 min-width: 40px;
129 min-height: 40px;
130 text-align: center;
131}