1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/css/itcss/components/newui-sections.scss

160 lines
2.6 KiB
SCSS
Raw Normal View History

2017-08-06 22:24:06 +02:00
/*
NewUI Container Elements
*/
.app {
display: flex;
flex-direction: column;
height: 100%;
overflow-x: hidden;
position: relative;
align-items: center;
}
// Fix for UI lag on external monitor: https://github.com/MetaMask/metamask-extension/issues/10173
.app.os-mac.browser-chrome::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 1px;
height: 1px;
background-color: var(--color-background-alternative);
animation: emptySpinningDiv 1s infinite linear;
}
@keyframes emptySpinningDiv {
0% { transform: rotate(0deg); }
to { transform: rotate(1turn); }
}
// 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;
}
.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%;
}
// main-container media queries
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
2017-08-06 22:24:06 +02:00
.lap-visible {
display: flex;
}
.phone-visible {
display: none;
}
.main-container {
2018-01-11 06:09:09 +01:00
width: 85vw;
margin-bottom: 10vh;
min-height: 90vh;
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2017-08-06 22:24:06 +02:00
}
}
2022-08-04 16:03:02 +02:00
@include screen-md-min {
2017-08-06 22:24:06 +02:00
.main-container {
2018-01-11 06:09:09 +01:00
width: 80vw;
min-height: 82vh;
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2017-08-06 22:24:06 +02:00
}
}
2022-08-04 16:03:02 +02:00
@include screen-lg-min {
2017-08-06 22:24:06 +02:00
.main-container {
2018-01-11 06:09:09 +01:00
width: 62vw;
min-height: 82vh;
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2017-08-06 22:24:06 +02:00
}
}
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-08-06 22:24:06 +02:00
.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: var(--color-background-default);
2017-08-06 22:24:06 +02:00
}
.main-container-wrapper {
flex: 1;
}
2017-08-06 22:24:06 +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;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
height: 100%;
}
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
width: 85vw;
}
2022-08-04 16:03:02 +02:00
@include screen-md-min {
width: 80vw;
}
2022-08-04 16:03:02 +02:00
@include screen-lg-min {
width: 62vw;
}
}
.unlock-screen-container {
z-index: $main-container-z-index;
display: flex;
justify-content: center;
align-items: center;
flex: 1 0 auto;
background: var(--color-background-alternative);
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: var(--color-background-default);
}