scratch-paint/src/components/paint-editor/paint-editor.css

89 lines
1.5 KiB
CSS
Raw Normal View History

2017-09-06 18:01:49 -04:00
@import "../css/colors.css";
@import "../css/units.css";
2017-08-30 10:50:24 -04:00
.editor-container {
display: flex;
flex-direction: column;
padding: calc(2 * $space);
}
.row {
display: flex;
flex-direction: row;
align-items: center;
}
2017-09-06 18:01:49 -04:00
.top-align-row {
padding-top:20px;
display: flex;
flex-direction: row;
}
2017-08-30 10:50:24 -04:00
.row + .row {
margin-top: calc(2 * $space);
}
.input-group + .input-group {
margin-left: calc(2 * $space);
}
$border-radius: 0.25rem;
.button {
height: 2rem;
padding: 0.25rem;
outline: none;
background: white;
border-radius: $border-radius;
border: 1px solid #ddd;
cursor: pointer;
font-size: 0.85rem;
transition: 0.2s;
}
.button > img {
flex-grow: 1;
max-width: 100%;
max-height: 100%;
min-width: 1.5rem;
}
.button-group {
margin: 0 1rem;
}
.button-group .button {
border-radius: 0;
border-left: none;
}
.button-group .button:last-of-type {
border-top-right-radius: $border-radius;
border-bottom-right-radius: $border-radius;
}
.button-group .button:first-of-type {
border-left: 1px solid #ddd;
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
}
.button:disabled > img {
opacity: 0.25;
}
2017-09-06 18:01:49 -04:00
.canvas-container {
width: 503px;
height: 403px;
background-color: #e8edf1;
border: 1px solid #e8edf1;
border-radius: 2px;
position: relative;
overflow: visible;
}
.mode-selector {
display: flex;
flex-direction: column;
2017-09-06 18:10:19 -04:00
}