Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 33415d2

Browse files
committed
fix(plugins/plugin-core-support): sidecar "window" buttons are too large
Fixes #5094
1 parent 7eb69fb commit 33415d2

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

plugins/plugin-client-common/web/css/static/master-font-size.scss

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,42 @@
1+
/*
2+
* Copyright 2020 IBM Corporation
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
html.kui {
218
&.kui--12px {
319
--kui--master-font-size: 12px;
4-
--kui--master-font-scale: calc(12 / 14);
20+
--kui--master-font-scale: calc(12 / 16);
521
font-size: var(--kui--master-font-size);
622
}
723

824
&.kui--14px {
925
--kui--master-font-size: 14px;
10-
--kui--master-font-scale: 1;
26+
--kui--master-font-scale: 1calc (14 / 16);
1127
font-size: var(--kui--master-font-size);
1228
}
1329

1430
&,
1531
&.kui--16px {
1632
--kui--master-font-size: 16px;
17-
--kui--master-font-scale: calc(16 / 14);
33+
--kui--master-font-scale: 1;
1834
font-size: var(--kui--master-font-size);
1935
}
2036

2137
&.kui--18px {
2238
--kui--master-font-size: 18px;
23-
--kui--master-font-scale: calc(18 / 14);
39+
--kui--master-font-scale: calc(18 / 16);
2440
font-size: var(--kui--master-font-size);
2541
}
2642

plugins/plugin-core-support/web/css/static/zoom.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ $MAX_ZOOM_OUT: 2;
4545
height: calc(16px * (1 + #{$step} * #{$i - 1}) * var(--kui--master-font-scale));
4646
}
4747

48-
.graphical-icon > svg,
4948
svg[width="20"] {
5049
width: calc(20px * (1 + #{$step} * #{$i - 1}) * var(--kui--master-font-scale));
5150
height: calc(20px * (1 + #{$step} * #{$i - 1}) * var(--kui--master-font-scale));
@@ -63,7 +62,6 @@ $MAX_ZOOM_OUT: 2;
6362
height: calc(16px * (1 - #{$step} * #{$i + 1}) * var(--kui--master-font-scale));
6463
}
6564

66-
.graphical-icon > svg,
6765
svg[width="20"] {
6866
width: calc(20px * (1 - #{$step} * #{$i + 1}) * var(--kui--master-font-scale));
6967
height: calc(20px * (1 - #{$step} * #{$i + 1}) * var(--kui--master-font-scale));

0 commit comments

Comments
 (0)