Files
notifications-admin/app/assets/stylesheets/components/message.scss
Chris Hill-Scott 7d20846d94 Render selected links with box shadow not outline
Because there’s a mystery 2px gap between the outline and the element in
Firefox.
2018-11-26 11:33:27 +00:00

168 lines
2.5 KiB
SCSS

.message {
&-name {
@include bold-24;
margin: 0;
a {
display: inline;
margin-bottom: -$gutter;
padding-bottom: $gutter;
&: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 {
a:first-child {
display: inline-block;
text-indent: 40px;
background-image: file-url('folder-blue-bold.svg');
background-repeat: no-repeat;
background-size: auto 20px;
background-position: 0px 2px;
}
}
&-empty {
color: $secondary-text-colour;
padding: $gutter-half 0 $gutter-one-third 0;
}
}
.folder-heading {
.column-main>.grid-row:first-child &.heading-medium {
margin-top: 18px;
}
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
a:first-child,
&-folder {
display: inline-block;
vertical-align: top;
padding: 5px 0 0 60px;
background-repeat: no-repeat;
background-size: 38px auto;
background-position: 0 1px;
}
a {
padding-top: 5px;
display: inline-block;
vertical-align: top;
&:first-child {
background-image: file-url('folder-blue.svg');
max-width: 33%;
overflow: hidden;
text-overflow: ellipsis;
}
}
&-folder {
padding-left: 0;
&:first-child {
background-image: file-url('folder-black.svg');
padding-left: $gutter * 2;
}
}
&-separator {
display: inline-block;
vertical-align: top;
color: $secondary-text-colour;
padding: 5px 4px 0 5px;
font-weight: normal;
}
}