1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/css/itcss/generic/index.scss

240 lines
3.4 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;
font-weight: 300;
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 {
width: 400px;
background-color: $white;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
z-index: 25;
display: flex;
flex-flow: column;
2018-03-12 19:25:12 +01:00
border-radius: 7px;
&__header {
display: flex;
flex-flow: column;
border-bottom: 1px solid $geyser;
2018-03-12 19:25:12 +01:00
padding: 20px;
flex: 0 0 auto;
2018-02-13 07:39:15 +01:00
position: relative;
}
2018-03-12 19:25:12 +01:00
&__header-close {
2018-02-13 07:39:15 +01:00
color: $tundora;
position: absolute;
2018-03-12 19:25:12 +01:00
top: 20px;
right: 20px;
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;
padding: 1.6rem;
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 {
width: 165px;
2018-03-12 19:25:12 +01:00
height: 55px;
font-size: 1rem;
text-transform: uppercase;
2018-03-26 07:19:42 +02:00
margin-right: 1.2rem;
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 {
padding: 0 1.3rem;
display: flex;
}
&__tab {
min-width: 5rem;
padding: .2rem .8rem .9rem;
color: $dusty-gray;
font-family: Roboto;
font-size: 1.1rem;
line-height: initial;
text-align: center;
cursor: pointer;
border-bottom: none;
margin-right: 1rem;
&:hover {
color: $black;
}
&:last-of-type {
margin-right: 0;
}
&--selected {
color: $curious-blue;
border-bottom: 3px solid $curious-blue;
&:hover {
color: $curious-blue;
}
}
}
2018-03-12 19:25:12 +01:00
&--full-width {
width: initial;
}
2018-03-16 21:09:49 +01:00
&--full-height {
height: 100%;
}
2018-03-12 19:25:12 +01:00
&__content {
height: 100%;
overflow-y: auto;
}
}
@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;
}
}