Skip to content

Commit

Permalink
site: improve style of component demo toc
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 19, 2017
1 parent df0426b commit e90189d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
5 changes: 2 additions & 3 deletions site/theme/static/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ a {

.main-wrapper {
background: #fff;
width: 92%;
margin: 0 auto;
margin: 0 48px;
border-radius: @border-radius-base;
padding: 24px 0 0;
margin-bottom: 24px;
position: relative;
}

div.main-container {
padding: 0 6% 120px 4%;
padding: 0 130px 120px 40px;
margin-left: -1px;
background: #fff;
min-height: 500px;
Expand Down
10 changes: 1 addition & 9 deletions site/theme/static/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,9 @@
transition: all 0.2s ease;
}

.code-box:hover {
box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
border-color: transparent;
position: relative;
z-index: 10;
background: #fff;
}

.code-box:target {
border: 1px solid fade(@primary-color, 70%);
box-shadow: 0 0 4px fade(@primary-color, 50%);
z-index: 10;
}

.code-box {
Expand Down
7 changes: 2 additions & 5 deletions site/theme/static/responsive.less
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@
}

.main-container {
padding-left: 30px;
padding-right: 30px;
margin-left: 0;
> .markdown > * {
width: 100%!important;
Expand All @@ -177,11 +179,6 @@
border-radius: 0;
}

.main-container {
padding-left: 30px;
padding-right: 30px;
}

footer {
text-align: center;
}
Expand Down
10 changes: 3 additions & 7 deletions site/theme/static/toc.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.toc {
font-size: 14px;
margin: 24px 0;
background: #fbfbfb;
border-left: 2px solid #eee;
border-left: 1px solid #e9e9e9;
list-style: none;
}

Expand All @@ -23,8 +22,6 @@

.toc a {
padding-left: 16px;
border-left: 2px solid #eee;
margin-left: -2px;
display: block;
transition: all 0.3s ease;
white-space: nowrap;
Expand All @@ -49,15 +46,14 @@

.demos-anchor {
color: #aaa;
background: #fff;
font-size: 12px;
margin-top: 0;
margin-top: -4px;
a {
padding-left: 8px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 90px;
max-width: 110px;
}
}

0 comments on commit e90189d

Please sign in to comment.