Skip to content

Commit

Permalink
Style class changes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeneil committed Jan 6, 2017
1 parent 0d377ce commit d5f076c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions html/components/drop-down.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-->
<div class="dropdown pointer">
<div class="ss-dropdown pointer">
<div class="dropdown-header">
<h2 class="dropdown-measure text-style-1">
<span class="title">@@title</span>
<span class="arrow"></span>
<span class="turn-arrow"></span>
</h2>
<div class="dropdown-selected truncate text-style-2">
<!-- @@for(var i = 0; i < 1; i++) { -->
Expand Down
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
function init() {
this.name = 'Main';

this.dd1 = document.querySelector('#dd-1 .dropdown');
this.dd1 = document.querySelector('#dd-1 .ss-dropdown');
new def.SingleDropDown(this.dd1);
};

Expand Down
27 changes: 14 additions & 13 deletions sass/drop-down.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ h1, h2, h3, h4, h5, h6 {
}


/* dropdown */
/* ss-dropdown */

.dropdown {
.ss-dropdown {
position: relative;
width: 100%;
max-width: 400px;
Expand All @@ -106,7 +106,7 @@ h1, h2, h3, h4, h5, h6 {
background: $dropdown-background;
}

.dropdown.open {
.ss-dropdown.open {
background: $dropdown-open-background;
}

Expand Down Expand Up @@ -136,7 +136,7 @@ h1, h2, h3, h4, h5, h6 {
color: $dropdown-selected-text-color;
}

.dropdown.open .dropdown-selected {
.ss-dropdown.open .dropdown-selected {
display: none;
}

Expand All @@ -152,7 +152,7 @@ h1, h2, h3, h4, h5, h6 {
background: $dropdown-open-background;
}

.dropdown.open .dropdown-content-wrapper {
.ss-dropdown.open .dropdown-content-wrapper {
height: auto;
}

Expand All @@ -172,7 +172,8 @@ h1, h2, h3, h4, h5, h6 {
font-weight: $font-weight-semibold;
}

.arrow {
/* turn-arrow */
.turn-arrow {
width: 13px;
height: 13px;
display: inline-block;
Expand All @@ -185,8 +186,8 @@ h1, h2, h3, h4, h5, h6 {
}
}

.arrow:before,
.arrow:after {
.turn-arrow:before,
.turn-arrow:after {
background-color: transparent;
width: 1px;
height: 12px;
Expand All @@ -200,27 +201,27 @@ h1, h2, h3, h4, h5, h6 {
transition: 0.4s ease;
}

.arrow:before {
.turn-arrow:before {
-webkit-transform: rotate(-135deg);
transform: rotate(-135deg);
}

.arrow:after {
.turn-arrow:after {
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}

.open .arrow {
.open .turn-arrow {
-webkit-transform: translate(0, -6px);
transform: translate(0, -6px);
}

.open .arrow:before {
.open .turn-arrow:before {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}

.open .arrow:after {
.open .turn-arrow:after {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}

0 comments on commit d5f076c

Please sign in to comment.