Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions admin/themes/default/collections/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,24 @@
<?php $key = 0; ?>
<?php foreach (loop('Collection') as $collection): ?>
<tr class="collection<?php if(++$key%2==1) echo ' odd'; else echo ' even'; ?>">
<td class="title<?php if ($collection->featured) { echo ' featured';} ?>">
<?php if ($collectionImage = record_image('collection', 'square_thumbnail')): ?>
<?php echo link_to_collection($collectionImage, ['class' => 'image']); ?>
<?php endif; ?>


<?php
$collectionTitle = metadata($collection, 'rich_title', ['no_escape' => true]);
$collectionFeatured = $collection->featured;
$collectionPrivate = !$collection->public;
?>
<td class="record-info">
<span class="title">
<?php echo link_to_collection(); ?>
<?php if ($collection->featured): ?>
<div class="featured-icon">
<span class="featured" aria-hidden="true" title="<?php echo __('Featured'); ?>"></span>
<span class="sr-only icon-label"><?php echo __('Featured'); ?></span>
</div>
<?php endif; ?>
<?php if(!$collection->public): ?>
<span class="private"><?php echo __('(Private)'); ?></span>
<?php if ($collectionImage = record_image('collection', 'square_thumbnail')): ?>
<?php $collectionTitle = $collectionImage . $collectionTitle; ?>
<?php endif; ?>
<?php echo link_to_collection($collectionTitle); ?>
</span>

<div class="labels">
<?php echo ($collectionFeatured) ? '<span class="featured label">' . __('Featured') . '</span>': ''; ?>
<?php echo ($collectionPrivate) ? '<span class="private label">' . __('Private') . '</span>': ''; ?>
</div>

<?php if (is_allowed($collection, 'edit')): ?>
<ul class="action-links">
<li><?php echo link_to_collection(__('Edit'), ['class'=>'edit'], 'edit'); ?></li>
Expand Down
5 changes: 5 additions & 0 deletions admin/themes/default/css/sass/base/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ dd {
box-shadow: -3px -3px rgba(0, 0, 0, 0.2);
}

.collection .record-info .title img {
width: 48px;
box-shadow: -3px -3px rgba(0, 0, 0, 0.2), -6px -6px rgba(0, 0, 0, 0.1);
}


#info-field { word-wrap: break-word; }

Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/css/sass/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}

