Skip to content

Commit

Permalink
Minor CSS cleanup. (#2394)
Browse files Browse the repository at this point in the history
* simplify padding shorthand
* remove units from 0
* use `property-name | duration | timing function` for transition shorthand
* remove trailing spaces
* add missing EOF
  • Loading branch information
XhmikosR authored and Trott committed Aug 17, 2019
1 parent 229e9f0 commit edc686e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions layouts/css/page-modules/_footer.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
footer
margin-top 2em
background-color $node-gray
padding 0 0px
padding 0

a,
a:link,
Expand All @@ -13,4 +13,4 @@ footer
text-decoration underline

&.no-margin-top
margin-top 0px
margin-top 0
2 changes: 1 addition & 1 deletion layouts/css/page-modules/_header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ header
a:hover
background-color transparent
text-decoration underline

#lang-picker-toggler
position absolute
right 0
Expand Down
4 changes: 2 additions & 2 deletions layouts/css/page-modules/_home.styl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

.home-banner
opacity 1
transition .2s opacity ease-in-out
transition opacity .2s ease-in-out

&:hover
opacity 0.85
Expand All @@ -65,7 +65,7 @@
font-size 30px
font-weight 400

transition .2s background-color ease-in-out
transition background-color .2s ease-in-out

&:hover
background-color $node-green
Expand Down
6 changes: 3 additions & 3 deletions layouts/css/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
width 100%
float none
article
margin-left 0px
margin-left 0

.full-width
width 100%
Expand Down Expand Up @@ -109,9 +109,9 @@ html[dir="rtl"]

article
margin-right 220px
margin-left 0px
margin-left 0

@media screen and (max-width: 480px)
.has-side-nav
article
margin-right 0px
margin-right 0

0 comments on commit edc686e

Please sign in to comment.