2017-10-16 00:30:21 +05:30
|
|
|
|
@import '~components/ui/colors.scss';
|
|
|
|
|
@import '~components/ui/fonts.scss';
|
|
|
|
|
@import '~components/ui/popup/popup.scss';
|
|
|
|
|
|
2017-12-16 22:25:57 +05:30
|
|
|
|
@mixin hideFooter {
|
|
|
|
|
@media (max-height: 455px) {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-16 00:30:21 +05:30
|
|
|
|
.languageSwitcher {
|
|
|
|
|
composes: popupWrapper from 'components/ui/popup/popup.scss';
|
|
|
|
|
|
|
|
|
|
@include popupBounding(400px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageSwitcherBody {
|
|
|
|
|
composes: body from 'components/ui/popup/popup.scss';
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2017-12-16 06:06:39 +05:30
|
|
|
|
max-height: calc(100vh - 132px);
|
|
|
|
|
|
|
|
|
|
@media screen and (min-height: 630px) {
|
|
|
|
|
max-height: 500px;
|
|
|
|
|
}
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.searchBox {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.searchIcon {
|
|
|
|
|
composes: search from 'components/ui/icons.scss';
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 14px;
|
|
|
|
|
right: 12px;
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
color: #EDEBE5;
|
|
|
|
|
pointer-events: none; // Иконка чисто декоративная, так что клик должен проходить сквозь неё
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-16 22:25:57 +05:30
|
|
|
|
$languageListBorderColor: #eee;
|
|
|
|
|
$languageListBorderStyle: 1px solid $languageListBorderColor;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
|
|
|
|
|
.languagesList {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
border-top: $languageListBorderStyle;
|
|
|
|
|
border-bottom: $languageListBorderStyle;
|
|
|
|
|
margin-bottom: 20px;
|
2017-12-16 22:25:57 +05:30
|
|
|
|
|
2017-12-16 22:43:19 +05:30
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
background-color: #F3F3F3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
background-color: #D8D5D0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-16 22:25:57 +05:30
|
|
|
|
@include hideFooter {
|
|
|
|
|
& {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageItem {
|
|
|
|
|
font-family: $font-family-title;
|
2017-12-16 22:25:57 +05:30
|
|
|
|
transition: background-color .25s;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
cursor: pointer;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2017-12-16 22:25:57 +05:30
|
|
|
|
background-color: $whiteButtonLight;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageFlex {
|
2017-12-16 22:25:57 +05:30
|
|
|
|
box-sizing: border-box;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2017-12-16 22:25:57 +05:30
|
|
|
|
padding: 10px;
|
|
|
|
|
border-top: $languageListBorderStyle;
|
|
|
|
|
|
|
|
|
|
.firstLanguageItem & {
|
|
|
|
|
border-top: none;
|
|
|
|
|
}
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageIco {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 7px;
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
box-shadow: 0 0 1px rgba(#000, .2);
|
|
|
|
|
|
|
|
|
|
background: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageCaptions {
|
2017-12-16 22:58:22 +05:30
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageName {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageSubName {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: #CCC;
|
2017-12-16 22:58:22 +05:30
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Реализация радио кнопки. Когда у нас будет нормальный компонент радио кнопок, нужно будет перейти на него
|
|
|
|
|
.languageCircle {
|
|
|
|
|
composes: checkmark from 'components/ui/icons.scss';
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: 22px;
|
|
|
|
|
height: 22px;
|
|
|
|
|
right: -32px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border: 2px solid #DCD8CD;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
|
|
transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.languageItem:hover & {
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.activeLanguageItem & {
|
|
|
|
|
border-color: $green;
|
|
|
|
|
background: $green;
|
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.improveTranslates {
|
|
|
|
|
border: 1px solid #DEDEDE;
|
|
|
|
|
background: #F3F1ED;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-shrink: 0;
|
2017-12-16 06:06:39 +05:30
|
|
|
|
|
2017-12-16 22:25:57 +05:30
|
|
|
|
@include hideFooter {
|
2017-12-16 06:06:39 +05:30
|
|
|
|
& {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-16 00:30:21 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.improveTranslatesIcon {
|
|
|
|
|
composes: translate from 'components/ui/icons.scss';
|
|
|
|
|
|
|
|
|
|
color: lighter($blue);
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.improveTranslatesContent {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.improveTranslatesTitle {
|
|
|
|
|
font-family: $font-family-title;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.improveTranslatesText {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
color: #9A9A9A;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
}
|