blob: 0a4353d61c3e0beee6ddb0301c6861fa8ebb4334 [file] [log] [blame]
Jiarenxiang38dcb052025-03-13 16:40:09 +08001.iconPicSearcher {
2 display: inline-block;
3 margin: 0 8px;
4
5 .icon-pic-btn {
6 color: @text-color-secondary;
7 cursor: pointer;
8 transition: all 0.3s;
9
10 &:hover {
11 color: @input-icon-hover-color;
12 }
13 }
14}
15
16.icon-pic-preview {
17 width: 30px;
18 height: 30px;
19 margin-top: 10px;
20 padding: 8px;
21 text-align: center;
22 border: 1px solid @border-color-base;
23 border-radius: 4px;
24
25 > img {
26 max-width: 50px;
27 max-height: 50px;
28 }
29}
30
31.icon-pic-search-result {
32 min-height: 50px;
33 padding: 0 10px;
34
35 > .result-tip {
36 padding: 10px 0;
37 color: @text-color-secondary;
38 }
39
40 > table {
41 width: 100%;
42
43 .col-icon {
44 width: 80px;
45 padding: 10px 0;
46
47 > .anticon {
48 font-size: 30px;
49
50 :hover {
51 color: @link-hover-color;
52 }
53 }
54 }
55 }
56}
57
58ul.anticonsList {
59 margin: 2px 0;
60 overflow: hidden;
61 direction: ltr;
62 list-style: none;
63
64 li {
65 position: relative;
66 float: left;
67 width: 48px;
68 height: 48px;
69 margin: 3px 0;
70 padding: 2px 0 0;
71 overflow: hidden;
72 color: #555;
73 text-align: center;
74 list-style: none;
75 background-color: inherit;
76 border-radius: 4px;
77 cursor: pointer;
78 transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
79
80 .rtl & {
81 margin: 3px 0;
82 padding: 2px 0 0;
83 }
84
85 .anticon {
86 margin: 4px 0 2px;
87 font-size: 24px;
88 transition: transform 0.3s ease-in-out;
89 will-change: transform;
90 }
91
92 .anticonClass {
93 display: block;
94 font-family: 'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
95 white-space: nowrap;
96 text-align: center;
97 transform: scale(0.83);
98
99 .ant-badge {
100 transition: color 0.3s ease-in-out;
101 }
102 }
103
104 &:hover {
105 color: #fff;
106 background-color: @primary-color;
107
108 .anticon {
109 transform: scale(1.4);
110 }
111
112 .ant-badge {
113 color: #fff;
114 }
115 }
116
117 &.TwoTone:hover {
118 background-color: #8ecafe;
119 }
120
121 &.copied:hover {
122 color: rgba(255, 255, 255, 0.2);
123 }
124
125 &.copied::after {
126 top: -2px;
127 opacity: 1;
128 }
129 }
130}
131
132.copied-code {
133 padding: 2px 4px;
134 font-size: 12px;
135 background: #f5f5f5;
136 border-radius: 2px;
137}