diff --git a/resources/assets/js/components/overlay.js b/resources/assets/js/components/overlay.js index 2dbf4eb9a..1ba5efcea 100644 --- a/resources/assets/js/components/overlay.js +++ b/resources/assets/js/components/overlay.js @@ -6,7 +6,7 @@ class Overlay { elem.addEventListener('click', event => { if (event.target === elem) return this.hide(); }); - let closeButtons = elem.querySelectorAll('.overlay-close'); + let closeButtons = elem.querySelectorAll('.popup-header-close'); for (let i=0; i < closeButtons.length; i++) { closeButtons[i].addEventListener('click', this.hide.bind(this)); } diff --git a/resources/assets/sass/_animations.scss b/resources/assets/sass/_animations.scss index c03553d15..85fd96206 100644 --- a/resources/assets/sass/_animations.scss +++ b/resources/assets/sass/_animations.scss @@ -36,26 +36,6 @@ } } -.anim.menuIn { - transform-origin: 100% 0%; - animation-name: menuIn; - animation-duration: 120ms; - animation-delay: 0s; - animation-timing-function: cubic-bezier(.62, .28, .23, .99); -} - -@keyframes menuIn { - from { - opacity: 0; - transform: scale3d(0, 0, 1); - } - - to { - opacity: 1; - transform: scale3d(1, 1, 1); - } -} - @keyframes loadingBob { 0% { transform: translate3d(0, 0, 0); @@ -89,8 +69,4 @@ animation-duration: 180ms; animation-delay: 0s; animation-timing-function: cubic-bezier(.62, .28, .23, .99); -} - -.selectFade { - transition: background-color ease-in-out 3000ms; } \ No newline at end of file diff --git a/resources/assets/sass/_blocks.scss b/resources/assets/sass/_blocks.scss index 51ba25e05..e1a2f9e1f 100644 --- a/resources/assets/sass/_blocks.scss +++ b/resources/assets/sass/_blocks.scss @@ -1,12 +1,7 @@ -/* -* This file contains styling for custom block formats. -*/ - /** * Callouts */ - .callout { border-left: 3px solid #BBB; background-color: #EEE; @@ -58,14 +53,17 @@ } } +/** + * Card-style blocks + */ + .card { background-color: #FFF; box-shadow: $bs-card; border-radius: 3px; border: 1px solid transparent; h3 { - padding: $-m; - padding-bottom: $-xs; + padding: $-m $-m $-xs; margin: 0; font-size: $fs-m; color: #222; @@ -84,21 +82,11 @@ } } -.sidebar .card { - .body, .empty-text { - padding: $-s $-m; - } - h3 + .body { - padding-top: $-xs; - } -} - .card.drag-card { border: 1px solid #DDD; border-radius: 4px; display: flex; - padding: 0; - padding-left: $-s + 28px; + padding: 0 0 0 ($-s + 28px); margin: $-s 0; position: relative; .drag-card-action { @@ -106,14 +94,12 @@ } .handle, .drag-card-action { display: flex; - padding: 0; align-items: center; text-align: center; justify-content: center; width: 28px; flex-grow: 0; - padding-left: $-xs; - padding-right: $-xs; + padding: 0 $-xs; &:hover { background-color: #EEE; } @@ -139,42 +125,6 @@ } } -.well { - background-color: #F8F8F8; - padding: $-m; - border: 1px solid #DDD; -} - -.tag-item { - display: inline-flex; - margin-bottom: $-xs; - margin-right: $-xs; - border-radius: 4px; - border: 1px solid #CCC; - overflow: hidden; - font-size: 0.85em; - a, a:hover, a:active { - padding: 4px 8px; - color: #777; - transition: background-color ease-in-out 80ms; - text-decoration: none; - } - a:hover { - background-color: rgba(255, 255, 255, 0.7); - } - svg { - fill: #888; - } - .tag-value { - border-left: 1px solid #DDD; - background-color: rgba(255, 255, 255, 0.5); - } -} - -.tag-list div:last-child .tag-item { - margin-bottom: 0; -} - .grid-card { display: flex; flex-direction: column; @@ -243,4 +193,37 @@ .content-wrap.card { padding: $-m $-l; } +} + +/** + * Tags + */ +.tag-item { + display: inline-flex; + margin-bottom: $-xs; + margin-right: $-xs; + border-radius: 4px; + border: 1px solid #CCC; + overflow: hidden; + font-size: 0.85em; + a, a:hover, a:active { + padding: 4px 8px; + color: #777; + transition: background-color ease-in-out 80ms; + text-decoration: none; + } + a:hover { + background-color: rgba(255, 255, 255, 0.7); + } + svg { + fill: #888; + } + .tag-value { + border-left: 1px solid #DDD; + background-color: rgba(255, 255, 255, 0.5); + } +} + +.tag-list div:last-child .tag-item { + margin-bottom: 0; } \ No newline at end of file diff --git a/resources/assets/sass/_buttons.scss b/resources/assets/sass/_buttons.scss index 093da80ca..eb7a09342 100644 --- a/resources/assets/sass/_buttons.scss +++ b/resources/assets/sass/_buttons.scss @@ -1,15 +1,14 @@ +button { + font-size: 100%; +} @mixin generate-button-colors($textColor, $backgroundColor) { background-color: $backgroundColor; color: $textColor; fill: $textColor; - text-transform: uppercase; border: 1px solid $backgroundColor; - vertical-align: top; &:hover { background-color: lighten($backgroundColor, 8%); - //box-shadow: $bs-med; - text-decoration: none; color: $textColor; } &:active { @@ -18,7 +17,6 @@ &:focus { background-color: lighten($backgroundColor, 4%); box-shadow: $bs-light; - text-decoration: none; color: $textColor; } } @@ -26,7 +24,7 @@ // Button Specific Variables $button-border-radius: 2px; -.button-base { +.button { text-decoration: none; font-size: 0.85rem; line-height: 1.4em; @@ -34,29 +32,36 @@ $button-border-radius: 2px; margin-top: $-xs; margin-bottom: $-xs; display: inline-block; - border: none; font-weight: 400; outline: 0; border-radius: $button-border-radius; cursor: pointer; - transition: all ease-in-out 120ms; - box-shadow: 0; - @include generate-button-colors(#EEE, $primary); + transition: background-color ease-in-out 120ms, box-shadow ease-in-out 120ms; + box-shadow: none; + background-color: $primary; + color: #FFF; + fill: #FFF; + text-transform: uppercase; + border: 1px solid $primary; + vertical-align: top; + &:hover, &:focus { + text-decoration: none; + } + &:active { + background-color: darken($primary, 8%); + } } - -.button, input[type="button"], input[type="submit"] { - @extend .button-base; - &.pos { - @include generate-button-colors(#EEE, $positive); - } - &.neg { - @include generate-button-colors(#EEE, $negative); - } - &.secondary { - @include generate-button-colors(#EEE, $secondary); - } - &.muted { - @include generate-button-colors(#EEE, #AAA); +.button.primary { + @include generate-button-colors(#FFFFFF, $primary); +} +.button.outline { + background-color: transparent; + color: #888; + fill: #888; + border: 1px solid #DDD; + &:hover, &:focus, &:active { + box-shadow: none; + background-color: #EEE; } } @@ -69,91 +74,27 @@ $button-border-radius: 2px; padding: $-xs*1.2 $-s; } -.button.outline { - background-color: transparent; - color: #888; - fill: #888; - border: 1px solid #DDD; - &:hover, &:focus, &:active { - box-shadow: none; - background-color: #EEE; - } - &.page { - border-color: $color-page; - color: $color-page; - fill: $color-page; - &:hover, &:focus, &:active { - background-color: $color-page; - color: #FFF; - fill: #FFF; - } - } - &.chapter { - border-color: $color-chapter; - color: $color-chapter; - fill: $color-chapter; - &:hover, &:focus, &:active { - background-color: $color-chapter; - color: #FFF; - fill: #FFF; - } - } - &.book { - border-color: $color-book; - color: $color-book; - fill: $color-book; - &:hover, &:focus, &:active { - background-color: $color-book; - color: #FFF; - fill: #FFF; - } - } -} - .text-button { - @extend .link; + cursor: pointer; background-color: transparent; padding: 0; margin: 0; border: none; user-select: none; font-size: 0.75rem; + line-height: 1.4em; &:focus, &:active { outline: 0; } &:hover { text-decoration: none; } - &.neg { - color: $negative; - } - &.muted { - color: #666; - } -} - -.button-group { - @include clearfix; - .button, button[type="button"] { - margin: $-xs 0 $-xs 0; - float: left; - border-radius: 0; - &:first-child { - border-radius: $button-border-radius 0 0 $button-border-radius; - } - &:last-child { - border-radius: 0 $button-border-radius $button-border-radius 0; - } - } } .button.block { width: 100%; - text-align: center; + text-align: left; display: block; - &.text-left { - text-align: left; - } } .button.icon { @@ -171,9 +112,7 @@ $button-border-radius: 2px; width: 24px; height: 24px; } - padding: $-s $-m; - padding-bottom: $-s - 2px; - padding-left: $-m*2 + 24px; + padding: $-s $-m ($-s - 2px) ($-m*2 + 24px); } .button[disabled] { diff --git a/resources/assets/sass/_colors.scss b/resources/assets/sass/_colors.scss index 644b6b8af..4dfc9d4c3 100644 --- a/resources/assets/sass/_colors.scss +++ b/resources/assets/sass/_colors.scss @@ -1,104 +1,66 @@ + /* - * Text colors + * Status text colors */ -p.pos, p .pos, span.pos, .text-pos { - color: $positive; - fill: $positive; - &:hover { - color: $positive; - fill: $positive; - } +.text-pos, .text-pos:hover, .text-pos-hover:hover { + color: $positive !important; + fill: $positive !important; } -p.neg, p .neg, span.neg, .text-neg { - color: $negative; - fill: $negative; - &:hover { - color: $negative; - fill: $negative; - } +.text-warn, .text-warn:hover, .text-warn-hover:hover { + color: $warning !important; + fill: $warning !important; } -p.muted, p .muted, span.muted, .text-muted { - color: lighten($text-dark, 26%); - fill: lighten($text-dark, 26%); +.text-neg, .text-neg:hover, .text-neg-hover:hover { + color: $negative !important; + fill: $negative !important; +} + +/* + * Style text colors + */ +.text-primary, .text-primary:hover, .text-primary-hover:hover { + color: $primary !important; + fill: $primary !important; +} + +.text-muted { + color: lighten($text-dark, 26%) !important; + fill: lighten($text-dark, 26%) !important; &.small, .small { - color: lighten($text-dark, 32%); - fill: lighten($text-dark, 32%); + color: lighten($text-dark, 32%) !important; + fill: lighten($text-dark, 32%) !important; } } -p.primary, p .primary, span.primary, .text-primary { - color: $primary; - fill: $primary; - &:hover { - color: $primary; - fill: $primary; - } -} - -p.secondary, p .secondary, span.secondary, .text-secondary { - color: $secondary; - fill: $secondary; - &:hover { - color: $secondary; - fill: $secondary; - } -} - -.text-bookshelf { +/* + * Entity text colors + */ +.text-bookshelf, .text-bookshelf:hover { color: $color-bookshelf; fill: $color-bookshelf; - &:hover { - color: $color-bookshelf; - fill: $color-bookshelf; - } } -.text-book { +.text-book, .text-book:hover { color: $color-book; fill: $color-book; - &:hover { - color: $color-book; - fill: $color-book; - } } -.text-page { +.text-page, .text-page:hover { color: $color-page; fill: $color-page; - &:hover { - color: $color-page; - fill: $color-page; - } - &.draft { - color: $color-page-draft; - fill: $color-page-draft; - } - &.draft:hover { - color: $color-page-draft; - fill: $color-page-draft; - } } -.text-chapter { +.text-page.draft, .text-page.draft:hover { + color: $color-page-draft; + fill: $color-page-draft; +} +.text-chapter, .text-chapter:hover { color: $color-chapter; fill: $color-chapter; - &:hover { - color: $color-chapter; - fill: $color-chapter; - } -} -.faded .text-book:hover { - color: $color-book !important; - fill: $color-book !important; -} -.faded .text-chapter:hover { - color: $color-chapter !important; - fill: $color-chapter !important; -} -.faded .text-page:hover { - color: $color-page !important; - fill: $color-page !important; } +/* + * Entity background colors + */ .bg-book { background-color: $color-book; } diff --git a/resources/assets/sass/_components.scss b/resources/assets/sass/_components.scss index f835a1991..09b7c5f02 100644 --- a/resources/assets/sass/_components.scss +++ b/resources/assets/sass/_components.scss @@ -115,7 +115,7 @@ } } -.corner-button { +.popup-footer button, .popup-header-close { position: absolute; top: 0; right: 0; @@ -123,6 +123,16 @@ height: 40px; border-radius: 0; box-shadow: none; + &:active { + outline: 0; + } +} +.popup-header-close { + background-color: transparent; + border: 0; + color: #FFF; + font-size: 16px; + padding: 0 $-m; } .popup-header, .popup-footer { @@ -135,6 +145,9 @@ padding: 8px $-m; } } +.popup-footer { + margin-top: 1px; +} body.flexbox-support #entity-selector-wrap .popup-body .form-group { height: 444px; min-height: 444px; diff --git a/resources/assets/sass/_html.scss b/resources/assets/sass/_html.scss index a89d030a1..7c3a3c49b 100644 --- a/resources/assets/sass/_html.scss +++ b/resources/assets/sass/_html.scss @@ -17,8 +17,4 @@ body { color: #444; -webkit-font-smoothing: antialiased; background-color: #F2F2F2; -} - -button { - font-size: 100%; } \ No newline at end of file diff --git a/resources/assets/sass/_layout.scss b/resources/assets/sass/_layout.scss index 6368bf31b..53381fc14 100644 --- a/resources/assets/sass/_layout.scss +++ b/resources/assets/sass/_layout.scss @@ -35,6 +35,9 @@ &.right-focus { grid-template-columns: 1fr 3fr; } + &.gap-y-xs { + grid-row-gap: $-xs; + } &.gap-xl { grid-column-gap: $-xl; grid-row-gap: $-xl; diff --git a/resources/assets/sass/_mixins.scss b/resources/assets/sass/_mixins.scss index 13c81ae9e..1c45ebd30 100644 --- a/resources/assets/sass/_mixins.scss +++ b/resources/assets/sass/_mixins.scss @@ -8,12 +8,3 @@ @mixin between($min, $max) { @media screen and (min-width: $min) and (max-width: $max) { @content; } } -@mixin clearfix() { - &:after { - display: block; - content: ''; - font-size: 0; - clear: both; - position: relative; - } -} diff --git a/resources/assets/sass/_text.scss b/resources/assets/sass/_text.scss index 1a9afd794..dd1c74d24 100644 --- a/resources/assets/sass/_text.scss +++ b/resources/assets/sass/_text.scss @@ -90,7 +90,7 @@ h2.list-heading { /* * Link styling */ -a, .link { +a { color: $primary; cursor: pointer; text-decoration: none; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 900958812..14ed507bc 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -36,7 +36,7 @@
@foreach($socialDrivers as $driver => $name)
- + @icon('auth/' . $driver) {{ trans('auth.log_in_with', ['socialDriver' => $name]) }} diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php index 6746904d4..91c9dc2ff 100644 --- a/resources/views/auth/passwords/email.blade.php +++ b/resources/views/auth/passwords/email.blade.php @@ -5,7 +5,7 @@

{{ trans('auth.reset_password') }}

-

{{ trans('auth.reset_password_send_instructions') }}

+

{{ trans('auth.reset_password_send_instructions') }}

{!! csrf_field() !!} diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 615ade3df..ec8f57625 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -42,7 +42,7 @@
@foreach($socialDrivers as $driver => $name)
- + @icon('auth/' . $driver) {{ trans('auth.sign_up_with', ['socialDriver' => $name]) }} diff --git a/resources/views/base.blade.php b/resources/views/base.blade.php index bc139e17f..03d6f680a 100644 --- a/resources/views/base.blade.php +++ b/resources/views/base.blade.php @@ -30,7 +30,7 @@ @yield('content') -
+
@icon('chevron-up') {{ trans('common.back_to_top') }}
diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index 04352d898..fbf928102 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -29,17 +29,17 @@ @endforeach
@else -
- {{--TODO--}} +
+ {{--TODO - Empty States --}}

{{ trans('entities.books_empty_contents') }}

@if(userCan('page-create', $book)) - @icon('page'){{ trans('entities.books_empty_create_page') }} + @icon('page'){{ trans('entities.books_empty_create_page') }} @endif @if(userCan('page-create', $book) && userCan('chapter-create', $book))   -{{ trans('entities.books_empty_or') }}-    @endif @if(userCan('chapter-create', $book)) - @icon('chapter'){{ trans('entities.books_empty_add_chapter') }} + @icon('chapter'){{ trans('entities.books_empty_add_chapter') }} @endif
@endif diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php index 6dd41b890..7f2c135a0 100644 --- a/resources/views/chapters/show.blade.php +++ b/resources/views/chapters/show.blade.php @@ -26,18 +26,18 @@ @endforeach
@else - {{--TODO--}} -
+ {{--TODO - Empty States --}} +

{{ trans('entities.chapters_empty') }}

@if(userCan('page-create', $chapter)) - @icon('page'){{ trans('entities.books_empty_create_page') }} + @icon('page'){{ trans('entities.books_empty_create_page') }} @endif @if(userCan('page-create', $chapter) && userCan('book-update', $book))   -{{ trans('entities.books_empty_or') }}-     @endif @if(userCan('book-update', $book)) - @icon('book'){{ trans('entities.books_empty_sort_current_book') }} + @icon('book'){{ trans('entities.books_empty_sort_current_book') }} @endif

diff --git a/resources/views/comments/comment.blade.php b/resources/views/comments/comment.blade.php index b68a2fdc8..9f955f691 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -13,8 +13,8 @@ @endif @@ -64,7 +64,7 @@
- +
- +
diff --git a/resources/views/pages/guest-create.blade.php b/resources/views/pages/guest-create.blade.php index 2d059bf36..719abc276 100644 --- a/resources/views/pages/guest-create.blade.php +++ b/resources/views/pages/guest-create.blade.php @@ -1,5 +1,7 @@ @extends('base') +{{--TODO - Check design of this view--}} + @section('content')
@@ -14,8 +16,8 @@
- {{ trans('common.cancel') }} - + {{ trans('common.cancel') }} +
diff --git a/resources/views/pages/revisions.blade.php b/resources/views/pages/revisions.blade.php index e45bd7779..9d968c016 100644 --- a/resources/views/pages/revisions.blade.php +++ b/resources/views/pages/revisions.blade.php @@ -60,7 +60,7 @@
{!! csrf_field() !!} - +
diff --git a/resources/views/partials/custom-styles.blade.php b/resources/views/partials/custom-styles.blade.php index bbe79cf84..47b7a832c 100644 --- a/resources/views/partials/custom-styles.blade.php +++ b/resources/views/partials/custom-styles.blade.php @@ -1,22 +1,19 @@ diff --git a/resources/views/settings/maintenance.blade.php b/resources/views/settings/maintenance.blade.php index f7f813f26..74a8dbb75 100644 --- a/resources/views/settings/maintenance.blade.php +++ b/resources/views/settings/maintenance.blade.php @@ -18,7 +18,7 @@

{{ trans('settings.maint_image_cleanup') }}

-

{{ trans('settings.maint_image_cleanup_desc') }}

+

{{ trans('settings.maint_image_cleanup_desc') }}

@@ -26,7 +26,7 @@
@if(session()->has('cleanup-images-warning')) -

+

{{ session()->get('cleanup-images-warning') }}

diff --git a/resources/views/settings/roles/form.blade.php b/resources/views/settings/roles/form.blade.php index f16706dd1..67b4ec058 100644 --- a/resources/views/settings/roles/form.blade.php +++ b/resources/views/settings/roles/form.blade.php @@ -48,7 +48,7 @@

{{ trans('settings.role_asset_desc') }}

@if (isset($role) && $role->system_name === 'admin') -

{{ trans('settings.role_asset_admins') }}

+

{{ trans('settings.role_asset_admins') }}

@endif diff --git a/resources/views/shelves/list-item.blade.php b/resources/views/shelves/list-item.blade.php index 5766ca755..a3bb2fd52 100644 --- a/resources/views/shelves/list-item.blade.php +++ b/resources/views/shelves/list-item.blade.php @@ -9,7 +9,7 @@ -
+
@foreach($shelf->books as $book) @else

+ {{-- TODO - Empty Shelf State--}}


{{ trans('entities.shelves_empty_contents') }} @if(userCan('bookshelf-create', $shelf))
-
{{ trans('entities.shelves_edit_and_assign') }} + {{ trans('entities.shelves_edit_and_assign') }} @endif

@endif diff --git a/resources/views/users/form.blade.php b/resources/views/users/form.blade.php index 1e103ec70..16a7ebdeb 100644 --- a/resources/views/users/form.blade.php +++ b/resources/views/users/form.blade.php @@ -1,6 +1,6 @@ @if($authMethod === 'system' && $user->system_name == 'public') -

{{ trans('settings.users_system_public') }}

+

{{ trans('settings.users_system_public') }}

@endif