Skip to content

Commit

Permalink
perf: css/popup.styl: compress two identical sections into one (#625)
Browse files Browse the repository at this point in the history
* refactor: remove duplicated style code
* refactor: remove unnecessary style code
  • Loading branch information
dilyanpalauzov authored Jun 12, 2020
1 parent de3ecf8 commit e125cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/css/icons.styl
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
background: url('image/ic-arrow-right.png') no-repeat

.{css-prefix}ic-repeat-b
background: url('./image/ic-repeat-b.png')
background: url('./image/ic-repeat-b.png')
9 changes: 1 addition & 8 deletions src/css/popup.styl
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@
.{css-prefix}popup-section-item .{css-prefix}icon
position: relative

.{css-prefix}icon.{css-prefix}ic-title
top: 2px

.{css-prefix}popup-section-item .{css-prefix}content
text-align: left
display: inline-block
Expand Down Expand Up @@ -161,14 +158,12 @@
border-top: none
border-radius: 0 0 2px 2px
width: 100%
display: none

.{css-prefix}dropdown:hover .{css-prefix}dropdown-menu
border: 1px solid #bbbbbb
border-top: none

.{css-prefix}dropdown-menu
display: none

.{css-prefix}open .{css-prefix}dropdown-menu
display: block

Expand Down Expand Up @@ -375,8 +370,6 @@ input[type='checkbox'].{css-prefix}checkbox-round + span
height: 12px
background-size: 12px
position: relative

.{css-prefix}popup-detail .{css-prefix}icon
margin-right: 8px

.{css-prefix}popup-detail .{css-prefix}icon.{css-prefix}ic-location-b
Expand Down

0 comments on commit e125cb2

Please sign in to comment.