/* variables */ $black: #000000; $white: #ffffff; $blue: #496893; $red: #d9534f; $green: #5cb85c; $light-gray: #f5f5f5; $medium-gray: #c8c8c8; $body-font-family: Georgia, serif; $body-font-size: 18px; $heading-font-size: 26px; /* global */ * { box-sizing: border-box; margin: 0; padding: 0; } ul { list-style: none; } a { color: $blue; text-decoration: none; &:hover { text-decoration: underline; } } body { font-family: $body-font-family; font-size: $body-font-size; line-height: 1.5; min-height: 100vh; } iframe { border: none; } .heading { border-bottom: 1px solid $black; font-size: $heading-font-size; margin-bottom: 15px; } /* errors & flashes */ .notice, .error { align-items: center; color: $white; display: flex; font-size: 14px; padding: 10px; } .error { background: $red; } .notice { background: $green; } .notice__message, .error__message { flex: 1; } .error__button { background: $white; border: none; color: $black; cursor: pointer; font-family: $body-font-family; font-size: 14px; padding: 5px 10px; &:hover { background: $light-gray; } } /* layout */ .container { border-left: 1px solid $medium-gray; border-right: 1px solid $medium-gray; display: flex; flex-direction: column; margin: auto; max-width: 768px; min-height: 100vh; } .main { background: $light-gray; display: flex; flex: 1; padding: 20px; width: 100%; } /* header */ .header { background: $blue; color: $white; @media(max-width: 1000px) { min-height: auto; width: 100%; } } .header__title { color: $white; font-size: 24px; padding: 15px; } .nav { background: $white; display: flex; padding: 10px 0; } .nav__item { padding: 5px 10px; } /* forms */ .form { width: 100%; } .form__field { display: flex; flex-direction: column; margin: 15px 0; width: 100%; } .form__field--submit { display: block; } .form__field, .form__label { margin-bottom: 5px; } .form__date-field, .form__textarea, .form__text-field { border: 1px solid $medium-gray; border-radius: 4px; font-family: $body-font-family; font-size: $body-font-size; padding: 10px; } .form__textarea { resize: vertical; } .form__preview { margin-top: 20px; } .button.form__submit { background: $white; border: 1px solid $medium-gray; cursor: pointer; font-family: $body-font-family; font-size: $body-font-size; padding: 10px; &:hover { background: $light-gray; } @media(max-width: 500px) { width: 100%; } } /* post listing */ .post-listing { width: 100%; } .post-listing__item { display: flex; padding: 10px; position: relative; width: 100%; &:nth-child(even) { background: white; } } .post-listing__item--changed:before { color: $red; content: '•'; display: block; font-size: $heading-font-size; left: -15px; line-height: 16px; position: absolute; } .post-listing__link { flex: 1; }