1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00
trezor-wallet/src/styles/aside.less

603 lines
15 KiB
Plaintext
Raw Normal View History

2018-02-20 09:30:36 +00:00
aside {
position: relative;
width: 320px;
min-width: 320px;
border-right: 1px solid @color_divider;
overflow-x: hidden;
.sticky-container {
position: relative;
top: 0;
width: 320px;
overflow: hidden;
&.fixed {
position: fixed;
border-right: 1px solid @color_divider;
}
&.fixed-bottom {
padding-bottom: 60px; // height of .help
2018-05-10 13:43:25 +00:00
.sticky-bottom {
2018-02-20 09:30:36 +00:00
position: fixed;
bottom: 0;
background: @color_main;
border-right: 1px solid @color_divider;
}
}
}
.transition-container {
width: 640px;
section {
width: 320px;
display: inline-block;
vertical-align: top;
}
}
2018-03-29 09:31:45 +00:00
.trezor-webusb-button {
2018-05-09 11:11:38 +00:00
margin: 12px 0px 12px 30px;
padding: 6px 24px 6px 40px;
width: 256px;
2018-03-29 09:31:45 +00:00
}
.device-select {
background: @color_white;
border-bottom: 1px solid @color_divider;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
cursor: pointer;
.arrow {
width: 24px;
height: 24px;
2018-05-10 13:43:25 +00:00
margin-right: 24px;
2018-03-29 09:31:45 +00:00
&:after {
.icomoon-arrow-down;
transition: transform 0.3s, color 0.3s;
color: @color_text_secondary;
transform-origin: 50% 50%;
font-size: 24px;
}
}
&:hover {
.arrow:after {
color: @color_text_primary;
}
}
&.opened {
2018-05-10 14:57:54 +00:00
border-color: @color_white;
2018-05-09 11:11:38 +00:00
box-shadow: none;
2018-03-29 09:31:45 +00:00
.arrow:after {
transform: rotate(180deg);
}
}
&.disabled {
cursor: initial;
.arrow {
display: none;
}
.device-menu {
padding-right: 26px;
}
}
}
2018-02-20 09:30:36 +00:00
.device {
position: relative;
2018-03-29 09:31:45 +00:00
height: 64px;
width: 320px;
2018-02-20 09:30:36 +00:00
display: flex;
align-items: center;
2018-05-10 13:43:25 +00:00
padding-left: 60px;
2018-02-20 09:30:36 +00:00
&.item {
padding-right: 24px;
cursor: pointer;
.hover();
&:hover {
background: @color_gray_light;
}
}
&:before {
content: '';
position: absolute;
display: block;
width: 13px;
height: 25px;
z-index: 2;
2018-05-10 13:43:25 +00:00
left: 25px;
top: 19px;
2018-02-20 09:30:36 +00:00
background-repeat: no-repeat;
background-position: center;
background-size: 13px 25px;
2018-03-29 09:31:45 +00:00
background-image: url('../images/trezor-1.png');
}
&:after {
content: '';
position: absolute;
display: block;
width: 10px;
height: 10px;
top: 14px;
left: 32px;
background: @color_green_primary;
border: 2px solid @color_white;
border-radius: 50%;
z-index: 3;
}
&.disconnected,
&.unavailable, {
&:after {
background: @color_error_primary;
}
}
&.unacquired,
&.used-elsewhere,
&.reload-features, {
&:after {
background: @color_warning_primary;
}
}
2018-03-29 09:31:45 +00:00
&.trezor-t {
&:before {
width: 17px;
2018-05-10 13:43:25 +00:00
left: 23px;
2018-03-29 09:31:45 +00:00
background-size: 17px 25px;
background-image: url('../images/trezor-T.png');
}
&:after {
left: 34px;
top: 14px;
}
2018-02-20 09:30:36 +00:00
}
.label-container {
flex: 1;
overflow: hidden;
span {
display: block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
&.label {
font-weight: 500;
font-size: 14px;
color: @color_text_primary;
}
&.status {
font-size: 12px;
color: @color_text_secondary;
}
}
}
2018-05-10 14:57:54 +00:00
.counter {
border: 1px solid @color_divider;
border-radius: 50%;
color: @color_text_secondary;
width: 24px;
height: 24px;
line-height: 22px;
text-align: center;
font-size: 11px;
2018-05-10 15:30:26 +00:00
margin-right: 8px;
2018-05-10 14:57:54 +00:00
}
2018-05-11 13:37:00 +00:00
.forget-button {
color: @color_text_secondary;
.hover();
&:before {
.icomoon-eject;
position: relative;
font-size: 24px;
}
&:hover {
color: @color_text_primary;
}
}
2018-02-20 09:30:36 +00:00
}
.device-menu {
2018-05-10 13:43:25 +00:00
padding: 0px 24px 8px 19px;
border-bottom: 1px solid @color_divider;
2018-05-09 11:11:38 +00:00
background: @color_white;
div {
2018-05-09 11:11:38 +00:00
padding: 4px 0px;
display: flex;
align-items: center;
line-height: 24px;
cursor: pointer;
color: @color_text_secondary;
.hover();
&:before {
.icomoon-refresh;
position: relative;
font-size: 24px;
2018-05-10 13:43:25 +00:00
margin-right: 17px;
.hover();
}
&:hover {
color: @color_text_primary;
// &:before {
// color: @color_text_primary;
// }
}
&.forget {
&:before {
.icomoon-eject;
}
}
&.clone {
&:before {
2018-05-09 11:11:38 +00:00
.icomoon-T1;
font-size: 32px;
transform: translateX(-4px);
2018-05-10 14:57:54 +00:00
margin-right: 8px;
}
}
&.settings {
&:before {
.icomoon-settings;
}
}
}
}
2018-02-20 09:30:36 +00:00
a {
position: relative;
display: block;
cursor: pointer;
font-size: 16px;
2018-05-10 13:43:25 +00:00
padding: 16px 0 16px 24px;
2018-02-20 09:30:36 +00:00
white-space: nowrap;
color: @color_text_primary;
height: 50px;
2018-03-08 16:10:53 +00:00
transition: background-color 0.3s, color 0.3s;
2018-02-20 09:30:36 +00:00
&:hover {
2018-03-08 16:10:53 +00:00
background-color: @color_gray_light;
2018-02-20 09:30:36 +00:00
}
&.account {
height: 64px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-size: 14px;
border-top: 1px solid @color_divider;
span {
display: block;
font-size: 12px;
color: @color_text_secondary;
}
2018-03-08 16:10:53 +00:00
&:before {
content: '';
width: 0px;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: @color_green_primary;
transition: width 0.3s;
}
2018-02-20 09:30:36 +00:00
2018-03-08 16:10:53 +00:00
&.selected {
2018-02-20 09:30:36 +00:00
background: @color_white;
2018-03-08 16:10:53 +00:00
//border-left: 3px solid @color_green_primary;
//border-bottom: 1px solid @color_divider;
//padding-left: 27px;
&:before {
width: 3px;
}
&:hover {
background: @color_white;
}
&:last-child {
// border-bottom: 1px solid @color_divider;
&:after {
content: '';
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 1px;
line-height: 1px;
background-color: @color_divider;
}
}
2018-02-20 09:30:36 +00:00
}
}
2018-03-08 16:10:53 +00:00
2018-02-20 09:30:36 +00:00
&.coin {
2018-05-10 13:43:25 +00:00
padding-left: 60px;
2018-02-20 09:30:36 +00:00
&:before {
content: '';
position: absolute;
display: block;
width: 20px;
height: 20px;
2018-05-10 13:43:25 +00:00
left: 24px;
2018-02-20 09:30:36 +00:00
top: 0px;
bottom: 0px;
margin: auto 0;
background-repeat: no-repeat;
background-position: center;
background-size: 20px 20px;
}
}
&.external {
&:after {
.icomoon-redirect;
position: absolute;
display: block;
width: 30px;
height: 30px;
2018-05-10 13:43:25 +00:00
right: 20px;
2018-02-20 09:30:36 +00:00
top: 0px;
bottom: 0px;
margin: auto 0;
font-size: 30px;
color: @color_text_secondary;
.hover();
}
&:hover:after {
color: @color_text_primary;
}
}
&.back {
2018-05-10 14:39:34 +00:00
padding-left: 80px;
2018-02-20 09:30:36 +00:00
&:before {
content: '';
position: absolute;
display: block;
width: 20px;
height: 20px;
2018-05-10 14:39:34 +00:00
left: 56px;
2018-02-20 09:30:36 +00:00
top: 0px;
bottom: 0px;
margin: auto 0;
background-repeat: no-repeat;
background-position: center;
2018-05-10 14:39:34 +00:00
background-size: auto 20px;
2018-02-20 09:30:36 +00:00
}
&:after {
.icomoon-arrow-left;
position: absolute;
display: block;
width: 20px;
height: 20px;
left: 24px;
top: 0px;
bottom: 0px;
margin: auto 0;
font-size: 20px;
}
}
2018-05-10 13:43:25 +00:00
&.ethereum:before,
&.ethereum-classic:before,
&.ropsten:before,
&.rinkeby:before {
2018-05-09 09:14:58 +00:00
background-size: auto 20px;
2018-05-10 13:43:25 +00:00
background-position: 2px 0px;
2018-05-09 09:14:58 +00:00
}
2018-05-10 13:43:25 +00:00
&.ethereum:before {
2018-02-20 09:30:36 +00:00
background-image: url('../images/eth-logo.png');
2018-05-09 09:14:58 +00:00
}
&.ethereum-classic:before {
2018-02-20 09:30:36 +00:00
background-image: url('../images/etc-logo.png');
}
2018-05-10 13:43:25 +00:00
&.ropsten:before {
background-image: url('../images/ropsten-logo.png');
}
&.rinkeby:before {
background-image: url('../images/rinkeby-logo.png');
}
2018-02-20 09:30:36 +00:00
&.btc:before {
background-image: url('../images/btc-logo.png');
}
&.bch:before {
background-image: url('../images/bch-logo.png');
}
&.btg:before {
background-image: url('../images/btg-logo.png');
}
&.ltc:before {
background-image: url('../images/ltc-logo.png');
}
&.dash:before {
background-image: url('../images/dash-logo.png');
}
&.zec:before {
background-image: url('../images/zec-logo.png');
}
}
.coin-divider {
font-size: 12px;
display: flex;
justify-content: space-between;
color: @color_text_secondary;
background: @color_gray_light;
2018-05-10 13:43:25 +00:00
padding: 8px 28px 8px 24px;
2018-02-20 09:30:36 +00:00
border-top: 1px solid @color_divider;
border-bottom: 1px solid @color_divider;
span {
display: flex;
justify-content: flex-end;
}
}
2018-05-09 11:11:38 +00:00
.device-divider {
font-size: 12px;
display: flex;
justify-content: space-between;
color: @color_text_secondary;
background: @color_gray_light;
2018-05-10 13:43:25 +00:00
padding: 8px 28px 8px 24px;
2018-05-09 11:11:38 +00:00
border-bottom: 1px solid @color_divider;
}
2018-02-20 09:30:36 +00:00
.help {
width: 320px;
padding: 14px 0px;
text-align: center;
border-top: 1px solid @color_divider;
&.fixed {
position: fixed;
bottom: 0px;
}
a {
color: @color_text_secondary;
font-size: 12px;
display: inline-block;
padding: 8px;
height: auto;
&:before {
.icomoon-chat;
font-size: 32px;
position: absolute;
top: 0px;
left: -26px;
}
&:hover {
background: transparent;
color: @color_text_primary;
}
}
2018-05-10 13:43:25 +00:00
}
.wallet-settings {
2018-02-20 09:30:36 +00:00
}
.add-address {
position: relative;
2018-03-08 16:10:53 +00:00
padding: 8px 0 8px 20px;
2018-02-20 09:30:36 +00:00
cursor: pointer;
color: @color_text_secondary;
display: flex;
align-items: center;
&:before {
.icomoon-plus;
margin-right: 12px;
}
.hover();
&:hover {
color: @color_text_primary;
}
}
.discovery-status {
height: 64px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-size: 14px;
2018-05-15 14:53:19 +00:00
padding: 16px 28px 16px 30px;
2018-02-20 09:30:36 +00:00
white-space: nowrap;
border-top: 1px solid @color_divider;
span {
display: block;
font-size: 12px;
color: @color_text_secondary;
2018-05-15 14:53:19 +00:00
overflow: hidden;
text-overflow: ellipsis;
2018-02-20 09:30:36 +00:00
}
}
.discovery-loading {
display: flex;
flex-direction: row;
align-items: center;
font-size: 14px;
2018-03-08 16:10:53 +00:00
padding: 8px 0 8px 22px;
2018-02-20 09:30:36 +00:00
white-space: nowrap;
2018-03-08 16:10:53 +00:00
color: @color_text_secondary;
//border-top: 1px solid @color_divider;
2018-02-20 09:30:36 +00:00
.loader-circle {
2018-03-08 16:10:53 +00:00
margin-right: 14px;
2018-02-20 09:30:36 +00:00
}
}
// menu trasitions
@slide_transition_time: 300ms;
.slide-left-enter {
transform: translate(100%);
pointer-events: none;
}
.slide-left-enter.slide-left-enter-active {
transform: translate(0%);
transition: transform @slide_transition_time ease-in-out;
}
.slide-left-exit {
transform: translate(-100%);
}
.slide-left-exit.slide-left-exit-active {
transform: translate(0%);
transition: transform @slide_transition_time ease-in-out;
}
.slide-right-enter {
transform: translate(-100%);
pointer-events: none;
}
.slide-right-enter.slide-right-enter-active {
transform: translate(0%);
transition: transform @slide_transition_time ease-in-out;
}
.slide-right-exit {
transform: translate(-100%);
}
.slide-right-exit.slide-right-exit-active {
transform: translate(-200%);
transition: transform @slide_transition_time ease-in-out;
}
}