diff --git a/app/Helper/Sharing.php b/app/Helper/Sharing.php index 10689e3e..b51f7e2f 100644 --- a/app/Helper/Sharing.php +++ b/app/Helper/Sharing.php @@ -6,7 +6,7 @@ use App\Models\Link; class Sharing { - public static $linkClasses = 'share-link btn btn-xs btn-outline-secondary'; + public static $linkClasses = 'share-link btn btn-xs btn-light'; public static $placeholders = [ '#URL#', diff --git a/resources/assets/js/components/LoadingButton.js b/resources/assets/js/components/LoadingButton.js index d690ed0a..62e776b6 100644 --- a/resources/assets/js/components/LoadingButton.js +++ b/resources/assets/js/components/LoadingButton.js @@ -8,13 +8,9 @@ export default class LoadingButton { } onClick () { - if (this.formIsValid()) { + if (this.$form.checkValidity()) { this.$btn.disabled = true; this.$form.submit(); } } - - formIsValid () { - return this.$form.checkValidity(); - } } diff --git a/resources/assets/sass/_variables.scss b/resources/assets/sass/_variables.scss index 5060d4b6..3090d41d 100644 --- a/resources/assets/sass/_variables.scss +++ b/resources/assets/sass/_variables.scss @@ -87,6 +87,8 @@ $body-color-muted: $gray; // Links $link-color: $primary; +$link-shade-percentage: 40%; +$link-hover-color: shift-color($link-color, $link-shade-percentage); $link-hover-decoration: none; @@ -126,6 +128,7 @@ $btn-padding-x-xs: $input-btn-padding-x-xs; $btn-font-size-xs: $input-btn-font-size-xs; $btn-line-height-xs: $input-btn-line-height-xs; +$btn-hover-bg-tint-amount: 20%; $btn-border-radius-xs: $border-radius-xs; diff --git a/resources/assets/sass/custom/_app.scss b/resources/assets/sass/custom/_app.scss index 335a86b9..a69dea7d 100644 --- a/resources/assets/sass/custom/_app.scss +++ b/resources/assets/sass/custom/_app.scss @@ -99,6 +99,10 @@ body:not(.bookmarklet) { font-size: 90%; } +.text-xs { + font-size: $font-size-xs; +} + .btn-xs { @include button-size($btn-padding-y-xs, $btn-padding-x-xs, $btn-font-size-xs, $btn-border-radius-xs); } diff --git a/resources/assets/sass/custom/_fixes.scss b/resources/assets/sass/custom/_fixes.scss index 954e5bdf..c125fd18 100644 --- a/resources/assets/sass/custom/_fixes.scss +++ b/resources/assets/sass/custom/_fixes.scss @@ -1,5 +1,5 @@ // Bootstrap 5 Fixes -.custom-control-label { +.form-check-label { cursor: pointer; } diff --git a/resources/views/app/bookmarklet/login.blade.php b/resources/views/app/bookmarklet/login.blade.php index 53f82a3d..c2785417 100644 --- a/resources/views/app/bookmarklet/login.blade.php +++ b/resources/views/app/bookmarklet/login.blade.php @@ -10,7 +10,7 @@
@csrf -
+
@@ -30,7 +30,7 @@ @endif
-
+
@@ -50,12 +50,12 @@
-
+
- -
diff --git a/resources/views/app/import/import.blade.php b/resources/views/app/import/import.blade.php index d86a9910..048957f0 100644 --- a/resources/views/app/import/import.blade.php +++ b/resources/views/app/import/import.blade.php @@ -12,7 +12,7 @@

@lang('import.import_help')

-
+
diff --git a/resources/views/app/search/partials/table.blade.php b/resources/views/app/search/partials/table.blade.php index facad8c3..4ce714a0 100644 --- a/resources/views/app/search/partials/table.blade.php +++ b/resources/views/app/search/partials/table.blade.php @@ -11,14 +11,14 @@ @foreach($results as $link) - + {{ $link->title }} @if($link->tags->count() > 0)
@foreach($link->tags as $tag) - + {{ $tag->name }} @endforeach @@ -26,7 +26,7 @@ @endif - + {{ $link->shortUrl() }} diff --git a/resources/views/app/search/search.blade.php b/resources/views/app/search/search.blade.php index 72aa0572..35f67343 100644 --- a/resources/views/app/search/search.blade.php +++ b/resources/views/app/search/search.blade.php @@ -11,49 +11,47 @@ @csrf -
+
-
- -
+
-
- + -
-
+
-
-
- + -
@@ -63,30 +61,30 @@
-
- + -
-
- + -
-
- + -
@@ -115,7 +113,7 @@ - @foreach($order_by_options as $order_by)
-
+
@@ -26,7 +26,7 @@
-
+
@@ -54,7 +54,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
-
+
-
+
-
+
-
+
@@ -57,7 +57,7 @@
-
+
@@ -69,7 +69,7 @@ @endif
-
+
@@ -86,10 +86,10 @@
-
+
+ -
diff --git a/resources/views/models/links/partials/index-order-dropdown.blade.php b/resources/views/models/links/partials/index-order-dropdown.blade.php index e3f14e3e..458868c1 100644 --- a/resources/views/models/links/partials/index-order-dropdown.blade.php +++ b/resources/views/models/links/partials/index-order-dropdown.blade.php @@ -1,5 +1,5 @@ diff --git a/resources/views/models/links/partials/single-card.blade.php b/resources/views/models/links/partials/single-card.blade.php index b1742010..ac942cbf 100644 --- a/resources/views/models/links/partials/single-card.blade.php +++ b/resources/views/models/links/partials/single-card.blade.php @@ -3,26 +3,26 @@
- @if($link->is_private) - +
+ {!! $link->getIcon('me-1') !!} + {{ $link->title }} +
+
+ @if($link->is_private) @lang('link.private') - - @endif - {!! $link->getIcon('me-1') !!} - - {{ $link->shortTitle() }} - -
{{ $link->shortUrl() }}
+ @else +