From 252ee95e747913b7d9771770a595aa523b724fd7 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Mon, 10 Jul 2017 11:44:04 +0800 Subject: [PATCH] Removed all unnecessary colons in stylus files. --- themes/vue/source/css/_animations.styl | 10 +- themes/vue/source/css/_common.styl | 16 +- themes/vue/source/css/_demo.styl | 6 +- themes/vue/source/css/_header.styl | 2 +- themes/vue/source/css/_migration.styl | 18 +-- themes/vue/source/css/_offline-menu.styl | 16 +- themes/vue/source/css/_sidebar.styl | 4 +- themes/vue/source/css/_syntax.styl | 22 +-- themes/vue/source/css/_team.styl | 182 +++++++++++------------ themes/vue/source/css/benchmark.styl | 4 +- themes/vue/source/css/index.styl | 2 +- themes/vue/source/css/page.styl | 26 ++-- themes/vue/source/css/search.styl | 10 +- 13 files changed, 159 insertions(+), 159 deletions(-) diff --git a/themes/vue/source/css/_animations.styl b/themes/vue/source/css/_animations.styl index 446d1ae7ae..2b4108aa0c 100644 --- a/themes/vue/source/css/_animations.styl +++ b/themes/vue/source/css/_animations.styl @@ -1,12 +1,12 @@ .rotating-clockwise - animation: 3s rotating-clockwise linear infinite + animation 3s rotating-clockwise linear infinite i.rotating-clockwise - display: inline-block - animation-duration: 2s + display inline-block + animation-duration 2s @keyframes rotating-clockwise from - transform: rotate(0) + transform rotate(0) to - transform: rotate(360deg) + transform rotate(360deg) diff --git a/themes/vue/source/css/_common.styl b/themes/vue/source/css/_common.styl index 6e41897f2f..176b3f2a60 100644 --- a/themes/vue/source/css/_common.styl +++ b/themes/vue/source/css/_common.styl @@ -10,11 +10,11 @@ body background-color white margin 0 &.docs - padding-top: $header-height + padding-top $header-height -@media screen and (max-width: 900px) +@media screen and (max-width 900px) body.docs - padding-top: 0 + padding-top 0 a text-decoration none @@ -174,19 +174,19 @@ a.button margin 0 display block > ul - padding-left: 0 + padding-left 0 &:first-child h4 margin-top 0 - padding-top: 0 - border-top: 0 + padding-top 0 + border-top 0 a, h4 padding 0 24px 0 20px h4 // text-transform uppercase margin .45em 0 0 - padding-top: .45em - border-top: 1px solid #eee + padding-top .45em + border-top 1px solid #eee a color lighten($dark, 10%) font-size .9em diff --git a/themes/vue/source/css/_demo.styl b/themes/vue/source/css/_demo.styl index f8af2694f8..32989ecb09 100644 --- a/themes/vue/source/css/_demo.styl +++ b/themes/vue/source/css/_demo.styl @@ -48,16 +48,16 @@ ul#demo, ul.demo li margin-left 1.5em -@media screen and (max-width: 900px) +@media screen and (max-width 900px) #demo, .demo margin-left 0 .benchmark-table - margin: 0 auto + margin 0 auto text-align center tbody > tr > th text-align right th, td - padding: 3px 7px + padding 3px 7px diff --git a/themes/vue/source/css/_header.styl b/themes/vue/source/css/_header.styl index 1b777d3f4e..57eec702f7 100644 --- a/themes/vue/source/css/_header.styl +++ b/themes/vue/source/css/_header.styl @@ -2,7 +2,7 @@ $header-height = 40px #header background-color #fff - height: $header-height + height $header-height padding $heading-padding-vertical 60px position relative z-index 2 diff --git a/themes/vue/source/css/_migration.styl b/themes/vue/source/css/_migration.styl index f96f4f5f28..3f7327ffe7 100644 --- a/themes/vue/source/css/_migration.styl +++ b/themes/vue/source/css/_migration.styl @@ -1,15 +1,15 @@ .content.guide[class*="migration"] h2, h3 > sup - margin-left: .3em - color: #b9465c + margin-left .3em + color #b9465c .upgrade-path - margin-top: 2em - padding: 2em - background: rgba(73, 195, 140, .1) - border-radius: 2px + margin-top 2em + padding 2em + background rgba(73, 195, 140, .1) + border-radius 2px > h4 - margin-top: 0 + margin-top 0 > p:last-child - margin-bottom: 0 - padding-bottom: 0 + margin-bottom 0 + padding-bottom 0 diff --git a/themes/vue/source/css/_offline-menu.styl b/themes/vue/source/css/_offline-menu.styl index 588335b1c5..fdeceed3eb 100644 --- a/themes/vue/source/css/_offline-menu.styl +++ b/themes/vue/source/css/_offline-menu.styl @@ -1,15 +1,15 @@ .content.menu - font-size: 1.2em + font-size 1.2em .menu-root - padding-left: 0 + padding-left 0 #search-form, .algolia-autocomplete, input - width: 100% + width 100% .aa-dropdown-menu - box-sizing: border-box + box-sizing border-box h3 - margin: 1.5em 0 .75em + margin 1.5em 0 .75em &:before, &:after - display: none + display none li - list-style-type: none - margin-top: .1em + list-style-type none + margin-top .1em diff --git a/themes/vue/source/css/_sidebar.styl b/themes/vue/source/css/_sidebar.styl index d51c34ee76..46616e96ee 100644 --- a/themes/vue/source/css/_sidebar.styl +++ b/themes/vue/source/css/_sidebar.styl @@ -85,9 +85,9 @@ .nav-dropdown h4 font-weight normal - margin: 0 + margin 0 -@media screen and (max-width: 900px) +@media screen and (max-width 900px) .sidebar position fixed z-index 8 diff --git a/themes/vue/source/css/_syntax.styl b/themes/vue/source/css/_syntax.styl index bcf5499a41..06e843b335 100644 --- a/themes/vue/source/css/_syntax.styl +++ b/themes/vue/source/css/_syntax.styl @@ -2,16 +2,16 @@ color #999 pre - color: #525252 + color #525252 .function .keyword, .constant - color: #0092db + color #0092db .keyword, .attribute - color: #e96900 + color #e96900 .number, .literal - color: #AE81FF + color #AE81FF .tag, .tag .title, .change, @@ -21,16 +21,16 @@ pre .clojure .built_in, .nginx .title, .tex .special - color: #2973b7 + color #2973b7 .class .title - color: white + color white .symbol, .symbol .string, .value, .regexp - color: $green + color $green .title - color: #A6E22E + color #A6E22E .tag .value, .string, .subst, @@ -55,7 +55,7 @@ pre .apache .cbracket, .tex .command, .prompt - color: $green + color $green .comment, .java .annotation, .python .decorator, @@ -66,7 +66,7 @@ pre .shebang, .apache .sqbracket, .tex .formula - color: #b3b3b3 + color #b3b3b3 .coffeescript .javascript, .javascript .xml, .tex .formula, @@ -74,4 +74,4 @@ pre .xml .vbscript, .xml .css, .xml .cdata - opacity: 0.5 \ No newline at end of file + opacity 0.5 diff --git a/themes/vue/source/css/_team.styl b/themes/vue/source/css/_team.styl index 1f833884fc..5de57ca119 100644 --- a/themes/vue/source/css/_team.styl +++ b/themes/vue/source/css/_team.styl @@ -2,135 +2,135 @@ #team-members .sort-by-distance-button - display: inline-block - padding: .4em .7em .45em - font-weight: bold - font-size: .5em - text-transform: uppercase - line-height: 1 - border: none - background: $medium - color: white - border-radius: 3px - position: relative - cursor: pointer - float: right - margin-top: .3em + display inline-block + padding .4em .7em .45em + font-weight bold + font-size .5em + text-transform uppercase + line-height 1 + border none + background $medium + color white + border-radius 3px + position relative + cursor pointer + float right + margin-top .3em i - margin-right: .25em + margin-right .25em &:last-child - margin-right: 0 + margin-right 0 &[disabled] - opacity: .7 - cursor: default + opacity .7 + cursor default .vuer - display: flex - padding: 25px 0 - border-bottom: 1px dotted #ddd + display flex + padding 25px 0 + border-bottom 1px dotted #ddd &:first-of-type - margin-top: 15px + margin-top 15px &:last-of-type - border-bottom: none + border-bottom none .avatar - flex: 0 0 80px + flex 0 0 80px img - border-radius: 50% + border-radius 50% .profile - padding-left: 26px - flex: 1 + padding-left 26px + flex 1 h3 - margin: 0 - font-size: 1.3em + margin 0 + font-size 1.3em &::before, &::after - display: none + display none & > sup - text-transform: uppercase - font-size: .7em - letter-spacing: .3px - padding: 2px 5px - margin-left: 10px - color: transparentify($dark, #f9f7f5, .6) - background: #f9f7f5 - border-radius: 5px + text-transform uppercase + font-size .7em + letter-spacing .3px + padding 2px 5px + margin-left 10px + color transparentify($dark, #f9f7f5, .6) + background #f9f7f5 + border-radius 5px // NOTE: Removing the little signal icon for now // .distance - // position: relative + // position relative // &:before - // content: '\f1eb' - // font-family: FontAwesome - // position: absolute - // top: 50% - // margin-top: -.5em - // line-height: 1 - // right: 100% - // transform: rotate(-90deg) + // content '\f1eb' + // font-family FontAwesome + // position absolute + // top 50% + // margin-top -.5em + // line-height 1 + // right 100% + // transform rotate(-90deg) .user-match - cursor: help - color: steelblue + cursor help + color steelblue &:after - content: '\f06a' - font-family: FontAwesome - font-size: .75em - vertical-align: super - margin-left: 4px - margin-right: 2px - position: relative + content '\f06a' + font-family FontAwesome + font-size .75em + vertical-align super + margin-left 4px + margin-right 2px + position relative dl - margin: .6em 0 0 + margin .6em 0 0 dt, dd, ul, li - display: inline - padding: 0 - margin: 0 - line-height: 1.3 + display inline + padding 0 + margin 0 + line-height 1.3 dt - text-transform: uppercase - font-size: .84em - font-weight: 600 + text-transform uppercase + font-size .84em + font-weight 600 &::after - content: '' - margin-right: 7px + content '' + margin-right 7px i - width: 14px - text-align: center + width 14px + text-align center &.fa-map-marker - font-size: 1.15em + font-size 1.15em &.fa-globe - font-size: 1.2em + font-size 1.2em &.fa-link - font-size: 1.05em + font-size 1.05em dd - font-weight: 600 + font-weight 600 &::after - display: block - content: ' ' - margin-top: .6em + display block + content ' ' + margin-top .6em li - display: inline-block + display inline-block &::after - display: inline-block - content: '·' - margin: 0 8px + display inline-block + content '·' + margin 0 8px &:last-child::after - content: '' + content '' .social a - display: inline-block - line-height: 1 - vertical-align: middle - margin-right: 4px + display inline-block + line-height 1 + vertical-align middle + margin-right 4px &.github - color: #000 + color #000 &.twitter - color: #1da1f3 + color #1da1f3 i - vertical-align: text-bottom - font-size: 1.3em + vertical-align text-bottom + font-size 1.3em -@media (max-width: 640px) +@media (max-width 640px) #team-members .vuer .profile h3 sup - display: inline-block - margin-left: 0 + display inline-block + margin-left 0 diff --git a/themes/vue/source/css/benchmark.styl b/themes/vue/source/css/benchmark.styl index 9e551b3a8b..1bff3ce9da 100644 --- a/themes/vue/source/css/benchmark.styl +++ b/themes/vue/source/css/benchmark.styl @@ -28,7 +28,7 @@ vertical-align middle background-color #3498db -@media screen and (max-width: 600px) +@media screen and (max-width 600px) #benchmark-results .bar - width 45% \ No newline at end of file + width 45% diff --git a/themes/vue/source/css/index.styl b/themes/vue/source/css/index.styl index b16c015d91..cb6fe50d63 100644 --- a/themes/vue/source/css/index.styl +++ b/themes/vue/source/css/index.styl @@ -135,7 +135,7 @@ body font-weight 700 color #fff -@media screen and (max-width: $width) +@media screen and (max-width $width) body -webkit-text-size-adjust none font-size 14px diff --git a/themes/vue/source/css/page.styl b/themes/vue/source/css/page.styl index 8c349a0cfb..dccd139372 100644 --- a/themes/vue/source/css/page.styl +++ b/themes/vue/source/css/page.styl @@ -17,11 +17,11 @@ padding 2.2em 0 max-width 600px margin 0 auto - padding-left: 20px + padding-left 20px &.api > a:first-of-type > h2 margin-top 0 - padding-top: 0 + padding-top 0 ul padding-left 1.25em line-height 1.4em @@ -60,11 +60,11 @@ margin $h2-margin-top 0 .8em padding-bottom .7em border-bottom 1px solid $border - z-index: -1 + z-index -1 h3 margin $h3-margin-top 0 1.2em position relative - z-index: -1 + z-index -1 &:after content "#" color $green @@ -83,7 +83,7 @@ margin 1.2em 0 -1.2em padding-bottom 1.2em position relative - z-index: 1 + z-index 1 ul, ol padding-left 1.5em // FIX: Some link click targets are covered without this @@ -149,15 +149,15 @@ em color $medium &.tip - border-left-color: $red + border-left-color $red &:before content '!' background-color $red &.success - border-left-color: $green + border-left-color $green &:before content '\f00c' - font-family: FontAwesome + font-family FontAwesome background-color $green .guide-links @@ -175,11 +175,11 @@ .sidebar position fixed -@media screen and (min-width: 1590px) +@media screen and (min-width 1590px) #header background-color rgba(255,255,255,.4) -@media screen and (max-width: 1300px) +@media screen and (max-width 1300px) .content.with-sidebar margin-left 290px #ad @@ -191,7 +191,7 @@ float right padding 0 0 20px 30px -@media screen and (max-width: 900px) +@media screen and (max-width 900px) body -webkit-text-size-adjust none font-size 14px @@ -223,7 +223,7 @@ margin-left 0 text-align center -@media screen and (max-width: 560px) +@media screen and (max-width 560px) #downloads text-align center margin-bottom 25px @@ -231,4 +231,4 @@ margin-top 5px margin-left 0 iframe - margin: 0 !important + margin 0 !important diff --git a/themes/vue/source/css/search.styl b/themes/vue/source/css/search.styl index 287ed6aff4..b7ae3a13bc 100644 --- a/themes/vue/source/css/search.styl +++ b/themes/vue/source/css/search.styl @@ -10,9 +10,9 @@ $border = #ddd border-color #999 font-size 0.9rem -@media (min-width: 768px) +@media (min-width 768px) .aa-dropdown-menu - min-width: 515px + min-width 515px .algolia-docsearch-suggestion border-color $border @@ -24,7 +24,7 @@ $border = #ddd border-color $border .algolia-docsearch-suggestion--category-header - background: $green + background $green .algolia-docsearch-footer border-color $border @@ -33,7 +33,7 @@ $border = #ddd background rgba(255, 255, 255, 0.6) .algolia-docsearch-suggestion--highlight - color: #2c815b + color #2c815b .aa-cursor .algolia-docsearch-suggestion--content - color: $dark + color $dark