mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 06:48:25 -04:00
It’s a bit rudimentary to only show the current place in the hierarchy and the parent. You lose a sense of how deep you are. But we can’t just show the full path, because it can be arbitrarily long. So what this commit does is show the full path, but truncates the display of any items. Further-up than the current folder or its parent. This also helps disambiguate between folders and templates, because folders are always shown with the folder icon. This probably won’t affect many teams, because we don’t anticipate a lot of deep nesting.
232 lines
3.6 KiB
SCSS
232 lines
3.6 KiB
SCSS
.message {
|
|
|
|
&-name {
|
|
@include bold-24;
|
|
margin: 0;
|
|
|
|
a {
|
|
margin-bottom: -$gutter;
|
|
padding-bottom: $gutter;
|
|
|
|
&:hover {
|
|
color: $link-hover-colour;
|
|
}
|
|
|
|
&:focus {
|
|
|
|
// Use box shadow instead of outline to avoid buggy outline
|
|
// rendering in Firefox
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px $yellow;
|
|
|
|
@include ie-lte(8) {
|
|
// Box shadow is not supported in IE8
|
|
outline: 3px solid $yellow;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
&-separator {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
color: $secondary-text-colour;
|
|
padding: 0 4px 0 5px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
}
|
|
|
|
&-type {
|
|
color: $secondary-text-colour;
|
|
margin: 0 0 $gutter-two-thirds 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
}
|
|
|
|
#template-list {
|
|
margin-top: $gutter;
|
|
}
|
|
|
|
.template-list {
|
|
|
|
&-item {
|
|
|
|
&-with-checkbox {
|
|
|
|
position: relative;
|
|
padding-left: $gutter * 2;
|
|
|
|
.multiple-choice {
|
|
position: absolute;
|
|
left: 0;
|
|
}
|
|
|
|
}
|
|
|
|
&-hidden-by-default {
|
|
display: none;
|
|
}
|
|
|
|
&-without-ancestors {
|
|
|
|
.message-name {
|
|
|
|
a {
|
|
display: block;
|
|
|
|
&:first-child {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-folder {
|
|
|
|
display: inline-block;
|
|
padding-left: 40px;
|
|
background-image: file-url('folder-blue-bold.svg');
|
|
background-repeat: no-repeat;
|
|
background-size: auto 20px;
|
|
background-position: 0px 2px;
|
|
|
|
@include ie-lte(8) {
|
|
background-image: file-url('folder-blue-bold.png');
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background-image: file-url('folder-blue-bold-hover.svg');
|
|
|
|
@include ie-lte(8) {
|
|
background-image: file-url('folder-blue-bold-hover.png');
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-template {
|
|
a {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
&-empty {
|
|
color: $secondary-text-colour;
|
|
padding: $gutter-half 0 $gutter-one-third 0;
|
|
}
|
|
|
|
&-selected-counter {
|
|
position: absolute;
|
|
right: 0;
|
|
top: $gutter - 1px;
|
|
color: $secondary-text-colour;
|
|
|
|
.content-fixed & {
|
|
right: $gutter-half;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.folder-heading {
|
|
|
|
.column-main>.grid-row:first-child &.heading-medium {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
|
|
|
|
a,
|
|
&-folder,
|
|
&-subfolder {
|
|
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
background-repeat: no-repeat;
|
|
background-size: auto 20px;
|
|
background-position: 0px 2px;
|
|
min-height: 30px;
|
|
|
|
}
|
|
|
|
&-folder {
|
|
|
|
padding: 0 0 0 40px;
|
|
background-image: file-url('folder-black-bold.svg');
|
|
|
|
@include ie-lte(8) {
|
|
background-image: file-url('folder-black-bold.png');
|
|
}
|
|
|
|
}
|
|
|
|
&-folder-truncated {
|
|
width: 0;
|
|
padding: 0 0 0 30px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&-folder-root-truncated {
|
|
max-width: 1.4em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
|
|
&.folder-heading-folder {
|
|
|
|
background-image: file-url('folder-blue-bold.svg');
|
|
max-width: 33%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
@include ie-lte(8) {
|
|
background-image: file-url('folder-blue-bold.png');
|
|
}
|
|
|
|
&:hover {
|
|
background-image: file-url('folder-blue-bold-hover.svg');
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
color: $link-hover-colour;
|
|
}
|
|
|
|
}
|
|
|
|
&-separator {
|
|
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
color: $secondary-text-colour;
|
|
padding: 0 4px 0 5px;
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
&-manage-link {
|
|
display: block;
|
|
text-align: right;
|
|
padding: ($gutter - 7px) 0 0 0;
|
|
}
|
|
|
|
}
|