scratch-paint/src/components/paint-editor/paint-editor.css
Matthew Taylor 8c2fc475f6 updates from @paulkaplan’s feedback
1. Removes the cursour over loupe, and fills the loupe center’s color correctly
2. Fixes a console error and loupe initialization issue
3. Increases the size of the swatches

Thanks @paulkaplan!
2017-12-15 10:09:19 -05:00

170 lines
3.1 KiB
CSS

@import "../../css/colors.css";
@import "../../css/units.css";
.editor-container {
display: flex;
flex-direction: column;
padding: calc(3 * $grid-unit);
}
.row {
display: flex;
flex-direction: row;
align-items: center;
}
.editor-container-top {
border-bottom: 1px dashed $ui-pane-border;
padding-bottom: calc(2 * $grid-unit);
}
.top-align-row {
display: flex;
padding-top: calc(5 * $grid-unit);
flex-direction: row;
}
.row + .row {
margin-top: calc(2 * $grid-unit);
}
.mod-dashed-border {
border-right: 1px dashed $ui-pane-border;
padding-right: calc(2 * $grid-unit);
}
.mod-unselect {
user-select: none;
}
.mod-labeled-icon-height {
height: 2.85rem; /* for the second row so the dashed borders are equal in size */
}
$border-radius: 0.25rem;
.button-group-button {
display: inline-block;
border: 1px solid $ui-pane-border;
border-radius: 0;
border-left: none;
padding: .35rem;
}
.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 $ui-pane-border;
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
}
.button-group-button.mod-left-border {
border-left: 1px solid $ui-pane-border;
}
.button-group-button.mod-no-right-border {
border-right: none;
}
.button-group-button-icon {
width: 1.25rem;
height: 1.25rem;
vertical-align: middle;
}
.mod-context-menu {
display: flex;
flex-direction: column;
}
.mod-top-divider {
border-top: 1px solid $ui-pane-border;
}
.mod-menu-item {
display: flex;
margin: 0 -$grid-unit;
min-width: 6.25rem;
padding: calc(3 * $grid-unit);
white-space: nowrap;
cursor: pointer;
transition: 0.1s ease;
align-items: center;
font-family: "Helvetica Neue", Helvetica, sans-serif;
}
.mod-disabled {
cursor: auto;
}
.mod-menu-item:hover {
background: $motion-transparent;
}
.mod-disabled:hover {
background-color: transparent;
}
.menu-item-icon {
margin-right: calc(2 * $grid-unit);
}
.mod-mode-tools {
margin-left: calc(2 * $grid-unit);
}
.canvas-container {
width: 480px;
height: 360px;
box-sizing: content-box;
border: 1px solid #e8edf1;
border-radius: .25rem;
position: relative;
overflow: visible;
}
.with-eye-dropper {
cursor: none;
}
.mode-selector {
display: flex;
margin-right: calc(2 * $grid-unit);
max-width: 6rem;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
align-content: flex-start;
justify-content: space-between;
}
.zoom-controls {
display: flex;
flex-direction: row-reverse;
}
.color-picker-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
@media only screen and (max-width: $full-size-paint) {
.editor-container {
padding: calc(3 * $grid-unit) $grid-unit;
}
.mode-selector {
margin-right: $grid-unit;
flex-direction: column;
justify-content: flex-start;
}
}