mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Compare commits
2 Commits
8ccb18839f
...
5eb9c606f0
| Author | SHA1 | Date | |
|---|---|---|---|
| 5eb9c606f0 | |||
| 894f97a25e |
@@ -34,8 +34,8 @@ class Settings(BaseSettings):
|
|||||||
favicons_dir: DirectoryPath
|
favicons_dir: DirectoryPath
|
||||||
|
|
||||||
# inside the codebase
|
# inside the codebase
|
||||||
static_dir: DirectoryPath = 'static'
|
static_dir: DirectoryPath = 'digimarks/static'
|
||||||
template_dir: DirectoryPath = 'templates'
|
template_dir: DirectoryPath = 'digimarks/templates'
|
||||||
|
|
||||||
media_url: str = '/static/'
|
media_url: str = '/static/'
|
||||||
|
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ ol li::marker, ul li::marker {
|
|||||||
.active {
|
.active {
|
||||||
background-color: var(--color-highlight);
|
background-color: var(--color-highlight);
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
|
transition-duration: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Special button */
|
/* Special button */
|
||||||
@@ -254,6 +255,7 @@ button, .button, input, select, textarea {
|
|||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
transition-duration: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
button, .button, input, select, textarea, table {
|
button, .button, input, select, textarea, table {
|
||||||
@@ -267,6 +269,7 @@ button:hover, .button:hover {
|
|||||||
/*background-color: #d57803;*/
|
/*background-color: #d57803;*/
|
||||||
background-color: var(--color-highlight);
|
background-color: var(--color-highlight);
|
||||||
filter: brightness(80%);
|
filter: brightness(80%);
|
||||||
|
transition-duration: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus, .button:focus {
|
button:focus, .button:focus {
|
||||||
@@ -303,6 +306,22 @@ button:focus, .button:focus {
|
|||||||
filter: brightness(80%);
|
filter: brightness(80%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Toggle buttons */
|
||||||
|
|
||||||
|
.button-group {
|
||||||
|
display: inline-flex;
|
||||||
|
overflow: hidden;
|
||||||
|
border: var(--border-width) solid var(--border-color);
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-group button {
|
||||||
|
/* Reset borders because the buttons are mashed together and the group has its own border */
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Table */
|
/* Table */
|
||||||
|
|
||||||
th {
|
th {
|
||||||
@@ -334,6 +353,7 @@ th, td {
|
|||||||
[data-theme='nebula'] .card,
|
[data-theme='nebula'] .card,
|
||||||
[data-theme='nebula'] button,
|
[data-theme='nebula'] button,
|
||||||
[data-theme='nebula'] .button,
|
[data-theme='nebula'] .button,
|
||||||
|
[data-theme='nebula'] .button-group,
|
||||||
[data-theme='nebula'] input,
|
[data-theme='nebula'] input,
|
||||||
[data-theme='nebula'] select,
|
[data-theme='nebula'] select,
|
||||||
[data-theme='nebula'] textarea,
|
[data-theme='nebula'] textarea,
|
||||||
@@ -342,6 +362,7 @@ th, td {
|
|||||||
[data-theme='nebula-dark'] .card,
|
[data-theme='nebula-dark'] .card,
|
||||||
[data-theme='nebula-dark'] button,
|
[data-theme='nebula-dark'] button,
|
||||||
[data-theme='nebula-dark'] .button,
|
[data-theme='nebula-dark'] .button,
|
||||||
|
[data-theme='nebula-dark'] .button-group,
|
||||||
[data-theme='nebula-dark'] input,
|
[data-theme='nebula-dark'] input,
|
||||||
[data-theme='nebula-dark'] select,
|
[data-theme='nebula-dark'] select,
|
||||||
[data-theme='nebula-dark'] textarea,
|
[data-theme='nebula-dark'] textarea,
|
||||||
|
|||||||
@@ -11,9 +11,14 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><h1>digimarks</h1></li>
|
<li><h1>digimarks</h1></li>
|
||||||
<li>
|
<li>
|
||||||
<button x-data @click="$store.digimarks.toggleTagPage()"
|
<div class="button-group">
|
||||||
:class="$store.digimarks.showTags && 'active'">tags
|
<button x-data @click="$store.digimarks.toggleTagPage()"
|
||||||
</button>
|
:class="!$store.digimarks.showTags && 'active'">bookmarks
|
||||||
|
</button>
|
||||||
|
<button x-data @click="$store.digimarks.toggleTagPage()"
|
||||||
|
:class="$store.digimarks.showTags && 'active'">tags
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button @click="$store.digimarks.startAddingBookmark()">add bookmark</button>
|
<button @click="$store.digimarks.startAddingBookmark()">add bookmark</button>
|
||||||
@@ -32,6 +37,7 @@
|
|||||||
<h1 x-bind:title="$store.digimarks.userKey">Bookmarks</h1>
|
<h1 x-bind:title="$store.digimarks.userKey">Bookmarks</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
<div class="button-group">
|
||||||
<button @click="$store.digimarks.sortAlphabetically()"
|
<button @click="$store.digimarks.sortAlphabetically()"
|
||||||
:class="$store.digimarks.sortTitleAsc && 'active'">a-z ↓
|
:class="$store.digimarks.sortTitleAsc && 'active'">a-z ↓
|
||||||
</button>
|
</button>
|
||||||
@@ -44,9 +50,15 @@
|
|||||||
<button @click="$store.digimarks.sortCreated('desc')"
|
<button @click="$store.digimarks.sortCreated('desc')"
|
||||||
:class="$store.digimarks.sortCreatedDesc && 'active'">date ↑
|
:class="$store.digimarks.sortCreatedDesc && 'active'">date ↑
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="button-group">
|
||||||
<button @click="$store.digimarks.toggleListOrGrid()"
|
<button @click="$store.digimarks.toggleListOrGrid()"
|
||||||
:class="$store.digimarks.showBookmarksCards && 'active'">list or grid
|
:class="$store.digimarks.showBookmarksCards && 'active'">grid
|
||||||
</button>
|
</button>
|
||||||
|
<button @click="$store.digimarks.toggleListOrGrid()"
|
||||||
|
:class="!$store.digimarks.showBookmarksCards && 'active'">list
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table x-cloak x-show="$store.digimarks.showBookmarksList">
|
<table x-cloak x-show="$store.digimarks.showBookmarksList">
|
||||||
@@ -98,15 +110,18 @@
|
|||||||
<div class="card-thumb" x-show="bookmark.favicon"><img
|
<div class="card-thumb" x-show="bookmark.favicon"><img
|
||||||
x-bind:src="'/content/favicons/' + bookmark.favicon"></div>
|
x-bind:src="'/content/favicons/' + bookmark.favicon"></div>
|
||||||
<div class="statuses">
|
<div class="statuses">
|
||||||
<div x-show="bookmark.starred" class="star"><i class="fa-fw fa-solid fa-star"></i>
|
<div x-show="bookmark.starred" class="star"><i
|
||||||
|
class="fa-fw fa-solid fa-star"></i>
|
||||||
</div>
|
</div>
|
||||||
<div x-show="bookmark.http_status !== 200 && bookmark.http_status !== 304"
|
<div x-show="bookmark.http_status !== 200 && bookmark.http_status !== 304"
|
||||||
class="error"><i
|
class="error"><i
|
||||||
class="fa-fw fa-solid fa-triangle-exclamation"></i>
|
class="fa-fw fa-solid fa-triangle-exclamation"></i>
|
||||||
</div>
|
</div>
|
||||||
<div x-show="bookmark.note"><i class="fa-fw fa-regular fa-note-sticky"></i></div>
|
<div x-show="bookmark.note"><i class="fa-fw fa-regular fa-note-sticky"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div><a x-text="bookmark.title" x-bind:href="bookmark.url" target="_blank"></a>
|
||||||
</div>
|
</div>
|
||||||
<div><a x-text="bookmark.title" x-bind:href="bookmark.url" target="_blank"></a></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<button title="show actions"><i class="fa-solid fa-square-caret-down"></i></button>
|
<button title="show actions"><i class="fa-solid fa-square-caret-down"></i></button>
|
||||||
|
|||||||
Reference in New Issue
Block a user