Skip to content

Commit 4f4b70f

Browse files
author
hoang.tran12
committed
correct swal dark style
1 parent e97d58c commit 4f4b70f

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

popup/popup.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
1010

1111
<script src="./libs/swal2.min.js"></script>
12-
<link rel="stylesheet" href="./libs/swal2.dark.css">
1312

1413
<link rel="stylesheet/less" type="text/css" href="styles/default.less" />
1514
<script src="libs/less.js"></script>

popup/styles/default.less

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "./scrollbar.css";
2+
13
@font_family_1: "Roboto", sans-serif;
24
@bg_body: #e6e6e6;
35
@color_body: #333;
@@ -48,9 +50,6 @@
4850
@border_loading: #3498db;
4951
@border_loading_bg: white;
5052

51-
@bg_scrollbar: #888;
52-
@bg_scrollbar_hover: #555;
53-
5453

5554
* {
5655
font-family: @font_family_1;
@@ -580,23 +579,6 @@ option {
580579
}
581580
}
582581

583-
&::-webkit-scrollbar {
584-
width: 7px;
585-
height: 7px;
586-
}
587-
588-
&::-webkit-scrollbar-track {
589-
background: transparent;
590-
}
591-
592-
&::-webkit-scrollbar-thumb {
593-
background: @bg_scrollbar;
594-
595-
&:hover {
596-
background: @bg_scrollbar_hover;
597-
}
598-
}
599-
600582
// https://www.cssportal.com/css-tooltip-generator/
601583
@keyframes tooltip-vert {
602584
to {

popup/styles/default_dark.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "./default.less"; // extends from default theme
2+
@import "../libs/swal2.dark.css";
23

34
@font_family_1: "Roboto", sans-serif;
45
@bg_body: #223;

popup/styles/scrollbar.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
::-webkit-scrollbar {
2+
width: 7px;
3+
height: 7px;
4+
}
5+
6+
::-webkit-scrollbar-track {
7+
background: transparent;
8+
}
9+
10+
::-webkit-scrollbar-thumb {
11+
background: #888;
12+
}
13+
14+
::-webkit-scrollbar-thumb:hover {
15+
background: #555;
16+
}

0 commit comments

Comments
 (0)