1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/css/itcss/components/newui-sections.scss

170 lines
2.6 KiB
SCSS
Raw Normal View History

2017-08-06 22:24:06 +02:00
/*
NewUI Container Elements
*/
// Component Colors
$tx-view-bg: $white;
$wallet-view-bg: $wild-sand;
// Main container
2017-08-06 22:24:06 +02:00
.main-container {
position: absolute;
2017-08-22 17:37:15 +02:00
z-index: $main-container-z-index;
2017-08-31 02:57:08 +02:00
font-family: "DIN OT Light";
2017-08-06 22:24:06 +02:00
display: flex;
flex-wrap: wrap;
align-items: stretch;
}
.main-container::-webkit-scrollbar {
display: none;
2017-08-06 22:24:06 +02:00
}
// tx view
2017-08-07 06:54:42 +02:00
.tx-view {
flex: 63.5 0 66.5%;
background: $tx-view-bg;
}
// wallet view and sidebar
2017-08-07 06:54:42 +02:00
.wallet-view {
display: flex;
flex-direction: column;
flex: 33.5 0 33.5%;
2017-08-11 09:31:06 +02:00
background: $wallet-view-bg;
@media screen and (min-width: 576px) {
overflow-y: scroll;
}
.wallet-view-account-details {
flex: 0 0 150px;
}
2017-08-11 09:31:06 +02:00
}
.wallet-view-title-wrapper {
flex: 0 0 25px;
2017-08-11 09:31:06 +02:00
}
.wallet-view-title {
margin-left: 15px;
font-size: 16px;
// No title on mobile
@media screen and (max-width: 575px) {
display: none;
}
}
.wallet-view.sidebar {
2017-08-06 22:24:06 +02:00
flex: 1 0 230px;
background: rgb(250, 250, 250);
2017-08-22 17:37:15 +02:00
z-index: $sidebar-z-index;
2017-08-06 22:24:06 +02:00
position: fixed;
top: 35px;
2017-08-14 10:31:27 +02:00
left: 0;
right: 0;
bottom: 0;
2017-08-06 22:24:06 +02:00
opacity: 1;
visibility: visible;
will-change: transform;
overflow-y: auto;
2017-08-14 10:31:27 +02:00
box-shadow: rgba(0, 0, 0, .15) 2px 2px 4px;
2017-08-06 22:24:06 +02:00
width: 85%;
height: 100%;
}
.sidebar-overlay {
2017-08-22 17:37:15 +02:00
z-index: $sidebar-overlay-z-index;
2017-08-06 22:24:06 +02:00
position: fixed;
top: 35px;
2017-08-14 10:31:27 +02:00
left: 0;
right: 0;
bottom: 0;
2017-08-06 22:24:06 +02:00
opacity: 1;
visibility: visible;
2017-08-14 10:31:27 +02:00
background-color: rgba(0, 0, 0, .3);
2017-08-06 22:24:06 +02:00
}
// main-container media queries
2017-08-06 22:24:06 +02:00
@media screen and (min-width: 576px) {
.lap-visible {
display: flex;
}
.phone-visible {
display: none;
}
.main-container {
2017-09-05 00:55:14 +02:00
margin-top: 6.9vh;
2017-08-06 22:24:06 +02:00
width: 85%;
height: 90vh;
2017-08-14 10:31:27 +02:00
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
2017-08-06 22:24:06 +02:00
}
}
@media screen and (min-width: 769px) {
.main-container {
margin-top: 6.9vh;
2017-08-06 22:24:06 +02:00
width: 80%;
height: 82vh;
2017-08-14 10:31:27 +02:00
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
2017-08-06 22:24:06 +02:00
}
}
@media screen and (min-width: 1281px) {
.main-container {
margin-top: 6.9vh;
2017-08-06 22:24:06 +02:00
width: 65%;
height: 82vh;
2017-08-14 10:31:27 +02:00
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
2017-08-06 22:24:06 +02:00
}
}
@media screen and (max-width: 575px) {
.lap-visible {
display: none;
}
.phone-visible {
display: flex;
}
.main-container {
margin-top: 35px;
width: 100%;
}
button.btn-clear {
width: 93px;
2017-08-06 22:24:06 +02:00
height: 50px;
font-size: .7em;
2017-08-14 10:31:27 +02:00
background: $white;
2017-08-06 22:24:06 +02:00
border: 1px solid;
}
}
// wallet view
.account-name {
2017-08-14 10:31:27 +02:00
2017-08-07 06:54:42 +02:00
@media screen and (max-width: 575px) {
font-size: 102%;
margin-left: 3%;
}
@media screen and (max-width: 575px) {
text-align: center;
}
}
// account options dropdown
.account-options-menu {
align-items: center;
justify-content: flex-start;
margin: 5% 7% 0%;
2017-08-14 10:31:27 +02:00
}