/* square area */

.draw-on-gnome .draw-on-gnome-square-area {
    outline: 2px solid rgba(255, 0, 0, 0.7);
}

.draw-on-gnome:insensitive .draw-on-gnome-square-area {
    outline: none;
}

 /* "Ctrl + F1" on-screen-display */
 
.draw-on-gnome-helper {
    margin: 0px;
    border-radius: 0px;
}

.draw-on-gnome-helper > StBoxLayout {
    margin: 8px;
    margin-right: 16px;
    spacing: 0.5em;
}

.draw-on-gnome-helper > StBoxLayout StBoxLayout {
    spacing: 7em;
}

.draw-on-gnome-helper > StBoxLayout StBoxLayout StLabel {
    text-align: right;
    font-weight: normal;
}

.draw-on-gnome-helper-separator {
    min-height: 0.6em;
}

/* context menu */

.draw-on-gnome-menu {
   font-size: 0.97em; /* default: 1em */
   min-width: 21em; /* like the aggregate menu */
}

.draw-on-gnome-menu .popup-menu-item {
    padding-top: .3em; /* default: .4em */
    padding-bottom: .3em;
}

.draw-on-gnome-menu .popup-menu-item > .popup-menu-icon {
    icon-size: 1em; /* default: 1.09 */
    padding-top: 0.03em;
}

/* max size for uncontrolled contents (font, image and drawing names) */
.draw-on-gnome-menu-ellipsized {
    max-width: 21em;
}

.draw-on-gnome-menu .toggle-switch {
    height: 1.35em; /* default: 22px */
}

.draw-on-gnome-menu-separator-item {
    margin-top: 0;
    padding-top: 0.14em;
    padding-bottom: 0.14em;
}

.draw-on-gnome-menu-separator-item StLabel {
    font-size: 0;
}

.draw-on-gnome-menu-separator-item .popup-separator-menu-item {
    margin-top: 0.2em; /* default 6px */
    margin-bottom: 0.2em; /* default 6px */
}

.draw-on-gnome-menu-separator-item .popup-separator-menu-item-separator {
    background-color: transparent;
}

.draw-on-gnome-menu-thin-separator-item .popup-separator-menu-item-separator {
    margin-top: 0;
}

.draw-on-gnome-menu-destructive-button:hover {
    color: #e01b24; /* upstream destructive color, light: #e01b24, dark: #b2161d */
}

/* override .button upstream style class */
.draw-on-gnome-menu-action-button {
    min-height: 0;
    min-width: 0;
    border-radius: 32px;
    padding: 12px;
}

.draw-on-gnome-menu-action-button > StIcon {
    icon-size: 1em;
}

.draw-on-gnome-menu-slider-label {
    min-width: 3em;
    text-align: right;
}

.draw-on-gnome-menu-entry-item {
    padding-right: 1.15em; /* default 1.75em */
    spacing: 0; /* default 12px */
}

.draw-on-gnome-menu-entry {
    border: none;
    border-radius: 3px;
    padding: 0.35em 0.57em;
    width: 10em;
}

.draw-on-gnome-menu-entry-error {
    color: #f57900; /* upstream warning_color */
}

.draw-on-gnome-menu-entry:focus {
    padding: 0.35em 0.57em;
}

/* override .button upstream style class */
.draw-on-gnome-menu-inline-button {
    min-height: 1px;
    padding: 2px 4px; /* default 3px 24px */
}

.draw-on-gnome-menu-inline-button .popup-menu-icon {
    icon-size: 0.85em; /* default 1.09 */
}

