mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Responsive fixes on tags list screen
no issue - fixed filter responsive CSS - fixed list behavior
This commit is contained in:
parent
02d8fe89eb
commit
b8da3ab22f
@ -118,6 +118,10 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-list-cellwidth-min {
|
||||||
|
max-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.gh-list-cellwidth-2-3 {
|
.gh-list-cellwidth-2-3 {
|
||||||
width: 67%;
|
width: 67%;
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,13 @@
|
|||||||
/* Tag list
|
/* Tag list
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
a.gh-tag-list-posts-count:hover {
|
||||||
.gh-tags-count:hover {
|
|
||||||
color: color-mod(var(--blue) l(-25%) s(+15%));
|
color: color-mod(var(--blue) l(-25%) s(+15%));
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.gh-tag-details-textarea {
|
textarea.gh-tag-details-textarea {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-tag-image-uploader .gh-image-uploader {
|
|
||||||
margin: 4px 0 0;
|
|
||||||
border: 1px solid var(--lightgrey);
|
|
||||||
min-height: 147px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gh-tags-placeholder {
|
.gh-tags-placeholder {
|
||||||
width: 118px;
|
width: 118px;
|
||||||
margin: -30px 0 15px;
|
margin: -30px 0 15px;
|
||||||
@ -23,12 +15,127 @@ textarea.gh-tag-details-textarea {
|
|||||||
|
|
||||||
.gh-tag-list-slug {
|
.gh-tag-list-slug {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
max-width: 300px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-description {
|
||||||
|
max-width: 320px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.tags-view {
|
.tags-view {
|
||||||
max-width: 1220px;
|
max-width: 1220px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mobile style of tag list */
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
.gh-tags-list-item {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
border-bottom: 1px solid var(--lightgrey);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tags-list-item:nth-of-type(2) {
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tags-list-item .gh-list-data {
|
||||||
|
border-top: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tags-list-item:hover {
|
||||||
|
background: var(--whitegrey-l2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tags-list-item:hover .gh-list-data {
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-title {
|
||||||
|
display: block;
|
||||||
|
flex: 1 1 100%;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-slug {
|
||||||
|
display: inline-block;
|
||||||
|
width: unset;
|
||||||
|
padding: 2px 0 20px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-posts-count {
|
||||||
|
display: inline-block;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: unset;
|
||||||
|
padding: 2px 0 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-slug:after {
|
||||||
|
content: "\2022";
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 4px;
|
||||||
|
color: var(--midgrey-l2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-chevron {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 450px) {
|
||||||
|
.tags-header {
|
||||||
|
justify-content: flex-end;
|
||||||
|
min-height: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-header .gh-canvas-title {
|
||||||
|
position: absolute;
|
||||||
|
top: 29px;
|
||||||
|
left: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-header .view-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
margin-top: 18px;
|
||||||
|
overflow-y: hidden;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-header .view-actions .gh-contentfilter {
|
||||||
|
order: 2;
|
||||||
|
margin: 10px 0 -20px;
|
||||||
|
padding: 6px 0 26px;
|
||||||
|
max-width: calc(100vw - 10px);
|
||||||
|
overflow-x: auto;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-header .view-actions .gh-contentfilter button {
|
||||||
|
flex: 1 1 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-tag-list-description {
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tag details
|
||||||
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
.gh-tag-image-uploader .gh-image-uploader {
|
||||||
|
margin: 4px 0 0;
|
||||||
|
border: 1px solid var(--lightgrey);
|
||||||
|
min-height: 147px;
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{{#link-to "tags.tag" tag class="gh-list-data" title="Edit tag"}}
|
{{#link-to "tags.tag" tag class="gh-list-data gh-tag-list-title" title="Edit tag"}}
|
||||||
<h3 class="gh-tag-list-name">
|
<h3 class="gh-tag-list-name">
|
||||||
{{this.tag.name}}
|
{{this.tag.name}}
|
||||||
</h3>
|
</h3>
|
||||||
@ -9,22 +9,22 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
|
|
||||||
{{#link-to "tags.tag" tag class="gh-list-data middarkgrey f8 gh-tag-list-slug" title="Edit tag"}}
|
{{#link-to "tags.tag" tag class="gh-list-data middarkgrey f8 gh-tag-list-slug gh-list-cellwidth-10" title="Edit tag"}}
|
||||||
<span class="gh-tag-list-slug" title="{{this.slug}}">{{this.slug}}</span>
|
<span title="{{this.slug}}">{{this.slug}}</span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
|
|
||||||
{{#if this.postsCount}}
|
{{#if this.postsCount}}
|
||||||
{{#link-to "posts" (query-params type=null author=null tag=tag.slug order=null) class="gh-list-data blue gh-tag-list-posts-count gh-tags-count f8" title=(concat "List posts tagged with '" this.tag.name "'")}}
|
{{#link-to "posts" (query-params type=null author=null tag=tag.slug order=null) class="gh-list-data blue gh-tag-list-posts-count gh-list-cellwidth-10 f8" title=(concat "List posts tagged with '" this.tag.name "'")}}
|
||||||
<span class="nowrap">{{this.postsLabel}}</span>
|
<span class="nowrap">{{this.postsLabel}}</span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#link-to "tags.tag" tag class="gh-list-data gh-tag-list-posts-count" title="Edit tag"}}
|
{{#link-to "tags.tag" tag class="gh-list-data gh-tag-list-posts-count gh-list-cellwidth-10" title="Edit tag"}}
|
||||||
<span class="nowrap f8 midlightgrey">{{this.postsLabel}}</span>
|
<span class="nowrap f8 midlightgrey">{{this.postsLabel}}</span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#link-to "tags.tag" tag class="gh-list-data" title="Edit tag"}}
|
{{#link-to "tags.tag" tag class="gh-list-data gh-list-cellwidth-min gh-tag-list-chevron" title="Edit tag"}}
|
||||||
<div class="flex items-center justify-end w-100">
|
<div class="flex items-center justify-end w-100 h-100">
|
||||||
<span class="nr2">{{svg-jar "arrow-right" class="w6 h6 fill-midgrey pa1"}}</span>
|
<span class="nr2">{{svg-jar "arrow-right" class="w6 h6 fill-midgrey pa1"}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
@ -1,7 +1,7 @@
|
|||||||
{{#unless selectedTag}}
|
{{#unless selectedTag}}
|
||||||
<section class="gh-canvas tags-view">
|
<section class="gh-canvas tags-view">
|
||||||
<header class="gh-canvas-header">
|
<GhCanvasHeader class="gh-canvas-header tags-header">
|
||||||
{{#gh-view-title}}<span>Tags</span>{{/gh-view-title}}
|
<h2 class="gh-canvas-title" data-test-screen-title>Tags</h2>
|
||||||
<section class="view-actions">
|
<section class="view-actions">
|
||||||
<div class="gh-contentfilter gh-btn-group">
|
<div class="gh-contentfilter gh-btn-group">
|
||||||
<button class="gh-btn {{if (eq type "public") "gh-btn-group-selected"}}" {{action "changeType" "public"}}><span>Public tags</span></button>
|
<button class="gh-btn {{if (eq type "public") "gh-btn-group-selected"}}" {{action "changeType" "public"}}><span>Public tags</span></button>
|
||||||
@ -9,16 +9,15 @@
|
|||||||
</div>
|
</div>
|
||||||
{{#link-to "tags.new" class="gh-btn gh-btn-green"}}<span>New tag</span>{{/link-to}}
|
{{#link-to "tags.new" class="gh-btn gh-btn-green"}}<span>New tag</span>{{/link-to}}
|
||||||
</section>
|
</section>
|
||||||
</header>
|
</GhCanvasHeader>
|
||||||
|
|
||||||
<section class="content-list">
|
<section class="content-list">
|
||||||
<ol class="tags-list gh-list {{unless sortedTags "no-posts"}}">
|
<ol class="tags-list gh-list {{unless sortedTags "no-posts"}}">
|
||||||
{{#if sortedTags}}
|
{{#if sortedTags}}
|
||||||
<li class="gh-list-row header">
|
<li class="gh-list-row header">
|
||||||
<div class="gh-list-header gh-list-cellwidth-1-2">Tag</div>
|
<div class="gh-list-header">Tag</div>
|
||||||
<div class="gh-list-header">Slug</div>
|
<div class="gh-list-header gh-list-cellwidth-10">Slug</div>
|
||||||
<div class="gh-list-header">No. of posts</div>
|
<div class="gh-list-header gh-list-cellwidth-10">No. of posts</div>
|
||||||
<div class="gh-list-header"></div>
|
<div class="gh-list-header gh-list-cellwidth-min"></div>
|
||||||
</li>
|
</li>
|
||||||
{{#vertical-collection
|
{{#vertical-collection
|
||||||
items=sortedTags
|
items=sortedTags
|
||||||
|
Loading…
Reference in New Issue
Block a user