photos-albms widget: add some classes

This commit is contained in:
rabuzarus 2015-12-01 21:07:05 +01:00
parent 6910604ffb
commit 1d6d9d3d24
4 changed files with 29 additions and 15 deletions

View file

@ -53,7 +53,7 @@ function videos_init(&$a) {
$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
if($albums_visible) {
$o .= '<div id="side-bar-photos-albums" class="widget">';
$o .= '<div id="sidebar-photos-albums" class="widget">';
$o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
$o .= '<ul>';

View file

@ -1,11 +1,18 @@
<div id="side-bar-photos-albums" class="widget">
<div id="sidebar-photos-albums" class="widget">
<h3>{{$title}}</h3>
<ul>
<li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent}}</a></li>
<ul role=menu" class="sidebar-photos-albums-ul">
<li role="menuitem" class="sidebar-photos-albums-li">
<a href="{{$baseurl}}/photos/{{$nick}}" class="sidebar-photos-albums-element" title="{{$title}}" >{{$recent}}</a>
</li>
{{if $albums}}
{{foreach $albums as $al}}
{{if $al.text}}
<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge pull-right">{{$al.total}}</span>{{$al.text}}</a></li>
<li role="menuitem" class="sidebar-photos-albums-li">
<a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}" class="sidebar-photos-albums-element">
<span class="badge pull-right">{{$al.total}}</span>{{$al.text}}
</a>
</li>
{{/if}}
{{/foreach}}
{{/if}}

View file

@ -2164,20 +2164,20 @@ div[id$="wrapper"] br {
-webkit-border-radius: 5px;
}
#side-bar-photos-albums {
#sidebar-photos-albums {
}
#photo-albums-upload-link {
margin: 20px;
}
#side-bar-photos-albums h3:before {
#sidebar-photos-albums h3:before {
content: url("images/photography.png");
padding-right: 10px;
vertical-align: middle;
}
#side-bar-photos-albums li {
#sidebar-photos-albums li {
font-size: 14px;
font-variant: none;
text-align: left;

View file

@ -419,9 +419,10 @@ code {
opacity: 1;
}
.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover, #forum-widget-collapse:hover,
.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover,#forum-widget-collapse:hover,
#sidebar-ungrouped:hover, .side-link:hover, .nets-ul li:hover, #forumlist-sidebar li:hover, #forumlist-sidebar-right li:hover,
.nets-all:hover, .saved-search-li:hover, li.tool:hover, .admin.link:hover, aside h4 a:hover, right_aside h4 a:hover, #message-new:hover {
.nets-all:hover, .saved-search-li:hover, li.tool:hover, .admin.link:hover, aside h4 a:hover, right_aside h4 a:hover, #message-new:hover,
#sidebar-photos-albums li:hover, .photos-upload-link:hover {
/* background-color: #ddd; */
/* background-color: #e5e5e5; */
background-color: #F5F5F5;
@ -448,6 +449,12 @@ code {
display: block;
}
.photos-upload-link {
padding-top: 3px;
padding-bottom: 3px;
display: block;
}
#forumlist-sidebar {
padding-top: 3px;
padding-bottom: 3px;
@ -467,7 +474,7 @@ code {
display: inline-block;
}
a.nets-link, .side-link a, #sidebar-new-group a, #sidebar-edit-groups a, a.savedsearchterm, a.fileas-link, aside h4 a, right_aside h4 a {
a.nets-link, .side-link a, #sidebar-new-group a, #sidebar-edit-groups a, a.savedsearchterm,a.fileas-link, aside h4 a, right_aside h4 a {
display: block;
color: #737373;
}
@ -494,7 +501,7 @@ a.sidebar-group-element {
color: black;
}
#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a {
#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a, #sidebar-photos-albums a {
color: #737373;
}