Skip to content

Commit

Permalink
Explorer CSS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jan 25, 2017
1 parent 67fc4c5 commit 03e1a00
Showing 1 changed file with 20 additions and 58 deletions.
78 changes: 20 additions & 58 deletions client/src/components/explorer/style.scss
Expand Up @@ -2,7 +2,7 @@ $c-explorer-bg: #4C4E4D;
$c-explorer-secondary: #aaa;
$c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);

.c-explorer * {
.c-explorer, .c-explorer * {
box-sizing: border-box;
}

Expand Down Expand Up @@ -39,7 +39,7 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
cursor: pointer;

&:hover {
color: #fff;
color: $color-white;
background: rgba(0,0,0,0.2);
}
}
Expand All @@ -62,12 +62,12 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
&:hover {
background: rgba(0,0,0,0.5);
border-color: rgba(0,0,0,0.5);
color: #fff;
color: $color-white;
}
}

.c-filter--active {
color: #fff;
color: $color-white;
border-color: rgba(255, 255, 255, .5);
}

Expand All @@ -78,7 +78,7 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
margin-top: -1px;

&:hover {
color: #fff;
color: $color-white;
}

.icon {
Expand All @@ -90,11 +90,11 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);

.c-explorer__title {
margin: 0;
color: #fff;
color: $color-white;
}

.c-explorer__loading {
color: #fff;
color: $color-white;
padding: 1rem;
}

Expand All @@ -110,7 +110,7 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);

.c-explorer__placeholder {
padding: 1rem;
color: #fff;
color: $color-white;
}

.c-explorer__meta {
Expand All @@ -129,43 +129,39 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);

&:hover {
background: rgba(0, 0, 0, 0.25);
color: #fff;
color: $color-white;
}
}

.c-explorer__see-more {
cursor: pointer;
padding: .5rem 1rem;
background: rgba(0,0,0,0.2);
color: #fff;
color: $color-white;

&:hover {
background: rgba(0,0,0,0.4);
}
}


.c-explorer__children {
display: inline-block;
border-radius: 50rem;
border: solid 1px #aaa;
color: #fff;
color: $color-white;
line-height: 1;
padding: .5em .3em .5em .5em;
float: right;
cursor: pointer;

&:hover {
background: rgba(0,0,0,0.5);
color: #fff;
color: $color-white;
}
}




.c-status {
background: #333;
background: $color-grey-1;
color: #ddd;
text-transform: uppercase;
letter-spacing: .03rem;
Expand All @@ -176,7 +172,6 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);

}


.c-explorer__drawer {
position: absolute;
bottom: 0;
Expand All @@ -185,16 +180,17 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
overflow-y: auto;
}


.c-explorer__overflow {
max-width: 12rem;
display: block;
text-transform: uppercase;
float: left;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


// =============================================================================
// TODO: move to their own component..
// =============================================================================
Expand All @@ -208,21 +204,13 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
line-height: 1.5;
}

.u-overflow {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


.c-explorer__rel {
position: relative;
display: block;
height: 19px;
width: 100%;
}


.c-explorer__parent-name {
position: absolute;
width: 100%;
Expand All @@ -234,18 +222,13 @@ $c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
.c-explorer__spinner:after {
display: inline-block;
animation: spin 0.5s infinite linear;
line-height: 1
line-height: 1;
}



// =============================================================================
// Transitions
// =============================================================================

// $out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
// $in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);

$out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
$in-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
$c-explorer-duration: 200ms;
Expand Down Expand Up @@ -304,6 +287,9 @@ $c-explorer-duration: 200ms;
opacity: 0;
}

// =============================================================================
// Toggle transition
// =============================================================================

.explorer-toggle-enter {
opacity: 0;
Expand All @@ -323,7 +309,6 @@ $c-explorer-duration: 200ms;
opacity: 0;
}


// =============================================================================
// Fade transition
// =============================================================================
Expand All @@ -349,26 +334,3 @@ $c-explorer-duration: 200ms;
.explorer-fade-leave-active {
opacity: 0;
}


// =============================================================================
// Header transitions
// =============================================================================

.header-push-enter {
opacity: 0;
transition: opacity .1s linear .1s;
}

.header-push-enter-active {
opacity: 1;
}

.header-push-leave {
opacity: 1;
transition: opacity .1s;
}

.header-push-leave-active {
opacity: 0;
}

0 comments on commit 03e1a00

Please sign in to comment.