1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 16:18:07 +01:00
metamask-extension/ui/app/css/itcss/components/newui-sections.scss

228 lines
3.7 KiB
SCSS
Raw Normal View History

$sub-mid-size-breakpoint: 667px;
$sub-mid-size-breakpoint-range: "screen and (min-width: #{$break-large}) and (max-width: #{$sub-mid-size-breakpoint})";
2017-08-06 22:24:06 +02:00
/*
NewUI Container Elements
*/
// Component Colors
2018-01-11 06:09:09 +01:00
$wallet-view-bg: $alabaster;
.app {
display: flex;
flex-direction: column;
height: 100%;
overflow-x: hidden;
position: relative;
align-items: center;
}
// Main container
2017-08-06 22:24:06 +02:00
.main-container {
2017-08-22 17:37:15 +02:00
z-index: $main-container-z-index;
2017-10-13 00:46:09 +02:00
font-family: Roboto;
}
.main-container::-webkit-scrollbar {
2017-09-05 10:48:52 +02:00
display: none;
2017-08-06 22:24:06 +02:00
}
.main-container-wrapper {
display: flex;
justify-content: center;
flex: 1 0 auto;
min-height: 0;
width: 100%;
}
// wallet view and sidebar
2017-08-07 06:54:42 +02:00
.wallet-view {
display: flex;
flex-direction: column;
2018-01-11 06:09:09 +01:00
flex: 32 1 32%;
width: 0;
2017-08-11 09:31:06 +02:00
background: $wallet-view-bg;
2017-10-24 00:57:14 +02:00
z-index: 200;
2017-10-24 08:59:21 +02:00
position: relative;
[dir='rtl'] & i.fa.fa-clipboard {
/*rtl:ignore*/
margin-left: 0 !important;
/*rtl:ignore*/
margin-right: 8px !important;
}
@media screen and (min-width: 576px) {
overflow-y: scroll;
2017-09-05 10:48:52 +02:00
overflow-x: hidden;
}
@media #{$sub-mid-size-breakpoint-range} {
min-width: 160px;
}
2017-08-11 09:31:06 +02:00
}
2017-08-31 09:37:42 +02:00
@media screen and (min-width: 576px) {
.wallet-view::-webkit-scrollbar {
display: none;
}
}
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-right {
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: 66px;
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: calc(100% - 56px);
[dir='rtl'] & {
/* rtl:ignore */
left: 15%;
}
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 {
2018-01-11 06:09:09 +01:00
width: 85vw;
2017-08-06 22:24:06 +02:00
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 {
2018-01-11 06:09:09 +01:00
width: 80vw;
2017-08-06 22:24:06 +02:00
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 {
2018-01-11 06:09:09 +01:00
width: 62vw;
2017-08-06 22:24:06 +02:00
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 {
width: 100%;
2017-09-05 10:48:52 +02:00
overflow-y: auto;
background-color: $white;
2017-08-06 22:24:06 +02:00
}
.main-container-wrapper {
flex: 1;
}
2017-08-06 22:24:06 +02:00
}
// 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
}
.fiat-amount {
text-transform: uppercase;
}
.token-balance__amount {
padding: 0 6px;
}
// first time
.first-view-main {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
@media screen and (max-width: 575px) {
height: 100%;
}
@media screen and (min-width: 576px) {
width: 85vw;
}
@media screen and (min-width: 769px) {
width: 80vw;
}
@media screen and (min-width: 1281px) {
width: 62vw;
}
}
.unlock-screen-container {
z-index: $main-container-z-index;
font-family: Roboto;
display: flex;
justify-content: center;
align-items: center;
flex: 1 0 auto;
background: #f7f7f7;
width: 100%;
}
.unlock-screen {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1 0 auto;
}
.first-view-main-wrapper {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
padding: 0 10px;
background: white;
}