Commit 3cb9ed88 by qinjianhui

feat: 支持切换颜色

parent cc81912b
...@@ -61,8 +61,6 @@ export default { ...@@ -61,8 +61,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$primary-color: #e28e39;
.home-page-footer { .home-page-footer {
background-color: #323232; background-color: #323232;
color: #fff; color: #fff;
...@@ -93,7 +91,7 @@ $primary-color: #e28e39; ...@@ -93,7 +91,7 @@ $primary-color: #e28e39;
margin-right: 100px; margin-right: 100px;
&.active .footer-link { &.active .footer-link {
color: $primary-color; color: var(--primary-color);
} }
} }
......
...@@ -78,8 +78,6 @@ export default { ...@@ -78,8 +78,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$primary-color: #e28e39;
.home-page-header { .home-page-header {
width: 100%; width: 100%;
height: 70px; height: 70px;
...@@ -126,7 +124,7 @@ $primary-color: #e28e39; ...@@ -126,7 +124,7 @@ $primary-color: #e28e39;
width: 50%; width: 50%;
transform: scaleX($x); transform: scaleX($x);
height: 4px; height: 4px;
background-color: $primary-color; background-color: var(--primary-color);
position: absolute; position: absolute;
top: 0; top: 0;
transition: transform 0.3s; transition: transform 0.3s;
...@@ -164,7 +162,7 @@ $primary-color: #e28e39; ...@@ -164,7 +162,7 @@ $primary-color: #e28e39;
&.active { &.active {
& > .header-nav-title { & > .header-nav-title {
@include header-nav-item-active(1); @include header-nav-item-active(1);
color: $primary-color; color: var(--primary-color);
} }
} }
...@@ -194,7 +192,7 @@ $primary-color: #e28e39; ...@@ -194,7 +192,7 @@ $primary-color: #e28e39;
list-style-type: none; list-style-type: none;
&.active { &.active {
color: $primary-color; color: var(--primary-color);
} }
} }
...@@ -206,7 +204,7 @@ $primary-color: #e28e39; ...@@ -206,7 +204,7 @@ $primary-color: #e28e39;
height: 100%; height: 100%;
&:hover { &:hover {
color: $primary-color; color: var(--primary-color);
} }
} }
......
$primary-color: #e28e39;
.text-center { .text-center {
text-align: center; text-align: center;
} }
...@@ -24,7 +22,7 @@ $primary-color: #e28e39; ...@@ -24,7 +22,7 @@ $primary-color: #e28e39;
display: block; display: block;
width: 2em; width: 2em;
height: 2px; height: 2px;
background-color: $primary-color; background-color: var(--primary-color);
} }
} }
...@@ -65,7 +63,7 @@ $primary-color: #e28e39; ...@@ -65,7 +63,7 @@ $primary-color: #e28e39;
width: 100%; width: 100%;
height: 100%; height: 100%;
transition: 0.3s; transition: 0.3s;
background-color: $primary-color; background-color: var(--primary-color);
z-index: 100; z-index: 100;
} }
......
@import './icon.scss'; @import './icon.scss';
@import './common.scss'; @import './common.scss';
:root {
--primary-color: #e28e39;
}
html, html,
body { body {
margin: 0; margin: 0;
......
...@@ -206,14 +206,14 @@ export default { ...@@ -206,14 +206,14 @@ export default {
.progress { .progress {
font-size: 38px; font-size: 38px;
font-weight: 500; font-weight: 500;
color: #e28e39; color: var(--primary-color);
padding-top: 30px; padding-top: 30px;
} }
.progress-line { .progress-line {
width: 70px; width: 70px;
height: 3px; height: 3px;
background: #f08917; background: var(--primary-color);
margin: 20px 0; margin: 20px 0;
} }
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
} }
.description { .description {
color: #e28e39; color: var(--primary-color);
font-weight: 500; font-weight: 500;
font-family: lantingzh; font-family: lantingzh;
line-height: 27px; line-height: 27px;
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
display: block; display: block;
width: 50px; width: 50px;
height: 2px; height: 2px;
background-color: #e28e39; background-color: var(--primary-color);
} }
} }
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
&.active { &.active {
color: #fff; color: #fff;
background-color: #e28e39; background-color: var(--primary-color);
} }
} }
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
position: relative; position: relative;
flex: 1; flex: 1;
color: #fff; color: #fff;
background-color: #e28e39; background-color: var(--primary-color);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
...@@ -139,8 +139,6 @@ export default { ...@@ -139,8 +139,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$primary-color: #e28e39;
.slides { .slides {
position: relative; position: relative;
} }
...@@ -236,7 +234,7 @@ $primary-color: #e28e39; ...@@ -236,7 +234,7 @@ $primary-color: #e28e39;
} }
.services-intro-text { .services-intro-text {
background-color: $primary-color; background-color: var(--primary-color);
color: #fff; color: #fff;
padding: 60px 30px 0 30px; padding: 60px 30px 0 30px;
......
...@@ -490,8 +490,8 @@ input::placeholder { ...@@ -490,8 +490,8 @@ input::placeholder {
} }
.recruitment-active { .recruitment-active {
color: #e28e39; color: var(--primary-color);
border-bottom: 1px solid #e28e39; border-bottom: 1px solid var(--primary-color);
} }
.recruitment, .recruitment,
.city { .city {
...@@ -505,8 +505,8 @@ input::placeholder { ...@@ -505,8 +505,8 @@ input::placeholder {
} }
.city-active { .city-active {
border-bottom: 1px solid #e28e39; border-bottom: 1px solid var(--primary-color);
color: #e28e39; color: var(--primary-color);
} }
.new-title { .new-title {
...@@ -562,13 +562,13 @@ input::placeholder { ...@@ -562,13 +562,13 @@ input::placeholder {
button, button,
a { a {
background-color: #efa958; background-color: var(--primary-color);
border: none; border: none;
outline: none; outline: none;
color: #fff; color: #fff;
padding: 12px 50px; padding: 12px 50px;
cursor: pointer; cursor: pointer;
box-shadow: 4px 4px 12px #efa958; box-shadow: 4px 4px 12px var(--primary-color);
text-decoration: none; text-decoration: none;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment