1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-18 07:23:21 +01:00
metamask-extension/ui/app/css/itcss/tools/utilities.scss

310 lines
3.9 KiB
SCSS
Raw Normal View History

/*
Utility Classes
*/
/* color */
.color-orange {
2017-08-14 10:31:27 +02:00
color: #f7861c; // TODO: move to settings/variables
}
.color-forest {
2017-08-14 10:31:27 +02:00
color: #0a5448; // TODO: move to settings/variables
}
/* lib */
.full-size {
height: 100%;
width: 100%;
}
.full-width {
width: 100%;
}
.full-flex-height {
display: flex;
flex: 1 1 auto;
flex-direction: column;
}
.full-height {
height: 100%;
}
.flex-column {
display: flex;
flex-direction: column;
}
.space-between {
justify-content: space-between;
}
.space-around {
justify-content: space-around;
}
.flex-column-bottom {
display: flex;
flex-direction: column-reverse;
}
.flex-row {
display: flex;
flex-direction: row;
}
.flex-space-between {
justify-content: space-between;
}
.flex-space-around {
justify-content: space-around;
}
.flex-right {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.flex-left {
display: flex;
flex-direction: row;
justify-content: flex-start;
}
.flex-fixed {
flex: none;
}
.flex-basis-auto {
flex-basis: auto;
}
.flex-grow {
flex: 1 1 auto;
}
.flex-wrap {
flex-wrap: wrap;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.flex-justify-center {
justify-content: center;
}
.flex-align-center {
align-items: center;
}
.flex-self-end {
align-self: flex-end;
}
.flex-self-stretch {
align-self: stretch;
}
.flex-vertical {
flex-direction: column;
}
.z-bump {
z-index: 1;
}
.select-none {
cursor: inherit;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pointer {
cursor: pointer;
}
2017-08-14 10:31:27 +02:00
.cursor-pointer {
cursor: pointer;
transform-origin: center center;
transition: transform 50ms ease-in-out;
}
2017-08-14 10:31:27 +02:00
.cursor-pointer:hover {
transform: scale(1.1);
}
2017-08-14 10:31:27 +02:00
.cursor-pointer:active {
2017-08-14 10:31:27 +02:00
transform: scale(.95);
}
.cursor-disabled {
cursor: not-allowed;
}
.margin-bottom-sml {
margin-bottom: 20px;
}
.margin-bottom-med {
margin-bottom: 40px;
}
.margin-right-left {
margin: 0 20px;
}
.bold {
2017-08-14 10:31:27 +02:00
font-weight: 700;
}
.text-transform-uppercase {
text-transform: uppercase;
}
.font-small {
font-size: 12px;
}
.font-medium {
font-size: 1.2em;
}
hr.horizontal-line {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
.hover-white:hover {
2017-08-14 10:31:27 +02:00
background: $white;
}
.red-dot {
2017-08-14 10:31:27 +02:00
background: #e91550;
color: $white;
border-radius: 10px;
}
.diamond {
transform: rotate(45deg);
background: #038789;
}
.hollow-diamond {
transform: rotate(45deg);
border: 3px solid #690496;
}
.golden-square {
2017-08-14 10:31:27 +02:00
background: #ebb33f;
}
.pending-dot {
2017-08-14 10:31:27 +02:00
background: $red;
left: 14px;
top: 14px;
2017-08-14 10:31:27 +02:00
color: $white;
border-radius: 10px;
height: 20px;
min-width: 20px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
z-index: 1;
}
.keyring-label {
z-index: 1;
2017-10-18 07:36:53 +02:00
font-size: 8px;
line-height: 8px;
background: rgba(255, 255, 255, 0.4);
color: #fff;
border-radius: 10px;
padding: 4px;
2017-10-18 07:36:53 +02:00
text-align: center;
height: 15px;
}
.ether-balance {
display: flex;
align-items: center;
}
.tabSection {
min-width: 350px;
}
.menu-icon {
display: inline-block;
2017-08-04 03:50:29 +02:00
height: 12px;
min-width: 12px;
margin: 13px;
}
2017-08-04 03:50:29 +02:00
.ether-icon {
background: rgb(0, 163, 68);
border-radius: 20px;
}
2017-08-14 10:31:27 +02:00
.testnet-icon {
2017-08-14 10:31:27 +02:00
background: #2465e1;
}
.drop-menu-item {
display: flex;
align-items: center;
}
.invisible {
visibility: hidden;
}
.one-line-concat {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.critical-error {
text-align: center;
margin-top: 20px;
2017-08-14 10:31:27 +02:00
color: $red;
}
/*
Misc
*/
// TODO: move into component-level contextual 'active' state
2017-08-06 22:24:06 +02:00
.letter-spacey {
2017-08-14 10:31:27 +02:00
letter-spacing: .1em;
2017-08-06 22:24:06 +02:00
}
.active {
color: #909090;
}
2017-08-06 22:24:06 +02:00
.check {
margin-left: 7px;
2017-08-14 10:31:27 +02:00
color: #f7861c;
2017-08-06 22:24:06 +02:00
flex: 1 0 auto;
display: flex;
justify-content: flex-end;
2017-08-14 10:31:27 +02:00
}