Procházet zdrojové kódy

fix(alwaysontop): change the size of the toolbar

master
hristoterezov před 7 roky
rodič
revize
70422f4a47

+ 20
- 0
css/_toolbars.scss Zobrazit soubor

@@ -50,6 +50,21 @@
50 50
         display: inline-block;
51 51
     }
52 52
 
53
+    /**
54
+     * Always on top overrides.
55
+     */
56
+    &.always-on-top {
57
+        /**
58
+         * Toolbar button styles for always on top.
59
+         */
60
+        > .button {
61
+            font-size: $alwaysOnTopToolbarFontSize;
62
+            height: $alwaysOnTopToolbarSize;
63
+            line-height: $alwaysOnTopToolbarSize;
64
+            width: $alwaysOnTopToolbarSize;
65
+        }
66
+    }
67
+
53 68
     /**
54 69
      * Toolbar button styles.
55 70
      */
@@ -128,6 +143,11 @@
128 143
         border-radius: 3px;
129 144
         opacity: 0;
130 145
 
146
+        &.always-on-top {
147
+            height: $alwaysOnTopToolbarSize;
148
+            top: 10px;
149
+        }
150
+
131 151
         @include transform(translateX(-50%));
132 152
 
133 153
         > div:first-child .button {

+ 2
- 0
css/_variables.scss Zobrazit soubor

@@ -32,6 +32,8 @@ $defaultDarkColor: #2b3d5c;
32 32
 /**
33 33
  * Toolbar
34 34
  */
35
+$alwaysOnTopToolbarFontSize: 1em;
36
+$alwaysOnTopToolbarSize: 30px;
35 37
 $defaultToolbarSize: 50px;
36 38
 $defaultFilmStripOnlyToolbarSize: 37px;
37 39
 $secToolbarFontSize: 1.9em;

+ 2
- 1
react/features/always-on-top/AlwaysOnTop.js Zobrazit soubor

@@ -251,7 +251,8 @@ export default class AlwaysOnTop extends Component {
251 251
      */
252 252
     render() {
253 253
         const className
254
-            = `toolbar_primary ${this.state.visible ? 'fadeIn' : 'fadeOut'}`;
254
+            = `toolbar_primary always-on-top ${
255
+                this.state.visible ? 'fadeIn' : 'fadeOut'}`;
255 256
 
256 257
         return (
257 258
             <StatelessToolbar

Načítá se…
Zrušit
Uložit