|
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 | + background-color: var(--theia-focusBorder); |
109 | 109 | padding: 2px 4px 2px 4px;
|
110 |
| - font-size: 10px; |
111 |
| - font-weight: bold; |
| 110 | + font-size: 12px; |
112 | 111 | max-height: calc(1em + 4px);
|
113 |
| - color: var(--theia-button-foreground); |
114 |
| - content: attr(install); |
| 112 | + color: var(--theia-titleBar-activeBackground); |
| 113 | + content: attr(version); |
115 | 114 | }
|
116 | 115 |
|
117 |
| -.component-list-item .header .installed:hover:before { |
| 116 | +.component-list-item .header .installed-version:hover:before { |
118 | 117 | background-color: var(--theia-button-foreground);
|
119 | 118 | color: var(--theia-button-background);
|
120 |
| - content: attr(uninstall); |
| 119 | + content: attr(remove); |
| 120 | + text-transform: uppercase; |
121 | 121 | }
|
122 | 122 |
|
123 |
| -.component-list-item[min-width~="170px"] .footer { |
124 |
| - padding: 5px 5px 0px 0px; |
125 |
| - min-height: 35px; |
| 123 | +.component-list-item .content { |
126 | 124 | display: flex;
|
127 |
| - flex-direction: row-reverse; |
| 125 | + flex-direction: column; |
| 126 | + padding-top: 4px; |
| 127 | +} |
| 128 | + |
| 129 | +.component-list-item .content > p { |
| 130 | + margin-block-start: unset; |
| 131 | + margin-block-end: unset; |
| 132 | + |
| 133 | + font-style: normal; |
| 134 | + font-weight: 400; |
| 135 | + font-size: 12px; |
| 136 | + |
| 137 | + display: -webkit-box; |
| 138 | + -webkit-box-orient: vertical; |
| 139 | + -webkit-line-clamp: 3; |
| 140 | + white-space: normal; |
| 141 | + overflow: hidden; |
| 142 | + text-overflow: ellipsis; |
| 143 | +} |
| 144 | + |
| 145 | +.component-list-item .content > .info { |
| 146 | + white-space: nowrap; |
128 | 147 | }
|
129 | 148 |
|
130 | 149 | .component-list-item .footer {
|
131 | 150 | flex-direction: column-reverse;
|
| 151 | + padding-top: 8px; |
132 | 152 | }
|
133 | 153 |
|
134 | 154 | .component-list-item .footer > * {
|
135 | 155 | display: inline-block;
|
136 |
| - margin: 5px 0px 0px 10px; |
| 156 | +} |
| 157 | + |
| 158 | +.filterable-list-container .separator { |
| 159 | + display: flex; |
| 160 | + flex-direction: row; |
| 161 | +} |
| 162 | + |
| 163 | +.filterable-list-container .separator :last-child, |
| 164 | +.filterable-list-container .separator :first-child { |
| 165 | + min-height: 8px; |
| 166 | + max-height: 8px; |
| 167 | + min-width: 8px; |
| 168 | + max-width: 8px; |
| 169 | +} |
| 170 | + |
| 171 | +div.filterable-list-container > div > div > div > div:nth-child(1) > div.separator :first-child, |
| 172 | +div.filterable-list-container > div > div > div > div:nth-child(1) > div.separator :last-child { |
| 173 | + display: none; |
| 174 | +} |
| 175 | + |
| 176 | +.filterable-list-container .separator .line { |
| 177 | + max-height: 1px; |
| 178 | + height: 1px; |
| 179 | + background-color: var(--theia-activityBar-inactiveForeground); |
| 180 | + flex: 1 1 auto; |
137 | 181 | }
|
138 | 182 |
|
139 | 183 | .component-list-item:hover .footer > label {
|
140 | 184 | display: inline-block;
|
141 | 185 | align-self: center;
|
142 |
| - margin: 5px 0px 0px 10px; |
143 | 186 | }
|
144 | 187 |
|
145 | 188 | .component-list-item .info a {
|
|
151 | 194 | text-decoration: underline;
|
152 | 195 | }
|
153 | 196 |
|
| 197 | +.component-list-item .theia-button.secondary.no-border { |
| 198 | + border: 2px solid var(--theia-button-foreground) |
| 199 | +} |
| 200 | + |
| 201 | +.component-list-item .theia-button.secondary.no-border:hover { |
| 202 | + border: 2px solid var(--theia-secondaryButton-foreground) |
| 203 | +} |
| 204 | + |
| 205 | +.component-list-item .theia-button { |
| 206 | + margin-left: 12px; |
| 207 | +} |
| 208 | + |
| 209 | +.component-list-item .theia-select { |
| 210 | + height: var(--arduino-button-height); |
| 211 | + min-height: var(--arduino-button-height); |
| 212 | + width: 65px; |
| 213 | + min-width: 65px; |
| 214 | +} |
| 215 | + |
154 | 216 | /* High Contrast Theme rules */
|
155 | 217 | /* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
|
156 | 218 | .hc-black.hc-theia.theia-hc .component-list-item .header .installed:hover:before {
|
157 | 219 | background-color: transparent;
|
158 |
| - outline: 1px dashed var(--theia-focusBorder); |
| 220 | + outline: 1px dashed var(--theia-focusBorder); |
159 | 221 | }
|
160 | 222 |
|
161 | 223 | .hc-black.hc-theia.theia-hc .component-list-item .header .installed:before {
|
|
0 commit comments