@mixin green {
color: darken($green, 5%);
color: darken($green, 7%);
background: $lightgreen;
border: 1px solid rgba($green, 0.25);

Expand Down
190 changes: 126 additions & 64 deletions admin/themes/default/css/sass/components/_tables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.table-responsive {
display: block;
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
Expand Down Expand Up @@ -37,7 +37,7 @@ table {
}

th {
background-color: rgba(200,200,200,0.5);
background-color: rgba(200, 200, 200, 0.5);
border: 1px solid #DCDCDC;
padding: $spacing-s $spacing-m;
text-align: left;
Expand All @@ -47,8 +47,8 @@ th {
position: relative;
}

a .sort-icon:before,
a .sort-icon:after {
a .sort-icon:before,
a .sort-icon:after {
width: 10px;
height: 100%;
content: "\f0dc" / "";
Expand All @@ -70,48 +70,56 @@ th {
height: 10px;
}

a .sort-icon:after {
a .sort-icon:after {
content: none;
opacity: 1;
}

a:link,
a:visited {
opacity: 0.75;
&:hover {
opacity: 1;
a:link,
a:visited {
opacity: 0.75;

&:hover {
opacity: 1;
color: #000;
}
}
&.sorting {
a {
opacity: 1;
}
}

&.sorting {
a {
opacity: 1;
color: #000;
font-weight: bold;
}
}
}
}

&.desc a .sort-icon:before,
&.asc a .sort-icon:before {
opacity: .2;
}

&.desc a .sort-icon:after { content: "\f0dd" / ""; }
&.asc a .sort-icon:after { content: "\f0de" / ""; }
&.desc a .sort-icon:after {
content: "\f0dd" / "";
}

&.asc a .sort-icon:after {
content: "\f0de" / "";
}
}

tr { background-color: rgba(255,255,255,.5); }
tr {
background-color: rgba(255, 255, 255, .5);
}

td {
border: 1px solid #DCDCDC;
padding: $spacing-m;
vertical-align: top;

.even & {
background-color: rgba(241,242,242,0.5);
background-color: rgba(241, 242, 242, 0.5);
}

.odd & {
background-color: #fff;
}
Expand All @@ -127,20 +135,22 @@ td {
padding-top: $spacing-s;
}

a { color: $blue; }
a {
color: $blue;
}

li {
display: inline-block;

li {
display: inline-block;

.spacer {
display: inline-block;
}

.spacer:after {
content: ' \00b7';
margin-left: 3px;
.spacer:after {
content: ' \00b7';
margin-left: 3px;
margin-right: 3px;

@include screen-xs {
content: '';
margin: 0;
Expand All @@ -150,8 +160,11 @@ td {
@include screen-xs {
margin-bottom: $spacing-s;
}

&:last-child:after { content: ''; margin: 0; }

&:last-child:after {
content: '';
margin: 0;
}
}
}

Expand All @@ -160,47 +173,87 @@ td {
text-align: center;
}

.batch-edit-heading + th {
.batch-edit-heading+th {
width: 50%;
}

.browse .record-info .title img {
float: left;
margin: 0 10px 0 0;
max-width: 20%;
box-sizing: border-box;
border: 1px solid $lightgrayborder;
}

@include screen-xs {
.browse .record-info .title img {
width: auto;
max-height: 6rem;
margin-bottom: $spacing-s;
}
}

span.title {
margin: 0 $spacing-s $spacing-s 0;
font-weight: 700;
line-height: 20px;
small {
font-weight: 400;
color: gray;
}
margin: 0 $spacing-s $spacing-s 0;
font-weight: 700;
line-height: 20px;

small {
font-weight: 400;
color: gray;
}

@include screen-xs {
margin-bottom: $spacing-m;
display: block;
}
}

.featured-icon,
.private {
display: inline-block;
.labels {
margin-top: .5 * $spacing-s;
}

span.featured:after {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: '\f005';
width: 24px;
height: 24px;
color: $darkred;
.labels .label {
display: inline-flex;
gap: 3px;
border-radius: 2px;
padding: (.5 * $spacing-s) $spacing-s;
font-weight: bold;
font-size: 12px;
align-items: center;
border: 0 !important;
background-color: $lightgray;


&:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 10px;
}
}

span.private {
font-weight: normal;
.featured.label {
color: darken($green, 7%);
border-color: rgba($green, 0.65);
background: $lightgreen;

&:before {
content: '\f005' / '';
}
}

.private.label {
color: $blue;
border-color: rgba($blue, 0.65);
background: darken(#EEF3FA, 5%);

&:before {
content: '\f070' / '';
}
}

.details {
background-color: #fff;
background-color: rgba(255,255,255,.5);
background-color: rgba(255, 255, 255, .5);
border: 1px solid $lightgrayborder;
margin-top: $spacing-m;
padding: $spacing-m;
Expand All @@ -212,28 +265,37 @@ span.private {
display: inline-flex;
flex-wrap: wrap;

p {
p {
margin: 0 $spacing-l 0 0;
display: inline-block;
}
}
}

ul.details {
margin-bottom: 0;
padding: $spacing-m $spacing-m $spacing-m $spacing-l;

li { margin-bottom: $spacing-m; }
li:last-child { margin-bottom: 0; }
li {
margin-bottom: $spacing-m;
}

li:last-child {
margin-bottom: 0;
}

}

.inactive { opacity: .65; }
.inactive {
opacity: .65;
}

.mobile {
max-width: 100%;
clear: both;
display: none;
word-break: break-word;

.mobile th { width: 20%; }
}
.mobile th {
width: 20%;
}
}
24 changes: 0 additions & 24 deletions admin/themes/default/css/sass/pages/_items.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,6 @@
margin: 0 0 20px 0;
}

.items.browse a.item-thumbnail {
float: left;
margin: 0 10px 0 0;
width: 20%;
}

@include screen-xs {
.items.browse a.item-thumbnail {
width: auto;
margin-bottom: $spacing-m;
}
}

.items.browse .item-thumbnail img {
display: block;
border: 1px solid $lightgrayborder;
width: 100%;
margin: 0;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

.table-actions {
clear: left;
float: left;
Expand Down
Loading
Loading