feat(style): add scss variables (#291)

This commit is contained in:
Fine0830
2023-06-28 15:46:27 +08:00
committed by GitHub
parent 63db3fbc2e
commit 9ac1265e7f
85 changed files with 308 additions and 266 deletions

View File

@@ -137,7 +137,7 @@ limitations under the License. -->
</script>
<style lang="scss" scoped>
.title {
font-size: 12px;
font-size: $font-size-smaller;
font-weight: bold;
}
@@ -163,7 +163,7 @@ limitations under the License. -->
.link {
cursor: pointer;
color: #409eff;
color: $active-color;
text-decoration: underline;
}
</style>

View File

@@ -221,12 +221,12 @@ limitations under the License. -->
height: 100px;
&:focus {
border-color: #409eff;
border-color: $active-color;
}
}
.item-title {
margin-bottom: 5px;
font-size: 14px;
font-size: $font-size-normal;
}
</style>

View File

@@ -353,7 +353,7 @@ limitations under the License. -->
width: 30%;
border-style: unset;
outline: 0;
border: 1px solid #ccc;
border: 1px solid $disabled-color;
height: 30px;
padding: 0 5px;
}
@@ -371,9 +371,9 @@ limitations under the License. -->
padding: 0 3px;
border-radius: 3px;
overflow: hidden;
color: #3d444f;
color: $font-color;
border: 1px dashed #aaa;
font-size: 12px;
font-size: $font-size-smaller;
margin: 0 2px;
}

View File

@@ -52,7 +52,7 @@ limitations under the License. -->
.schedules {
height: 90px;
border-bottom: 1px solid #ccc;
border-bottom: 1px solid $disabled-color;
padding-right: 10px;
}
</style>

View File

@@ -89,7 +89,7 @@ limitations under the License. -->
<style lang="scss" scoped>
.header {
padding: 5px 20px 5px 10px;
font-size: 12px;
font-size: $font-size-smaller;
border-bottom: 1px solid #dcdfe6;
justify-content: space-between;
}

View File

@@ -140,12 +140,12 @@ limitations under the License. -->
}
.date {
font-size: 12px;
font-size: $font-size-smaller;
}
.label {
margin-top: 10px;
font-size: 14px;
font-size: $font-size-normal;
}
.profile-input {

View File

@@ -80,7 +80,7 @@ limitations under the License. -->
width: 300px;
height: calc(100% - 10px);
overflow: auto;
border-right: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgb(0 0 0 / 10%);
}
.item span {
@@ -89,7 +89,7 @@ limitations under the License. -->
.profile-td {
padding: 5px 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgb(0 0 0 / 7%);
&.selected {
background-color: #ededed;
@@ -117,23 +117,23 @@ limitations under the License. -->
.profile-tr {
&:hover {
background-color: rgba(0, 0, 0, 0.04);
background-color: rgb(0 0 0 / 4%);
}
}
.profile-t-tool {
padding: 5px 10px;
font-weight: bold;
border-right: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-right: 1px solid rgb(0 0 0 / 7%);
border-bottom: 1px solid rgb(0 0 0 / 7%);
background: #f3f4f9;
}
.profile-btn {
color: #3d444f;
color: $font-color;
padding: 1px 3px;
border-radius: 2px;
font-size: 12px;
font-size: $font-size-smaller;
float: right;
}
</style>

View File

@@ -226,9 +226,9 @@ limitations under the License. -->
padding: 0 3px;
border-radius: 3px;
overflow: hidden;
color: #3d444f;
color: $font-color;
border: 1px dashed #aaa;
font-size: 12px;
font-size: $font-size-smaller;
margin: 0 2px;
}
</style>

View File

@@ -397,7 +397,7 @@ limitations under the License. -->
width: 30%;
border-style: unset;
outline: 0;
border: 1px solid #ccc;
border: 1px solid $disabled-color;
height: 30px;
padding: 0 5px;
}
@@ -415,9 +415,9 @@ limitations under the License. -->
padding: 0 3px;
border-radius: 3px;
overflow: hidden;
color: #3d444f;
color: $font-color;
border: 1px dashed #aaa;
font-size: 12px;
font-size: $font-size-smaller;
margin: 0 2px;
}

View File

