Skip to content

Commit

Permalink
Merge pull request #231 from slavamuravey/fix-dark-theme-example
Browse files Browse the repository at this point in the history
Fix dark theme example
  • Loading branch information
slavamuravey authored Aug 2, 2024
2 parents 22d2236 + 41a1d6f commit 0caa6e3
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 63 deletions.
62 changes: 62 additions & 0 deletions example/style-common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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%;
}
2 changes: 1 addition & 1 deletion example/style-dark.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import "./style";
@import "../style/index-dark";
@import "./style-common";
63 changes: 1 addition & 62 deletions example/style.scss
Original file line number Diff line number Diff line change
@@ -1,65 +1,4 @@
@import "../style/index-light";
@import "./style-common";

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%;
}

0 comments on commit 0caa6e3

Please sign in to comment.