Updated toolbar icons
This commit is contained in:
parent
9d12f2ce54
commit
5b6ad09f98
BIN
dist/main.css
vendored
BIN
dist/main.css
vendored
Binary file not shown.
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
75
index.html
75
index.html
@ -29,39 +29,72 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<header>
|
<header>
|
||||||
|
|
||||||
|
<!-- Title -->
|
||||||
|
<a id="title"></a>
|
||||||
|
|
||||||
<!-- Buttons -->
|
<!-- Buttons -->
|
||||||
<div id="tools_albums">
|
<div class="toolbar" id="tools_albums">
|
||||||
<a class="button left icon-cog" id="button_settings" title="Settings"></a>
|
<a class="button left" id="button_settings" title="Settings">
|
||||||
<a class="button left icon-signout" id="button_signin" title="Sign In"></a>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#cog"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button left" id="button_signin" title="Sign In">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#account-login"></use></svg>
|
||||||
|
</a>
|
||||||
<a id="hostedwith">Hosted with Lychee</a>
|
<a id="hostedwith">Hosted with Lychee</a>
|
||||||
<a class="button right icon icon-plus button_add" title="Add"></a>
|
<a class="button right button_add" title="Add">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#plus"></use></svg>
|
||||||
|
</a>
|
||||||
<a class="button_divider"></a>
|
<a class="button_divider"></a>
|
||||||
<input id="search" type="text" name="search" placeholder="Search …">
|
<input id="search" type="text" name="search" placeholder="Search …">
|
||||||
<a id="clearSearch" class="button right">×</a>
|
<a id="clearSearch" class="button right">×</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="tools_album">
|
<div class="toolbar" id="tools_album">
|
||||||
<a class="button left icon-arrow-left" id="button_back_home" title="Close Album"></a>
|
<a class="button left" id="button_back_home" title="Close Album">
|
||||||
<a class="button right icon icon-plus button_add" title="Add"></a>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#chevron-left"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right button_add" title="Add">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#plus"></use></svg>
|
||||||
|
</a>
|
||||||
<a class="button_divider"></a>
|
<a class="button_divider"></a>
|
||||||
<div class="tools" id="button_trash_album" title="Delete Album"><a class="icon-trash"></a></div>
|
<a class="button right" id="button_trash_album" title="Delete Album">
|
||||||
<div class="tools" id="button_info_album" title="Show Info"><a class="icon-info-sign"></a></div>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#trash"></use></svg>
|
||||||
<div class="tools" id="button_archive" title="Download Album"><a class="icon-circle-arrow-down"></a></div>
|
</a>
|
||||||
<div class="tools" id="button_share_album" title="Share Album"><a class="icon-share"></a></div>
|
<a class="button right" id="button_info_album" title="Show Info">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#info"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right" id="button_archive" title="Download Album">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#cloud-download"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right" id="button_share_album" title="Share Album">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic iconic--eye"><use xlink:href="src/images/iconic.svg#eye"></use></svg>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="tools_photo">
|
<div class="toolbar" id="tools_photo">
|
||||||
<a class="button left icon-arrow-left" id="button_back" title="Close Photo"></a>
|
<a class="button left" id="button_back" title="Close Photo">
|
||||||
<div class="tools" id="button_more" title="More"><a class="icon-caret-down"></a></div>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#chevron-left"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right" id="button_more" title="More">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#ellipses"></use></svg>
|
||||||
|
</a>
|
||||||
<a class="button_divider"></a>
|
<a class="button_divider"></a>
|
||||||
<div class="tools" id="button_trash" title="Delete"><a class="icon-trash"></a></div>
|
<a class="button right" id="button_trash" title="Delete">
|
||||||
<div class="tools" id="button_move" title="Move"><a class="icon-folder-open"></a></div>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#trash"></use></svg>
|
||||||
<div class="tools" id="button_info" title="Show Info"><a class="icon-info-sign"></a></div>
|
</a>
|
||||||
|
<a class="button right" id="button_info" title="Show Info">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#info"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right" id="button_move" title="Move">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#folder"></use></svg>
|
||||||
|
</a>
|
||||||
<a class="button_divider"></a>
|
<a class="button_divider"></a>
|
||||||
<div class="tools" id="button_share" title="Share Photo"><a class="icon-share"></a></div>
|
<a class="button right button--eye" id="button_share" title="Share Photo">
|
||||||
<div class="tools" id="button_star" title="Star Photo"><a class="icon-star-empty"></a></div>
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#eye"></use></svg>
|
||||||
|
</a>
|
||||||
|
<a class="button right button--star" id="button_star" title="Star Photo">
|
||||||
|
<svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#star"></use></svg>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a id="title"></a>
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
|
1
src/images/iconic.svg
Executable file
1
src/images/iconic.svg
Executable file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 44 KiB |
@ -447,14 +447,14 @@ view.photo = {
|
|||||||
|
|
||||||
star: function() {
|
star: function() {
|
||||||
|
|
||||||
$('#button_star a').removeClass('icon-star-empty icon-star');
|
|
||||||
if (photo.json.star==1) {
|
if (photo.json.star==1) {
|
||||||
// Starred
|
// Starred
|
||||||
$('#button_star a').addClass('icon-star');
|
$('#button_star')
|
||||||
$('#button_star').attr('title', 'Unstar Photo');
|
.addClass('active')
|
||||||
|
.attr('title', 'Unstar Photo');
|
||||||
} else {
|
} else {
|
||||||
// Unstarred
|
// Unstarred
|
||||||
$('#button_star a').addClass('icon-star-empty');
|
$('#button_star').removeClass('active');
|
||||||
$('#button_star').attr('title', 'Star Photo');
|
$('#button_star').attr('title', 'Star Photo');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -464,13 +464,15 @@ view.photo = {
|
|||||||
|
|
||||||
if (photo.json.public==1||photo.json.public==2) {
|
if (photo.json.public==1||photo.json.public==2) {
|
||||||
// Photo public
|
// Photo public
|
||||||
$('#button_share a').addClass('active');
|
$('#button_share')
|
||||||
$('#button_share').attr('title', 'Share Photo');
|
.addClass('active')
|
||||||
|
.attr('title', 'Share Photo');
|
||||||
if (photo.json.init) $('#infobox .attr_visibility').html('Public');
|
if (photo.json.init) $('#infobox .attr_visibility').html('Public');
|
||||||
} else {
|
} else {
|
||||||
// Photo private
|
// Photo private
|
||||||
$('#button_share a').removeClass('active');
|
$('#button_share')
|
||||||
$('#button_share').attr('title', 'Make Public');
|
.removeClass('active')
|
||||||
|
.attr('title', 'Make Public');
|
||||||
if (photo.json.init) $('#infobox .attr_visibility').html('Private');
|
if (photo.json.init) $('#infobox .attr_visibility').html('Private');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,38 +55,41 @@ header {
|
|||||||
&.editable { cursor: pointer; }
|
&.editable { cursor: pointer; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button ------------------------------------------------*/
|
/* Toolbars ------------------------------------------------*/
|
||||||
.button {
|
.toolbar {
|
||||||
color: #888;
|
display: none;
|
||||||
font-family: 'FontAwesome';
|
position: absolute;
|
||||||
font-size: 21px;
|
box-sizing: border-box;
|
||||||
font-weight: bold;
|
width: 100%;
|
||||||
text-decoration: none !important;
|
height: 100%;
|
||||||
cursor: pointer;
|
padding: 0 10px;
|
||||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.left {
|
|
||||||
float: left;
|
|
||||||
position: absolute;
|
|
||||||
padding: 16px 10px 8px 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right {
|
|
||||||
float: right;
|
|
||||||
position: relative;
|
|
||||||
padding: 16px 19px 13px 11px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#tools_albums,
|
/* Button ------------------------------------------------*/
|
||||||
#tools_album,
|
.button {
|
||||||
#tools_photo,
|
display: inline-block;
|
||||||
#button_signin {
|
padding: 16px 8px 12px;
|
||||||
display: none;
|
width: 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.left { float: left; }
|
||||||
|
|
||||||
|
&.right { float: right; }
|
||||||
|
|
||||||
|
.iconic {
|
||||||
|
fill: #888;
|
||||||
|
filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .2) );
|
||||||
|
transition: fill .2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .iconic { fill: #fff; }
|
||||||
|
|
||||||
|
&--star.active .iconic { fill: #f0ef77; }
|
||||||
|
|
||||||
|
&--eye.active .iconic { fill: #ff9737; }
|
||||||
|
|
||||||
|
&#button_signin { display: none; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button Divider ------------------------------------------------*/
|
/* Button Divider ------------------------------------------------*/
|
||||||
@ -129,24 +132,6 @@ header {
|
|||||||
&:hover { opacity: 1; }
|
&:hover { opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tools ------------------------------------------------*/
|
|
||||||
.tools {
|
|
||||||
float: right;
|
|
||||||
padding: 14px 8px;
|
|
||||||
color: #888;
|
|
||||||
font-size: 21px;
|
|
||||||
text-shadow: 0 -1px 0 #222;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&:first-of-type { margin-right: 6px; }
|
|
||||||
|
|
||||||
&:hover a { color: #fff; }
|
|
||||||
|
|
||||||
.icon-star { color: #f0ef77; }
|
|
||||||
|
|
||||||
.icon-share.active { color: #ff9737; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hosted with Lychee ------------------------------------------------*/
|
/* Hosted with Lychee ------------------------------------------------*/
|
||||||
#hostedwith {
|
#hostedwith {
|
||||||
float: right;
|
float: right;
|
||||||
|
@ -42,6 +42,11 @@ input {
|
|||||||
user-select: text !important;
|
user-select: text !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.iconic {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
@import 'animations';
|
@import 'animations';
|
||||||
@import 'content';
|
@import 'content';
|
||||||
@import 'contextmenu';
|
@import 'contextmenu';
|
||||||
|
Loading…
Reference in New Issue
Block a user