1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-18 15:33:21 +01:00
metamask-extension/ui/app/css/itcss/generic/index.scss

309 lines
4.5 KiB
SCSS
Raw Normal View History

/*
Generic
*/
@import './reset.scss';
* {
box-sizing: border-box;
}
2017-08-14 10:31:27 +02:00
html,
body {
2017-10-13 00:46:09 +02:00
font-family: Roboto, Arial;
2017-08-14 10:31:27 +02:00
color: #4d4d4d;
2018-05-06 00:12:41 +02:00
font-weight: 400;
2017-08-14 10:31:27 +02:00
background: #f7f7f7;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
html {
min-height: 500px;
}
.app-root {
overflow: hidden;
2017-08-14 10:31:27 +02:00
position: relative;
}
.app-primary {
display: flex;
}
2017-08-14 10:31:27 +02:00
input:focus,
textarea:focus {
outline: none;
}
2017-08-14 10:31:27 +02:00
/* stylelint-disable */
#app-content {
overflow-x: hidden;
height: 100%;
display: flex;
flex-direction: column;
2017-09-14 18:56:40 +02:00
@media screen and (max-width: $break-small) {
background-color: $white;
}
}
2017-08-14 10:31:27 +02:00
/* stylelint-enable */
a {
text-decoration: none;
color: inherit;
}
2017-08-14 10:31:27 +02:00
a:hover {
color: #df6b0e;
}
2017-08-06 22:24:06 +02:00
2017-08-14 10:31:27 +02:00
input.large-input,
textarea.large-input {
2017-08-06 22:24:06 +02:00
padding: 8px;
}
input.large-input {
height: 36px;
}
2018-01-29 21:29:01 +01:00
.allcaps {
text-transform: uppercase;
}
2018-03-07 01:15:45 +01:00
.page-container {
2018-05-20 08:04:19 +02:00
width: 408px;
background-color: $white;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
z-index: 25;
display: flex;
flex-flow: column;
2018-05-20 08:04:19 +02:00
border-radius: 8px;
&__header {
display: flex;
flex-flow: column;
border-bottom: 1px solid $geyser;
2018-05-20 08:04:19 +02:00
padding: 16px;
flex: 0 0 auto;
2018-02-13 07:39:15 +01:00
position: relative;
2018-05-20 08:04:19 +02:00
&--no-padding-bottom {
padding-bottom: 0;
}
2018-02-13 07:39:15 +01:00
}
2018-03-12 19:25:12 +01:00
&__header-close {
2018-02-13 07:39:15 +01:00
color: $tundora;
position: absolute;
2018-05-20 08:04:19 +02:00
top: 16px;
right: 16px;
2018-02-13 07:39:15 +01:00
cursor: pointer;
2018-03-12 19:25:12 +01:00
overflow: hidden;
&::after {
content: '\00D7';
font-size: 40px;
line-height: 20px;
2018-03-12 19:25:12 +01:00
}
}
2018-03-20 00:12:09 +01:00
&__header-row {
padding-bottom: 10px;
display: flex;
justify-content: space-between;
}
&__footer {
display: flex;
flex-flow: row;
justify-content: center;
border-top: 1px solid $geyser;
2018-05-20 08:04:19 +02:00
padding: 16px;
flex: 0 0 auto;
2018-02-13 07:39:15 +01:00
.btn-clear,
2018-03-16 21:09:49 +01:00
.btn-cancel,
.btn-confirm {
2018-02-13 07:39:15 +01:00
font-size: 1rem;
}
}
&__footer-button {
2018-03-12 19:25:12 +01:00
height: 55px;
font-size: 1rem;
text-transform: uppercase;
2018-05-20 08:04:19 +02:00
margin-right: 16px;
2018-02-13 07:39:15 +01:00
border-radius: 2px;
&:last-of-type {
margin-right: 0;
}
}
2018-03-16 21:09:49 +01:00
&__back-button {
color: #2f9ae0;
font-size: 1rem;
cursor: pointer;
font-weight: 400;
}
&__title {
2018-02-13 07:39:15 +01:00
color: $black;
font-size: 2rem;
font-weight: 500;
2018-03-12 19:25:12 +01:00
line-height: 2rem;
}
&__subtitle {
padding-top: .5rem;
line-height: initial;
font-size: .9rem;
2018-02-13 07:39:15 +01:00
color: $gray;
}
&__tabs {
display: flex;
2018-05-20 08:04:19 +02:00
margin-top: 16px;
}
&__tab {
min-width: 5rem;
2018-05-20 08:04:19 +02:00
padding: 8px;
color: $dusty-gray;
font-family: Roboto;
2018-05-20 08:04:19 +02:00
font-size: 1rem;
text-align: center;
cursor: pointer;
border-bottom: none;
2018-05-20 08:04:19 +02:00
margin-right: 16px;
&:last-of-type {
margin-right: 0;
}
&--selected {
color: $curious-blue;
border-bottom: 3px solid $curious-blue;
}
}
2018-03-12 19:25:12 +01:00
&--full-width {
width: 100% !important;
2018-03-12 19:25:12 +01:00
}
2018-03-16 21:09:49 +01:00
&--full-height {
height: 100% !important;
max-height: initial !important;
min-height: initial !important;
2018-03-16 21:09:49 +01:00
}
2018-03-12 19:25:12 +01:00
&__content {
overflow-y: auto;
2018-05-11 01:51:26 +02:00
flex: 1;
}
&__warning-container {
background: $linen;
padding: 20px;
display: flex;
align-items: start;
}
&__warning-message {
padding-left: 15px;
}
&__warning-title {
font-weight: 500;
}
&__warning-icon {
padding-top: 5px;
2018-03-12 19:25:12 +01:00
}
}
@media screen and (max-width: 250px) {
.page-container {
&__footer {
flex-flow: column-reverse;
}
&__footer-button {
width: 100%;
margin-bottom: 1rem;
margin-right: 0;
&:first-of-type {
margin-bottom: 0;
}
}
}
}
@media screen and (max-width: 575px) {
.page-container {
height: 100%;
width: 100%;
overflow-y: auto;
background-color: $white;
2018-03-12 19:25:12 +01:00
border-radius: 0;
2018-05-11 01:51:26 +02:00
flex: 1;
}
}
@media screen and (min-width: 576px) {
.page-container {
2018-05-20 08:04:19 +02:00
max-height: 82vh;
min-height: 570px;
flex: 0 0 auto;
}
}
.input-label {
padding-bottom: 10px;
font-weight: 400;
display: inline-block;
}
input.form-control {
padding-left: 10px;
font-size: 14px;
height: 40px;
border: 1px solid $alto;
border-radius: 3px;
width: 100%;
&::-webkit-input-placeholder {
font-weight: 100;
color: $dusty-gray;
}
&::-moz-placeholder {
font-weight: 100;
color: $dusty-gray;
}
&:-ms-input-placeholder {
font-weight: 100;
color: $dusty-gray;
}
&:-moz-placeholder {
font-weight: 100;
color: $dusty-gray;
}
&--error {
border: 1px solid $monzo;
}
}
2018-05-20 08:04:19 +02:00
.hide-text-overflow {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}