This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:N-Schaef/shreddr
- Loading branch information
Showing
12 changed files
with
3,716 additions
and
3,263 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ body { | |
|
||
.feather { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
/* Style the input field */ | ||
#filterTags { | ||
padding: 5px; | ||
margin-top: -8px; | ||
border: 0; | ||
border-radius: 0; | ||
background: #f1f1f1; | ||
.btn-text { | ||
margin-inline-start: .5em; | ||
} | ||
|
||
.tag-add-menu { | ||
padding: .5rem .5rem; | ||
} | ||
|
||
.tag-add-menu .dropdown-item { | ||
margin: .5rem auto; | ||
border-radius: 3px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,40 @@ | ||
.tag-btn { | ||
margin-right: .3em; | ||
} | ||
|
||
.tag-filter-menu { | ||
padding: .5rem .5rem; | ||
} | ||
|
||
.tag-filter-menu .dropdown-item { | ||
margin: .5rem auto; | ||
border-radius: 3px; | ||
} | ||
|
||
.docbutton-container { | ||
position: relative; | ||
} | ||
|
||
.docbuttons { | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
.doc-card { | ||
/* Make sure document buttons always fit | ||
inside the card */ | ||
min-width: 170px; | ||
} | ||
|
||
.doc-image { | ||
padding: 1em; | ||
height: 100%; | ||
object-fit: contain; | ||
} | ||
|
||
.doc-title { | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
font-size: large; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
|
||
(function () { | ||
'use strict' | ||
|
||
$.get("/tags/json") | ||
.done(function( data ) { | ||
$.each(data, function () { | ||
if(this.deactivated) {return;} | ||
var newTag = $("body").find("#tag").clone(); | ||
newTag.find(".card-header").append(this.name); | ||
if(this.color != null){ | ||
newTag.find(".card-header").css('background-color', this.color); | ||
if (this.deactivated) { | ||
return; | ||
} | ||
newTag.find(".edit-tag").attr("href","/tags/"+this.id+""); | ||
|
||
var newTag = $("template.tag").contents().clone(); | ||
newTag.find(".card-header").append(this.name); | ||
newTag.find(".edit-tag").attr("href",`/tags/${this.id}`); | ||
newTag.find(".remove-tag").on('click', function(){ | ||
$.ajax({ | ||
url: '/tags/'+this.id, | ||
type: 'DELETE', | ||
success: function(result) { | ||
location.reload(); | ||
} | ||
}); | ||
}.bind(this) | ||
); | ||
$.ajax({ | ||
url: '/tags/'+this.id, | ||
type: 'DELETE', | ||
success: function(result) { | ||
location.reload(); | ||
} | ||
}); | ||
}.bind(this) | ||
); | ||
|
||
if (this.color != null) { | ||
var header = newTag.find(".card-header"); | ||
header.css('background-color', this.color); | ||
header.css('color', isDark(this.color) ? "var(--light)" : "var(--dark"); | ||
} | ||
|
||
newTag.show(); | ||
$(newTag).appendTo("#tags"); | ||
feather.replace(); // Fill icon placeholders | ||
}); | ||
}); | ||
|
||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.