@@ -72,7 +72,7 @@ limitations under the License. -->
</script>
<style lang="scss" scoped>
.log {
font-size: 12px;
font-size: $font-size-smaller;
height: 100%;
border-bottom: 1px solid #eee;
width: 100%;
@@ -84,7 +84,7 @@ limitations under the License. -->
user-select: none;
border-left: 0;
border-right: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgb(0 0 0 / 10%);
.traceId {
width: 390px;

View File

@@ -72,7 +72,7 @@ limitations under the License. -->
min-height: 500px;
border: none;
outline: none;
color: #3d444f;
color: $font-color;
overflow: auto;
}
</style>

View File

@@ -66,12 +66,12 @@ limitations under the License. -->
</script>
<style lang="scss" scoped>
.date {
font-size: 12px;
font-size: $font-size-smaller;
}
.label {
margin-top: 10px;
font-size: 14px;
font-size: $font-size-normal;
}
.profile-input {

View File

@@ -523,7 +523,7 @@ limitations under the License. -->
.switch-icon-edit {
cursor: pointer;
transition: all 0.5ms linear;
border: 1px solid #ccc;
border: 1px solid $disabled-color;
color: #666;
display: inline-block;
padding: 5px;
@@ -570,6 +570,6 @@ limitations under the License. -->
padding: 5px;
border: 1px solid #000;
border-radius: 3px;
background-color: #fff;
background-color: $theme-background;
}
</style>

View File

@@ -66,7 +66,7 @@ limitations under the License. -->
</script>
<style lang="scss" scoped>
.label {
font-size: 12px;
font-size: $font-size-smaller;
margin-top: 10px;
}

View File

@@ -141,7 +141,7 @@ limitations under the License. -->
.switch-icon-edit {
cursor: pointer;
transition: all 0.5ms linear;
border: 1px solid #ccc;
border: 1px solid $disabled-color;
color: #666;
display: inline-block;
padding: 5px;

View File

@@ -118,7 +118,7 @@ limitations under the License. -->
<style lang="scss" scoped>
.header {
padding: 10px;
font-size: 12px;
font-size: $font-size-smaller;
border-bottom: 1px solid #dcdfe6;
}

View File

@@ -163,12 +163,12 @@ limitations under the License. -->
}
.date {
font-size: 12px;
font-size: $font-size-smaller;
}
.label {
margin-top: 10px;
font-size: 14px;
font-size: $font-size-normal;
}
.profile-input {

View File

@@ -82,7 +82,7 @@ limitations under the License. -->
.profile-t-wrapper {
overflow: auto;
flex-grow: 1;
border-right: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgb(0 0 0 / 10%);
}
.profile-t-loading {
@@ -110,13 +110,13 @@ limitations under the License. -->
.profile-tr {
&:hover {
background-color: rgba(0, 0, 0, 0.04);
background-color: rgb(0 0 0 / 4%);
}
}
.profile-td {
padding: 5px 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgb(0 0 0 / 7%);
&.selected {
background-color: #ededed;
@@ -126,8 +126,8 @@ limitations under the License. -->
.profile-t-tool {
padding: 5px 10px;
font-weight: bold;
border-right: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-right: 1px solid rgb(0 0 0 / 7%);
border-bottom: 1px solid rgb(0 0 0 / 7%);
background: #f3f4f9;
}
@@ -136,14 +136,14 @@ limitations under the License. -->
}
.profile-btn {
color: #3d444f;
color: $font-color;
padding: 1px 3px;
border-radius: 2px;
font-size: 12px;
font-size: $font-size-smaller;
}
}
.profile-segment {
border-top: 1px solid rgba(0, 0, 0, 0.07);
border-top: 1px solid rgb(0 0 0 / 7%);
}
</style>

View File

@@ -75,19 +75,19 @@ limitations under the License. -->
}
</script>
<style lang="scss" scoped>
@import "./profile.scss";
@import url("./profile.scss");
.dragger {
float: right;
}
.profile {
font-size: 12px;
font-size: $font-size-smaller;
height: 100%;
.profile-set-btn {
font-size: 12px;
border: 1px solid #ccc;
font-size: $font-size-smaller;
border: 1px solid $disabled-color;
border-radius: 3px;
text-align: center;
width: 57px;
@@ -107,7 +107,7 @@ limitations under the License. -->
user-select: none;
border-left: 0;
border-right: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgb(0 0 0 / 10%);
}
.profile-header div {

View File

@@ -168,7 +168,7 @@ limitations under the License. -->
.profile-td {
padding: 5px 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgb(0 0 0 / 7%);
&.selected {
background-color: #ededed;
@@ -183,7 +183,7 @@ limitations under the License. -->
.profile-t-wrapper {
overflow: auto;
flex-grow: 1;
border-right: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgb(0 0 0 / 10%);
}
.profile-t {
@@ -196,19 +196,19 @@ limitations under the License. -->
.profile-tr {
&:hover {
background-color: rgba(0, 0, 0, 0.04);
background-color: rgb(0 0 0 / 4%);
}
}
.profile-segment {
border-top: 1px solid rgba(0, 0, 0, 0.07);
border-top: 1px solid rgb(0 0 0 / 7%);
}
.profile-t-tool {
padding: 5px 10px;
font-weight: bold;
border-right: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
border-right: 1px solid rgb(0 0 0 / 7%);
border-bottom: 1px solid rgb(0 0 0 / 7%);
background: #f3f4f9;
}
@@ -217,10 +217,10 @@ limitations under the License. -->
}
.profile-btn {
color: #3d444f;
color: $font-color;
padding: 1px 3px;
border-radius: 2px;
font-size: 12px;
font-size: $font-size-smaller;
float: right;
}
</style>

View File

@@ -77,7 +77,7 @@ limitations under the License. -->
.schedules {
height: 90px;
border-bottom: 1px solid #ccc;
border-bottom: 1px solid $disabled-color;
padding-right: 10px;
}
</style>

View File

@@ -20,7 +20,7 @@ limitations under the License. -->
element-loading-background="rgba(0, 0, 0, 0)"
:style="`height: ${height}px`"
>
<svg class="svg-topology" :width="width - 100" :height="height" style="background-color: #fff" @click="svgEvent">
<svg class="svg-topology" :width="width - 100" :height="height" @click="svgEvent">
<g class="svg-graph" :transform="`translate(${diff[0]}, ${diff[1]})`">
<g
class="topo-node"
@@ -631,6 +631,7 @@ limitations under the License. -->
.svg-topology {
cursor: move;
background-color: $theme-background;
}
.legend {
@@ -665,9 +666,9 @@ limitations under the License. -->
overflow: auto;
padding: 0 15px;
border-radius: 3px;
color: #ccc;
border: 1px solid #ccc;
background-color: #fff;
color: $disabled-color;
border: 1px solid $disabled-color;
background-color: $theme-background;
box-shadow: #eee 1px 2px 10px;
transition: all 0.5ms linear;
@@ -686,7 +687,7 @@ limitations under the License. -->
position: absolute;
color: #333;
cursor: pointer;
background-color: #fff;
background-color: $theme-background;
border-radius: 5px;
padding: 10px 0;
border: 1px solid #999;
@@ -701,7 +702,7 @@ limitations under the License. -->
}
span:hover {
color: #409eff;
color: $active-color;
background-color: #eee;
}
}
@@ -715,8 +716,8 @@ limitations under the License. -->
.switch-icon {
cursor: pointer;
transition: all 0.5ms linear;
background: rgba(0, 0, 0, 0.3);
color: #fff;
background: rgb(0 0 0 / 30%);
color: $text-color;
display: inline-block;
padding: 2px 4px;
border-radius: 3px;
@@ -736,7 +737,7 @@ limitations under the License. -->
}
.topo-text {
font-family: "Lato", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
font-family: Lato, "Source Han Sans CN", "Microsoft YaHei", sans-serif;
fill: #ddd;
font-size: 11px;
opacity: 0.8;
@@ -762,6 +763,6 @@ limitations under the License. -->
padding: 5px;
border: 1px solid #000;
border-radius: 3px;
background-color: #fff;
background-color: $theme-background;
}
</style>

View File

@@ -149,7 +149,7 @@ limitations under the License. -->
.label {
width: 150px;
display: inline-block;
font-size: 12px;
font-size: $font-size-smaller;
}
.close {

View File

@@ -279,7 +279,7 @@ limitations under the License. -->
overflow: auto;
padding: 10px 15px;
border-radius: 3px;
color: #ccc;
color: $disabled-color;
transition: all 0.5ms linear;
z-index: 99;
text-align: left;
@@ -306,7 +306,7 @@ limitations under the License. -->
}
.label {
color: #ccc;
color: $disabled-color;
display: inline-block;
margin-right: 5px;
}
@@ -316,7 +316,7 @@ limitations under the License. -->
padding: 10px 0;
color: #333;
cursor: pointer;
background-color: #fff;
background-color: $theme-background;
border-radius: 3px;
span {
@@ -329,7 +329,7 @@ limitations under the License. -->
}
span:hover {
color: #409eff;
color: $active-color;
background-color: #eee;
}

View File

@@ -458,7 +458,7 @@ limitations under the License. -->
}
.label {
font-size: 12px;
font-size: $font-size-smaller;
margin-top: 10px;
}

View File

@@ -171,20 +171,20 @@ limitations under the License. -->
}
.trace-detail-wrapper {
font-size: 12px;
font-size: $font-size-smaller;
padding: 5px 10px;
border-bottom: 1px solid #eee;
width: 100%;
height: 95px;
.grey {
color: #fff;
color: $text-color;
background-color: #448dfe;
}
.ghost {
cursor: pointer;
background: rgba(0, 0, 0, 0.3);
background: rgb(0 0 0 / 30%);
}
}
@@ -193,7 +193,7 @@ limitations under the License. -->
}
.trace-detail-ids {
background-color: rgba(0, 0, 0, 0);
background-color: rgb(0 0 0 / 0%);
outline: 0;
border-style: unset;
color: inherit;
@@ -209,7 +209,7 @@ limitations under the License. -->
.tag {
display: inline-block;
border-radius: 4px;
padding: 0px 7px;
padding: 0 7px;
background-color: #40454e;
color: #eee;
}

View File

@@ -43,14 +43,14 @@ limitations under the License. -->
.trace-wrapper {
width: 100%;
height: 100%;
font-size: 12px;
font-size: $font-size-smaller;
position: relative;
overflow: auto;
}
.header {
padding: 10px;
font-size: 12px;
font-size: $font-size-smaller;
border-bottom: 1px solid #dcdfe6;
min-width: 1200px;
}

View File

@@ -245,7 +245,7 @@ limitations under the License. -->
}
.popup-btn {
color: #fff;
color: $text-color;
margin-top: 40px;
width: 100%;
text-align: center;

View File

@@ -147,10 +147,10 @@ limitations under the License. -->
}
</script>
<style lang="scss" scoped>
@import "./table.scss";
@import url("./table.scss");
.trace {
font-size: 12px;
font-size: $font-size-smaller;
height: 100%;
overflow: auto;
width: 100%;
@@ -165,7 +165,7 @@ limitations under the License. -->
user-select: none;
border-left: 0;
border-right: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgb(0 0 0 / 10%);
}
.trace-header div {

View File

@@ -252,7 +252,7 @@ limitations under the License. -->
});
</script>
<style lang="scss" scoped>
@import "./table.scss";
@import url("./table.scss");
.event-tag {
width: 12px;
@@ -267,7 +267,7 @@ limitations under the License. -->
color: #448dfe;
&:hover {
background: rgba(0, 0, 0, 0.04);
background: rgb(0 0 0 / 4%);
}
}
@@ -276,7 +276,7 @@ limitations under the License. -->
position: relative;
}
.profiled:before {
.profiled::before {
content: attr(data-text);
position: absolute;
top: 30px;
@@ -284,26 +284,26 @@ limitations under the License. -->
width: 100px;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
border: 1px solid $disabled-color;
background-color: #333;
color: #fff;
color: $text-color;
text-align: center;
box-shadow: #eee 1px 2px 10px;
display: none;
}
.profiled:after {
.profiled::after {
content: "";
position: absolute;
left: 250px;
top: 20px;
border: 6px solid #333;
border-color: transparent transparent #333 transparent;
border-color: transparent transparent #333;
display: none;
}
.profiled:hover:before,
.profiled:hover:after {
.profiled:hover::before,
.profiled:hover::after {
display: block;
z-index: 999;
}
@@ -320,11 +320,11 @@ limitations under the License. -->
}
.trace-item.selected {
background: rgba(0, 0, 0, 0.04);
background: rgb(0 0 0 / 4%);
}
.trace-item:not(.level0):hover {
background: rgba(0, 0, 0, 0.04);
background: rgb(0 0 0 / 4%);
}
.trace-item > div {
@@ -351,7 +351,7 @@ limitations under the License. -->
width: 100%;
height: 6px;
border-radius: 3px;
background: rgb(63, 177, 227);
background: rgb(63 177 227);
position: relative;
margin-top: 11px;
border: none;
@@ -359,7 +359,7 @@ limitations under the License. -->
.inner-progress_bar {
position: absolute;
background: rgb(110, 64, 170);
background: rgb(110 64 170);
height: 4px;
border-radius: 2px;
left: 0;