fix(toolbar): adjust sizings and colors

This commit is contained in:
Leonard Kim 2018-04-05 13:54:11 -07:00 committed by Дамян Минков
parent 58d1b69148
commit 45adf3e26a
6 changed files with 31 additions and 18 deletions

View File

@ -7,7 +7,7 @@
.use-new-toolbox {
.filmstrip.reduce-height {
bottom: $newToolbarSize;
bottom: $newToolbarSizeWithPadding;
}
.filmstrip {
@ -15,7 +15,7 @@
}
.filmstrip__videos.hidden {
bottom: calc(-196px - #{$newToolbarSize});
bottom: calc(-196px - #{$newToolbarSizeWithPadding});
}
}

View File

@ -6,9 +6,9 @@
/**
* Make the sidebar flush with the top of the toolbar. Take the size of
* the toolbar, plus its padding, and subtract from 100%.
* the toolbar and subtract from 100%.
*/
height: calc(100% - #{$newToolbarSize} - 10px);
height: calc(100% - #{$newToolbarSizeWithPadding});
left: 0;
.side-toolbar-close {

View File

@ -21,12 +21,12 @@
.use-new-toolbox {
.cxGWJB{
bottom: calc(#{$newToolbarSize} + 15px);
bottom: calc(#{$newToolbarSizeWithPadding});
}
.gXSEsl:nth-child(n+2) {
transform: translateX(0) translateY(100%) translateY(calc(#{$newToolbarSize} + 25px));
-ms-transform: translateX(0) translateY(100%) translateY(calc(#{$newToolbarSize} + 25px));
-webkit-transform: translateX(0) translateY(100%) translateY(calc(#{$newToolbarSize} + 25px));
transform: translateX(0) translateY(100%) translateY(16px);
-ms-transform: translateX(0) translateY(100%) translateY(16px);
-webkit-transform: translateX(0) translateY(100%) translateY(16px);
}
}
@ -281,7 +281,7 @@
box-sizing: border-box;
display: flex;
justify-content: space-between;
padding: 5px 20px;
padding: 16px 8px;
position: absolute;
transition: bottom .3s ease-in;
width: 100%;
@ -321,6 +321,7 @@
border-radius: 5px;
cursor: pointer;
display: block;
font-size: inherit;
height: 100%;
line-height: inherit;
width: 100%;
@ -361,12 +362,15 @@
.overflow-menu-item {
align-items: center;
color: #B8C7E0;
cursor: pointer;
display: flex;
padding: 5px 10px;
font-size: 14px;
height: 32px;
padding: 5px 12px;
&:hover {
background: rgba(0255, 255, 255, 0.2);
background: #313D52;
}
&.unclickable {
@ -382,6 +386,7 @@
i {
display: inline;
font-size: 24px;
}
i:hover {
@ -389,8 +394,8 @@
}
img {
max-width: 18px;
max-height: 18px;
max-width: 24px;
max-height: 24px;
}
}
@ -406,9 +411,8 @@
color: $toolbarButtonColor;
cursor: pointer;
display: inline-block;
font-size: $newToolbarFontSize;
line-height: $newToolbarSize;
margin: 0 10px;
margin: 0 8px;
text-align: center;
}
@ -417,6 +421,9 @@
.badge-round {
bottom: 9px;
font-size: 12px;
line-height: 20px;
min-width: 20px;
position: absolute;
right: 9px;
}
@ -428,6 +435,7 @@
.toolbox-icon {
height: $newToolbarSize;
font-size: 36px;
width: $newToolbarSize;
}
}
@ -442,7 +450,7 @@
i {
cursor: pointer;
display: block;
font-size: $newToolbarFontSize;
font-size: 1.9em;
height: 37px;
line-height: 37px;
width: 37px;

View File

@ -40,7 +40,8 @@ $newToolbarBackgroundColor: rgba(22, 38, 55, 0.8);
$newToolbarButtonHoverColor: rgba(14, 20, 35, 0.6);
$newToolbarButtonToggleColor: rgba(14, 20, 35, 1);
$newToolbarFontSize: 1.9em;
$newToolbarSize: 50px;
$newToolbarSize: 56px;
$newToolbarSizeWithPadding: calc(56px + 32px);
$secToolbarFontSize: 1.9em;
$secToolbarLineHeight: 45px;
$toolbarAvatarPadding: 10px;

View File

@ -28,7 +28,7 @@
transition: height .3s ease-in;
&.reduce-height {
height: calc(100% - #{$newToolbarSize});
height: calc(100% - #{$newToolbarSizeWithPadding});
}
}
}

View File

@ -1,3 +1,7 @@
.use-new-toolbox {
font-size: 14px;
}
.info-dialog {
cursor: default;
display: flex;