|
|
@@ -22,7 +22,7 @@
|
|
|
<div class="doc-footer-item">JDW智能构建平台</div>
|
|
|
</div>
|
|
|
<div class="doc-footer-list" @click.stop="data.isShowSelect = !data.isShowSelect">
|
|
|
- <div class="doc-footer-select-hd"><i class=""></i>主题换肤</div>
|
|
|
+ <div class="doc-footer-select-hd"><i class="icon-color"></i>主题换肤</div>
|
|
|
<div class="doc-footer-select-bd" v-show="data.isShowSelect">
|
|
|
<div
|
|
|
class="doc-footer-select-item"
|
|
|
@@ -31,7 +31,7 @@
|
|
|
@click.stop="checkTheme(index)"
|
|
|
:class="{ active: data.activeIndex === index }"
|
|
|
>
|
|
|
- {{ item.name }}
|
|
|
+ <i :class="`circle-${item.color}`"></i>{{ item.name }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -45,16 +45,19 @@ export default defineComponent({
|
|
|
name: 'doc-footer',
|
|
|
setup() {
|
|
|
const data = reactive({
|
|
|
- theme: 'black',
|
|
|
+ theme: 'red',
|
|
|
themeList: [
|
|
|
{
|
|
|
- name: '热情红'
|
|
|
+ name: '热情红',
|
|
|
+ color: 'red'
|
|
|
},
|
|
|
{
|
|
|
- name: '暗黑风'
|
|
|
+ name: '暗黑风',
|
|
|
+ color: 'black'
|
|
|
},
|
|
|
{
|
|
|
- name: '纯净白'
|
|
|
+ name: '纯净白',
|
|
|
+ color: 'white'
|
|
|
}
|
|
|
],
|
|
|
activeIndex: 0,
|
|
|
@@ -115,33 +118,52 @@ export default defineComponent({
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
&-select-hd {
|
|
|
- width: 110px;
|
|
|
+ width: 92px;
|
|
|
height: 32px;
|
|
|
- padding: 0 12px;
|
|
|
- line-height: 30px;
|
|
|
- font-size: 14px;
|
|
|
+ padding: 0 10px;
|
|
|
+ line-height: 32px;
|
|
|
+ font-size: 12px;
|
|
|
+ text-align: left;
|
|
|
border-width: 1px;
|
|
|
border-style: solid;
|
|
|
border-radius: 2px;
|
|
|
cursor: pointer;
|
|
|
- &:hover {
|
|
|
- }
|
|
|
}
|
|
|
&-select-bd {
|
|
|
position: absolute;
|
|
|
border-radius: 2px;
|
|
|
+ text-align: left;
|
|
|
}
|
|
|
&-select-item {
|
|
|
- width: 110px;
|
|
|
+ width: 92px;
|
|
|
height: 32px;
|
|
|
- padding: 0 12px;
|
|
|
- line-height: 30px;
|
|
|
- font-size: 14px;
|
|
|
+ padding: 0 10px;
|
|
|
+ line-height: 32px;
|
|
|
+ font-size: 12px;
|
|
|
border-width: 0px 1px 1px;
|
|
|
border-style: solid;
|
|
|
border-radius: 2px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .icon-color {
|
|
|
+ display: inline-block;
|
|
|
+ width: 12px;
|
|
|
+ height: 10px;
|
|
|
+ margin-right: 10px;
|
|
|
+ background: url('../../assets/images/icon-color.png') no-repeat center/100%;
|
|
|
+ }
|
|
|
+ .circle-red,
|
|
|
+ .circle-black,
|
|
|
+ .circle-white {
|
|
|
+ position: relative;
|
|
|
+ top: -1px;
|
|
|
+ display: inline-block;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ margin-right: 10px;
|
|
|
+ border-radius: 50%;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// 颜色
|
|
|
@@ -162,26 +184,103 @@ export default defineComponent({
|
|
|
}
|
|
|
&-select-hd {
|
|
|
color: $theme-black-footer-word2;
|
|
|
- background: rgba(29, 29, 33, 1);
|
|
|
- border-color: $theme-black-border;
|
|
|
+ // background: rgba(29, 29, 33, 1);
|
|
|
+ border-color: $theme-black-theme-border;
|
|
|
&:hover {
|
|
|
- border-color: $theme-black-footer-hover;
|
|
|
+ color: $theme-black-footer-hover;
|
|
|
}
|
|
|
}
|
|
|
&-select-item {
|
|
|
color: $theme-black-footer-word2;
|
|
|
- background: rgba(29, 29, 33, 1);
|
|
|
- border-color: $theme-black-border;
|
|
|
- // &:first-of-type {
|
|
|
- // border-top: none;
|
|
|
- // }
|
|
|
+ // background: rgba(29, 29, 33, 1);
|
|
|
+ border-color: $theme-black-theme-border;
|
|
|
+ .circle-red {
|
|
|
+ background: $theme-red-gradient;
|
|
|
+ }
|
|
|
+ .circle-black {
|
|
|
+ background: $theme-black-circle;
|
|
|
+ border: 1px solid $theme-black-theme-border;
|
|
|
+ }
|
|
|
+ .circle-white {
|
|
|
+ background: $theme-white-circle;
|
|
|
+ }
|
|
|
&:hover {
|
|
|
- // color: $theme-black-footer-hover;
|
|
|
- // border-color: $theme-black-footer-hover;
|
|
|
+ background-color: $theme-black-theme-border;
|
|
|
+ .circle-black {
|
|
|
+ border-color: $theme-black-circle;
|
|
|
+ }
|
|
|
}
|
|
|
&.active {
|
|
|
- border-color: $theme-black-footer-hover;
|
|
|
background-color: $theme-black-footer-hover;
|
|
|
+ border-color: $theme-black-footer-hover;
|
|
|
+ .circle-red {
|
|
|
+ border: 1px solid $theme-red-border;
|
|
|
+ }
|
|
|
+ .circle-black {
|
|
|
+ border-color: $theme-black-footer-bg;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 白色、红色
|
|
|
+ &-white,
|
|
|
+ &-red {
|
|
|
+ background: $theme-white-footer-bg;
|
|
|
+ border-top: 1px solid $theme-white-footer-border;
|
|
|
+ .doc-footer {
|
|
|
+ &-title {
|
|
|
+ color: $theme-white-footer-word1;
|
|
|
+ }
|
|
|
+ &-item {
|
|
|
+ color: $theme-white-footer-word2;
|
|
|
+ }
|
|
|
+ &-desc {
|
|
|
+ color: $theme-white-footer-word4;
|
|
|
+ }
|
|
|
+ &-select-hd {
|
|
|
+ color: $theme-white-footer-word2;
|
|
|
+ // background: rgba(29, 29, 33, 1);
|
|
|
+ border-color: $theme-white-theme-border;
|
|
|
+ &:hover {
|
|
|
+ color: $theme-white-footer-hover;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &-select-item {
|
|
|
+ color: $theme-white-footer-word2;
|
|
|
+ // background: rgba(29, 29, 33, 1);
|
|
|
+ border-color: $theme-white-theme-border;
|
|
|
+ .circle-red {
|
|
|
+ background: $theme-red-gradient;
|
|
|
+ }
|
|
|
+ .circle-black {
|
|
|
+ background: $theme-black-circle;
|
|
|
+ border: 1px solid $theme-black-circle;
|
|
|
+ }
|
|
|
+ .circle-white {
|
|
|
+ background: $theme-white-circle;
|
|
|
+ border: 1px solid $theme-white-circle-border;
|
|
|
+ }
|
|
|
+ &:hover {
|
|
|
+ color: $theme-white-footer-word3;
|
|
|
+ background-color: $theme-white-theme-border;
|
|
|
+ .circle-black {
|
|
|
+ border-color: $theme-black-circle;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &.active {
|
|
|
+ color: $theme-white;
|
|
|
+ background-color: $theme-white-footer-hover;
|
|
|
+ border-color: $theme-white-footer-hover;
|
|
|
+ .circle-red {
|
|
|
+ border: 1px solid $theme-red-border;
|
|
|
+ }
|
|
|
+ .circle-black {
|
|
|
+ border-color: $theme-black-circle;
|
|
|
+ }
|
|
|
+ .circle-white {
|
|
|
+ border-color: $theme-white-circle;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|