瀏覽代碼

ref(css): use var for desktop drag area margin (#4104)

master
virtuacoplenny 6 年之前
父節點
當前提交
17627291e8
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 4 行新增3 行删除
  1. 2
    2
      css/_chat.scss
  2. 1
    0
      css/_variables.scss
  3. 1
    1
      css/filmstrip/_vertical_filmstrip.scss

+ 2
- 2
css/_chat.scss 查看文件

42
     flex: 1;
42
     flex: 1;
43
     font-size: 10pt;
43
     font-size: 10pt;
44
     line-height: 20px;
44
     line-height: 20px;
45
-    margin-top: 30px;
45
+    margin-top: $desktopAppDragBarHeight + 5px;
46
     overflow: auto;
46
     overflow: auto;
47
     padding: 5px;
47
     padding: 5px;
48
     text-align: left;
48
     text-align: left;
104
     position: absolute;
104
     position: absolute;
105
     right: 5px;
105
     right: 5px;
106
     text-align: center;
106
     text-align: center;
107
-    top: 25px;
107
+    top: $desktopAppDragBarHeight;
108
     width: 10px;
108
     width: 10px;
109
     z-index: 1;
109
     z-index: 1;
110
 }
110
 }

+ 1
- 0
css/_variables.scss 查看文件

90
 $sidebarWidth: 220px;
90
 $sidebarWidth: 220px;
91
 $popoverMenuPadding: 13px;
91
 $popoverMenuPadding: 13px;
92
 $happySoftwareBackground: transparent;
92
 $happySoftwareBackground: transparent;
93
+$desktopAppDragBarHeight: 25px;
93
 
94
 
94
 /**
95
 /**
95
  * Z-indexes. TODO: Replace this by a function.
96
  * Z-indexes. TODO: Replace this by a function.

+ 1
- 1
css/filmstrip/_vertical_filmstrip.scss 查看文件

25
     display: flex;
25
     display: flex;
26
     flex-direction: column-reverse;
26
     flex-direction: column-reverse;
27
     height: 100%;
27
     height: 100%;
28
-    padding: 20px 5px 10px;
28
+    padding: ($desktopAppDragBarHeight - 5px) 5px 10px;
29
     /**
29
     /**
30
      * fixed positioning is necessary for remote menus and tooltips to pop
30
      * fixed positioning is necessary for remote menus and tooltips to pop
31
      * out of the scrolling filmstrip. AtlasKit dialogs and tooltips use
31
      * out of the scrolling filmstrip. AtlasKit dialogs and tooltips use

Loading…
取消
儲存