update site for primary-color change

This commit is contained in:
afc163 2016-11-13 18:58:02 +08:00
parent ca9ed27445
commit 42b4df295c
14 changed files with 45 additions and 43 deletions

View File

@ -40,7 +40,7 @@
.color-block {
position: relative;
width: 60px;
border-radius: 6px;
border-radius: @border-radius-base;
height: 28px;
display: inline-block;
vertical-align: middle;

View File

@ -27,7 +27,7 @@ a {
background: #fff;
width: 92%;
margin: 0 auto;
border-radius: 6px;
border-radius: @border-radius-base;
overflow: hidden;
padding: 24px 0 0;
margin-bottom: 24px;

View File

@ -24,7 +24,7 @@
.code-box {
border: 1px solid #E9E9E9;
border-radius: 6px;
border-radius: @border-radius-base;
display: inline-block;
width: 100%;
position: relative;
@ -105,7 +105,7 @@ section.code-box-meta p {
padding: 1px 8px;
margin-left: -8px;
color: #777;
border-radius: 6px;
border-radius: @border-radius-base;
border-top-left-radius: 0;
background: #fff;
transition: background-color 0.4s ease;
@ -143,7 +143,7 @@ section.code-box-meta p {
}
.code-box.expand .collapse {
color: shade(#2db7f5, 20%);
color: shade(@primary-color, 20%);
transform: rotate(-180deg);
}

View File

@ -84,7 +84,7 @@
border-bottom-width: 3px;
&.ant-menu-item-selected a {
color: #2db7f5;
color: @primary-color;
font-weight: bold;
}
}

View File

@ -11,7 +11,7 @@ pre code {
line-height: 1.7;
border: 1px solid #e9e9e9;
padding: 10px 15px;
border-radius: 6px;
border-radius: @border-radius-base;
font-size: 13px;
white-space: pre;
font-family: "Lucida Console", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;

View File

@ -10,7 +10,7 @@
width: 6px;
height: 6px;
background: #00AAEE;
border-radius: 6px;
border-radius: @border-radius-base;
float: left;
margin: 4px auto;
opacity: 0.5;
@ -70,9 +70,9 @@
display: inline-block;
height: 40px;
padding: 0 16px;
border-radius: 6px;
border: 1px solid #2db7f5;
color: #2db7f5;
border-radius: @border-radius-base;
border: 1px solid @primary-color;
color: @primary-color;
font-size: 15px;
background: transparent;
transition: box-shadow .45s ease-out;
@ -81,7 +81,7 @@
margin-left: 8px;
}
> a:hover {
box-shadow: 0 0 10px #2db7f5;
box-shadow: 0 0 10px @primary-color;
}
}

View File

@ -0,0 +1,18 @@
@import '../../../components/style/themes/default.less';
@import './common';
@import './header';
@import './footer';
@import './home';
@import './page-nav';
@import './markdown';
@import './resource';
@import './responsive';
@import './preview-img';
@import './toc';
@import './not-found';
@import './highlight';
@import './demo';
@import './colors';
@import './mock-browser';
@import './new-version-info-modal';
@import './motion';

View File

@ -98,7 +98,7 @@
}
.markdown pre {
border-radius: 6px;
border-radius: @border-radius-base;
background: #f7f7f7;
font-family: "Lucida Console", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}
@ -177,7 +177,7 @@
color: #999;
&:hover {
color: #2db7f5;
color: @primary-color;
}
}

View File

@ -23,7 +23,7 @@
}
h1 {
color: #2DB7F5;
color: @primary-color;
font-size: 120px;
font-weight: 500;
}

View File

@ -4,7 +4,7 @@
}
#nprogress .bar {
background: #2db7f5;
background: @primary-color;
position: fixed;
z-index: 1031;
top: 0;
@ -21,7 +21,7 @@
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #2db7f5, 0 0 5px #2db7f5;
box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color;
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);
}
@ -40,8 +40,8 @@
height: 18px;
box-sizing: border-box;
border: solid 2px transparent;
border-top-color: #2db7f5;
border-left-color: #2db7f5;
border-top-color: @primary-color;
border-left-color: @primary-color;
border-radius: 50%;
animation: nprogress-spinner 400ms linear infinite;
}

View File

@ -52,7 +52,7 @@
content: '';
width: 100%;
height: 3px;
background: #2db7f5;
background: @primary-color;
display: block;
position: absolute;
bottom: 0;
@ -95,7 +95,7 @@
transition: all 0.3s ease;
background: #fff;
padding: 12px;
border-radius: 6px;
border-radius: @border-radius-base;
&.no-padding {
padding: 0;
background: none;

View File

@ -8,7 +8,7 @@
min-width: 300px;;
height: 130px;
border: 1px solid #e9e9e9;
border-radius: 6px;
border-radius: @border-radius-base;
font-size: 12px;
color: #777;
display: inline-block;
@ -25,7 +25,7 @@
}
.resource-card:hover .resource-card-title {
color: #2db7f5;
color: @primary-color;
}
.resource-card.disabled {

View File

@ -1,17 +1 @@
import './common.less';
import './header.less';
import './footer.less';
import './home.less';
import './page-nav.less';
import './markdown.less';
import './resource.less';
import './responsive.less';
import './preview-img.less';
import './toc.less';
import './not-found.less';
import './highlight.less';
import './demo.less';
import './colors.less';
import './mock-browser.less';
import './new-version-info-modal.less';
import './motion.less';
import './index.less';

View File

@ -33,12 +33,12 @@
}
.toc a:hover {
color: #2db7f5;
color: @primary-color;
}
.toc a.current {
border-color: #2db7f5;
color: #2db7f5;
border-color: @primary-color;
color: @primary-color;
}
.toc-affix {