@use 'sass:color'; $dark-theme: false !default; @use 'constants' as consts with ($dark-theme: $dark-theme); @use 'calendar'; @use 'toast'; @use 'modal-dialog'; @use 'mixins'; a { color: consts.$link-color; text-decoration: none; &:hover { color: consts.$link-hover-color; } } body { display: flex; flex-direction: column; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: consts.$text-color; background-color: consts.$color-1; margin: 0px; .user-message { font-weight: 600; color: consts.$color-highlight; } .drag-handle { width: 20px; height: 20px; display: inline-block; vertical-align: bottom; background-color: blue; } .footer-container { margin: consts.$margin; align-self: center; font-size: 0.7em; } /// HEADER /// .header-container { margin: calc(2 * consts.$margin); display: flex; align-items: flex-end; justify-content: space-between; .title { font-size: 180%; font-style: italic; .logo { width: 50px; height: 50px; vertical-align: bottom; margin: 0px 10px 0px 0px; } } .header-menu { .user-menu { margin: consts.$margin; .user-edit-link { margin-left: consts.$margin; } } #select-website-language { margin: consts.$margin; padding: consts.$margin; } } } .main-container { display: flex; flex-direction: row; #recipes-list { margin: calc(2 * consts.$margin); ul { padding-left: 20px; li { margin-bottom: calc(consts.$margin / 2); a { padding: calc(consts.$margin / 2); } } } hr { margin-top: 10px; margin-bottom: 10px; height: 1px; color: consts.$color-3; background: consts.$color-3; font-size: 0; border: 0; } .recipe-item { white-space: preserve nowrap; padding: 2px; // Transparent border: to keep same size than '.recipe-item-current'. border: 0.1em solid rgba(0, 0, 0, 0); &.current { white-space: preserve nowrap; padding: 2px; border: 0.1em solid consts.$color-3; border-radius: 0.5em; color: consts.$text-highlight; background-color: consts.$color-2; } } } .content { margin: calc(2 * consts.$margin); flex-grow: 1; background-color: consts.$color-2; border: 0.1em solid consts.$color-3; border-radius: 1em; padding: 0.8em; h1 { text-align: center; } } #hidden-templates { display: none; } #recipe-edit { display: grid; .drag-handle { cursor: move; } .group { border: 0.1em solid color.adjust(consts.$color-3, $lightness: +30%); margin-top: 0px; margin-bottom: 0px; } .step { border: 0.1em solid color.adjust(consts.$color-3, $lightness: +30%); margin-top: 0px; margin-bottom: 0px; } .ingredient { border: 0.1em solid color.adjust(consts.$color-3, $lightness: +30%); margin-top: 0px; margin-bottom: 0px; } .dropzone { height: 10px; margin-top: 0px; margin-bottom: 0px; background-color: white; &.active { background-color: blue; } &.hover { background-color: red; } } } #recipe-view { .recipe-description { @include mixins.markdown; } } #logs { .current { font-weight: bold; } .line { padding: 3px; &.odd { background-color: consts.$color-1; } } .date-time { font-weight: bold; } .level { padding: 2px; border-radius: 4px; &.ERROR { color: white; background-color: red; } &.WARN { color: black; background-color: orange; } &.INFO { color: white; background-color: blue; } &.DEBUG { color: white; background-color: green; } &.TRACE { color: black; background-color: yellow; } } .thread-name, .thread-id { font-style: italic; font-size: 80%; } } // #dev-panel { // } form { display: grid; grid-template-columns: auto 1fr; gap: calc(consts.$margin / 2); align-items: center; } #sign-up form, #sign-in form, #ask-reset-password form, #reset-password form, #user-edit form { //