-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6604e51
commit d60ccbe
Showing
3 changed files
with
68 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@mixin style-common($background-color, $text-color, $component-background, $disabled-color) { | ||
body { | ||
font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
height: 100%; | ||
margin: 0; | ||
background: $background-color; | ||
color: $text-color; | ||
} | ||
|
||
.dock-tabpane > div { | ||
padding: 20px; | ||
} | ||
|
||
.top-panel { | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 20px; | ||
} | ||
|
||
.btn { | ||
display: inline-block; | ||
margin: 5px; | ||
font-weight: 400; | ||
text-align: center; | ||
vertical-align: middle; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
color: #212529; | ||
background-color: $component-background; | ||
border: 1px solid #e9ecef; | ||
padding: 3px 10px; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
border-radius: 0.25rem; | ||
cursor: pointer; | ||
} | ||
|
||
|
||
.btn:hover { | ||
color: #000; | ||
background-color: #f8f8f8; | ||
border-color: #cbd3da; | ||
text-decoration: none; | ||
} | ||
|
||
.btn:focus { | ||
outline: 0; | ||
} | ||
|
||
.btn.disabled { | ||
color: $disabled-color; | ||
background-color: #f8f8f8; | ||
border-color: #e9ecef; | ||
opacity: 0.65; | ||
} | ||
|
||
iframe { | ||
box-sizing: border-box; | ||
border: none; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@import "./style"; | ||
@use "./example"; | ||
@import "../style/index-dark"; | ||
@include example.style-common($background-color, $text-color, $component-background, $disabled-color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,3 @@ | ||
@use "./example"; | ||
@import "../style/index-light"; | ||
|
||
body { | ||
font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
height: 100%; | ||
margin: 0; | ||
background: $background-color; | ||
color: $text-color; | ||
} | ||
|
||
.dock-tabpane > div { | ||
padding: 20px; | ||
} | ||
|
||
.top-panel { | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 20px; | ||
} | ||
|
||
.btn { | ||
display: inline-block; | ||
margin: 5px; | ||
font-weight: 400; | ||
text-align: center; | ||
vertical-align: middle; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
color: #212529; | ||
background-color: $component-background; | ||
border: 1px solid #e9ecef; | ||
padding: 3px 10px; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
border-radius: 0.25rem; | ||
cursor: pointer; | ||
} | ||
|
||
|
||
.btn:hover { | ||
color: #000; | ||
background-color: #f8f8f8; | ||
border-color: #cbd3da; | ||
text-decoration: none; | ||
} | ||
|
||
.btn:focus { | ||
outline: 0; | ||
} | ||
|
||
.btn.disabled { | ||
color: $disabled-color; | ||
background-color: #f8f8f8; | ||
border-color: #e9ecef; | ||
opacity: 0.65; | ||
} | ||
|
||
iframe { | ||
box-sizing: border-box; | ||
border: none; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
@include example.style-common($background-color, $text-color, $component-background, $disabled-color); |