|
28 | 28 | #link-stack {
|
29 | 29 | display: flex;
|
30 | 30 | flex-direction: column;
|
| 31 | + align-items: center; |
| 32 | + justify-content: space-between; |
| 33 | + min-height: 100%; |
31 | 34 | padding: @large-gap;
|
32 | 35 | padding-bottom: 16px;
|
33 |
| - min-height: 100%; |
34 | 36 | background-color: @background-color-base;
|
35 | 37 |
|
36 |
| - align-items: center; |
37 |
| - justify-content: space-between; |
38 |
| - |
39 | 38 | @media (max-width: 799px) {
|
40 | 39 | & {
|
41 | 40 | padding-top: 0;
|
|
46 | 45 |
|
47 | 46 | .content {
|
48 | 47 | position: relative;
|
| 48 | + width: calc(800px - 2 * @large-gap); |
49 | 49 | margin-bottom: @large-gap;
|
50 | 50 | padding-bottom: @large-gap;
|
51 |
| - width: calc(800px - 2 * @large-gap); |
52 | 51 | border-radius: @gap;
|
53 | 52 | background-color: white;
|
54 |
| - box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24); |
| 53 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); |
55 | 54 |
|
56 | 55 | @media (max-width: 799px) {
|
57 | 56 | & {
|
|
68 | 67 | height: @text-height;
|
69 | 68 | border-radius: @text-height / 2;
|
70 | 69 | background-color: @primary-color;
|
| 70 | + animation: blinker 0.5s linear infinite; |
71 | 71 | opacity: 1;
|
72 |
| - animation: blinker .5s linear infinite; |
73 | 72 |
|
74 | 73 | &.hidden {
|
75 | 74 | visibility: hidden;
|
|
78 | 77 |
|
79 | 78 | .title-bar {
|
80 | 79 | display: flex;
|
| 80 | + align-items: center; |
| 81 | + justify-content: space-between; |
81 | 82 | margin-bottom: @large-gap;
|
82 | 83 | padding: 16px @large-gap;
|
83 | 84 | border-bottom: @border-width-base @border-style-base @border-color-split;
|
84 | 85 |
|
85 |
| - justify-content: space-between; |
86 |
| - align-items: center; |
87 |
| - |
88 | 86 | .root-title {
|
89 |
| - font-weight: 500; |
90 | 87 | font-size: @font-size-lg;
|
| 88 | + font-weight: 500; |
91 | 89 | line-height: @font-size-lg;
|
92 | 90 | }
|
93 | 91 |
|
|
97 | 95 | }
|
98 | 96 |
|
99 | 97 | .inner-link-stack {
|
100 |
| - overflow: hidden; |
101 | 98 | margin: 0 @large-gap;
|
| 99 | + overflow: hidden; |
102 | 100 |
|
103 | 101 | .line {
|
104 | 102 | display: flex;
|
105 |
| - font-weight: 500; |
| 103 | + align-items: center; |
| 104 | + overflow-x: scroll; |
106 | 105 | font-size: @text-height;
|
| 106 | + font-weight: 500; |
107 | 107 | line-height: @text-height;
|
108 | 108 |
|
109 |
| - align-items: center; |
110 |
| - |
111 | 109 | &:not(:last-of-type) {
|
112 | 110 | margin-bottom: @gap;
|
113 | 111 | }
|
114 | 112 |
|
115 | 113 | .link {
|
| 114 | + --link-bg: @primary-color; |
116 | 115 | display: flex;
|
| 116 | + flex-shrink: 1; |
117 | 117 | border: @border-width solid var(--link-bg);
|
118 | 118 | border-radius: @border-radius-base;
|
119 | 119 | background-color: var(--link-bg);
|
120 | 120 | text-decoration: none;
|
121 | 121 |
|
122 |
| - flex-shrink: 1; |
123 |
| - --link-bg: @primary-color; |
124 |
| - |
125 | 122 | &:hover {
|
126 | 123 | --link-bg: @primary-5;
|
127 | 124 | }
|
128 | 125 |
|
129 | 126 | &.mainLink {
|
130 |
| - max-width: calc(100% - @block-height - @gap); |
| 127 | + max-width: calc(100% - 4 * @block-height - @gap); |
131 | 128 | }
|
132 | 129 |
|
133 | 130 | &.sourceLink {
|
|
136 | 133 |
|
137 | 134 | .favicon-wrapper {
|
138 | 135 | display: flex;
|
139 |
| - margin-right: @border-width; |
| 136 | + align-items: center; |
| 137 | + justify-content: center; |
140 | 138 | width: @content-height;
|
141 | 139 | height: @content-height;
|
| 140 | + margin-right: @border-width; |
142 | 141 | border-radius: @border-radius-base - @border-width;
|
143 | 142 | background-color: white;
|
144 |
| - |
145 |
| - align-items: center; |
146 |
| - justify-content: center; |
147 | 143 | }
|
148 | 144 |
|
149 | 145 | .link-text {
|
150 |
| - overflow: hidden; |
| 146 | + flex-shrink: 1; |
151 | 147 | padding: (@content-height - @text-height) / 2;
|
| 148 | + overflow: hidden; |
152 | 149 | color: white;
|
153 | 150 | text-overflow: ellipsis;
|
154 | 151 | white-space: nowrap;
|
155 |
| - |
156 |
| - flex-shrink: 1; |
157 | 152 | }
|
158 | 153 | }
|
159 | 154 |
|
160 |
| - .source-connector, .remove { |
161 |
| - padding: (@content-height - @text-height) / 2; |
| 155 | + .source-connector, |
| 156 | + .remove { |
162 | 157 | width: @block-height;
|
163 | 158 | height: @block-height;
|
| 159 | + padding: (@content-height - @text-height) / 2; |
164 | 160 | border: @border-width solid transparent;
|
165 | 161 | color: @text-color;
|
166 | 162 | text-align: center;
|
|
169 | 165 | }
|
170 | 166 |
|
171 | 167 | .remove {
|
| 168 | + flex-shrink: 0; |
172 | 169 | margin-right: @gap;
|
173 | 170 | border-radius: @block-height / 2;
|
174 | 171 | cursor: pointer;
|
175 |
| - |
176 |
| - flex-shrink: 0; |
177 | 172 | }
|
178 | 173 |
|
179 | 174 | .remove:hover {
|
|
184 | 179 | }
|
185 | 180 |
|
186 | 181 | .inner-link-stack-info {
|
| 182 | + max-width: 520px; // Ant Design Modal's default width |
187 | 183 | margin: 0 auto;
|
188 | 184 | padding: 0 @large-gap;
|
189 |
| - max-width: 520px; // Ant Design Modal's default width |
190 | 185 | color: @text-color-secondary;
|
191 | 186 | }
|
192 | 187 | }
|
193 | 188 |
|
194 | 189 | .footer {
|
195 |
| - a, { |
| 190 | + a { |
196 | 191 | color: @text-color-secondary;
|
197 | 192 |
|
198 | 193 | &:hover {
|
|
0 commit comments