|
44 | 44 | height: 100%; /* This has top be 100% down to the `scrollContainer`. */
|
45 | 45 | }
|
46 | 46 |
|
47 |
| -.filterable-list-container .items-container > div > div:nth-child(odd) { |
48 |
| - background-color: var(--theia-sideBar-background); |
49 |
| - filter: contrast(105%); |
50 |
| -} |
51 |
| - |
52 |
| -.filterable-list-container .items-container > div > div:nth-child(even) { |
53 |
| - background-color: var(--theia-sideBar-background); |
54 |
| - filter: contrast(95%); |
55 |
| -} |
56 |
| - |
57 |
| -.filterable-list-container .items-container > div > div:hover { |
58 |
| - background-color: var(--theia-sideBar-background); |
59 |
| - filter: contrast(90%); |
| 47 | +.filterable-list-container > div > div > div > div > div:focus { |
| 48 | + border-left: 1px solid; |
60 | 49 | }
|
61 | 50 |
|
62 | 51 | .component-list-item {
|
63 |
| - padding: 10px 10px 10px 15px; |
64 |
| - font-size: var(--theia-ui-font-size1); |
| 52 | + padding: 20px 15px 25px; |
65 | 53 | }
|
66 | 54 |
|
67 | 55 | .component-list-item:hover {
|
|
74 | 62 | flex-direction: column;
|
75 | 63 | }
|
76 | 64 |
|
77 |
| -.component-list-item .header .version-info { |
| 65 | +.component-list-item .header .title { |
| 66 | + display: -webkit-box; |
| 67 | + -webkit-box-orient: vertical; |
| 68 | + -webkit-line-clamp: 2; |
| 69 | + white-space: normal; |
| 70 | + overflow: hidden; |
| 71 | + text-overflow: ellipsis; |
| 72 | +} |
| 73 | + |
| 74 | +.component-list-item .header .title .name { |
| 75 | + font-family: 'Open Sans'; |
| 76 | + font-style: normal; |
| 77 | + font-weight: 700; |
| 78 | + font-size: 14px; |
| 79 | +} |
| 80 | + |
| 81 | +.component-list-item .header .version { |
78 | 82 | display: flex;
|
79 | 83 | justify-content: space-between;
|
80 | 84 | align-items: center;
|
81 | 85 | }
|
82 | 86 |
|
83 |
| -.component-list-item .header .name { |
84 |
| - font-weight: bold; |
85 |
| -} |
86 |
| - |
87 | 87 | .component-list-item .header .author {
|
88 |
| - font-weight: bold; |
89 | 88 | color: var(--theia-panelTitle-inactiveForeground);
|
90 | 89 | }
|
91 | 90 |
|
|
95 | 94 |
|
96 | 95 | .component-list-item .header .version {
|
97 | 96 | color: var(--theia-panelTitle-inactiveForeground);
|
| 97 | + padding-top: 4px; |
98 | 98 | }
|
99 | 99 |
|
100 | 100 | .component-list-item .footer .theia-button.install {
|
101 | 101 | height: auto; /* resets the default Theia button height in the filterable list widget */
|
102 | 102 | }
|
103 | 103 |
|
104 |
| -.component-list-item .header .installed:before { |
105 |
| - margin-left: 4px; |
| 104 | +.component-list-item .header .installed-version:before { |
| 105 | + min-width: 79px; |
106 | 106 | display: inline-block;
|
107 | 107 | justify-self: end;
|
108 |
| - background-color: var(--theia-button-background); |
| 108 | + text-align: center; |
| 109 | + background-color: var(--theia-secondaryButton-hoverBackground); |
109 | 110 | padding: 2px 4px 2px 4px;
|
110 |
| - font-size: 10px; |
111 |
| - font-weight: bold; |
| 111 | + font-size: 12px; |
112 | 112 | max-height: calc(1em + 4px);
|
113 |
| - color: var(--theia-button-foreground); |
114 |
| - content: attr(install); |
| 113 | + color: var(--theia-titleBar-activeBackground); |
| 114 | + content: attr(version); |
115 | 115 | }
|
116 | 116 |
|
117 |
| -.component-list-item .header .installed:hover:before { |
| 117 | +.component-list-item .header .installed-version:hover:before { |
118 | 118 | background-color: var(--theia-button-foreground);
|
119 | 119 | color: var(--theia-button-background);
|
120 |
| - content: attr(uninstall); |
| 120 | + content: attr(remove); |
| 121 | + text-transform: uppercase; |
| 122 | + outline-width: 1px; |
| 123 | + outline-style: solid; |
| 124 | + outline-offset: -1px; |
| 125 | + opacity: 1; |
| 126 | + outline-color: var(--theia-secondaryButton-hoverBackground); |
121 | 127 | }
|
122 | 128 |
|
123 |
| -.component-list-item[min-width~="170px"] .footer { |
124 |
| - padding: 5px 5px 0px 0px; |
125 |
| - min-height: 35px; |
| 129 | +.component-list-item .content { |
126 | 130 | display: flex;
|
127 |
| - flex-direction: row-reverse; |
| 131 | + flex-direction: column; |
| 132 | + padding-top: 4px; |
| 133 | +} |
| 134 | + |
| 135 | +.component-list-item .content > p { |
| 136 | + margin-block-start: unset; |
| 137 | + margin-block-end: unset; |
| 138 | + |
| 139 | + font-style: normal; |
| 140 | + font-weight: 400; |
| 141 | + font-size: 12px; |
| 142 | + |
| 143 | + display: -webkit-box; |
| 144 | + -webkit-box-orient: vertical; |
| 145 | + -webkit-line-clamp: 3; |
| 146 | + white-space: normal; |
| 147 | + overflow: hidden; |
| 148 | + text-overflow: ellipsis; |
| 149 | +} |
| 150 | + |
| 151 | +.component-list-item .content > .info { |
| 152 | + white-space: nowrap; |
128 | 153 | }
|
129 | 154 |
|
130 | 155 | .component-list-item .footer {
|
131 | 156 | flex-direction: column-reverse;
|
| 157 | + padding-top: 8px; |
132 | 158 | }
|
133 | 159 |
|
134 | 160 | .component-list-item .footer > * {
|
135 | 161 | display: inline-block;
|
136 |
| - margin: 5px 0px 0px 10px; |
| 162 | +} |
| 163 | + |
| 164 | +.filterable-list-container .separator { |
| 165 | + display: flex; |
| 166 | + flex-direction: row; |
| 167 | +} |
| 168 | + |
| 169 | +.filterable-list-container .separator :last-child, |
| 170 | +.filterable-list-container .separator :first-child { |
| 171 | + min-height: 8px; |
| 172 | + max-height: 8px; |
| 173 | + min-width: 8px; |
| 174 | + max-width: 8px; |
| 175 | +} |
| 176 | + |
| 177 | +div.filterable-list-container > div > div > div > div:nth-child(1) > div.separator :first-child, |
| 178 | +div.filterable-list-container > div > div > div > div:nth-child(1) > div.separator :last-child { |
| 179 | + display: none; |
| 180 | +} |
| 181 | + |
| 182 | +.filterable-list-container .separator .line { |
| 183 | + max-height: 1px; |
| 184 | + height: 1px; |
| 185 | + background-color: var(--theia-activityBar-inactiveForeground); |
| 186 | + flex: 1 1 auto; |
137 | 187 | }
|
138 | 188 |
|
139 | 189 | .component-list-item:hover .footer > label {
|
140 | 190 | display: inline-block;
|
141 | 191 | align-self: center;
|
142 |
| - margin: 5px 0px 0px 10px; |
143 | 192 | }
|
144 | 193 |
|
145 | 194 | .component-list-item .info a {
|
|
151 | 200 | text-decoration: underline;
|
152 | 201 | }
|
153 | 202 |
|
| 203 | +.component-list-item .theia-button.secondary.no-border { |
| 204 | + border: 2px solid var(--theia-button-foreground) |
| 205 | +} |
| 206 | + |
| 207 | +.component-list-item .theia-button.secondary.no-border:hover { |
| 208 | + border: 2px solid var(--theia-secondaryButton-foreground) |
| 209 | +} |
| 210 | + |
| 211 | +.component-list-item .theia-button { |
| 212 | + margin-left: 12px; |
| 213 | +} |
| 214 | + |
| 215 | +.component-list-item .theia-select { |
| 216 | + height: var(--arduino-button-height); |
| 217 | + min-height: var(--arduino-button-height); |
| 218 | + width: 65px; |
| 219 | + min-width: 65px; |
| 220 | +} |
| 221 | + |
154 | 222 | /* High Contrast Theme rules */
|
155 | 223 | /* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
|
156 |
| -.hc-black.hc-theia.theia-hc .component-list-item .header .installed:hover:before { |
| 224 | +.hc-black.hc-theia.theia-hc .component-list-item .header .installed-version:hover:before { |
157 | 225 | background-color: transparent;
|
158 |
| - outline: 1px dashed var(--theia-focusBorder); |
| 226 | + outline: 1px dashed var(--theia-focusBorder); |
159 | 227 | }
|
160 | 228 |
|
161 |
| -.hc-black.hc-theia.theia-hc .component-list-item .header .installed:before { |
| 229 | +.hc-black.hc-theia.theia-hc .component-list-item .header .installed-version:before { |
| 230 | + color: var(--theia-button-background); |
162 | 231 | border: 1px solid var(--theia-button-border);
|
163 | 232 | }
|
0 commit comments