Files
notifications-admin/app/assets/stylesheets/components/email-message.scss

108 lines
1.8 KiB
SCSS
Raw Normal View History

$white-50-opaque: rgba($white, 0.5);
$button-bottom-border-colour: rgba(0, 0, 0, 0.17);
.email-message {
margin-bottom: $gutter;
&-meta {
@include core-19;
margin: 0;
td,
th {
@include core-19;
border-bottom: 0;
border-top: 1px solid $border-colour;
vertical-align: top;
}
th {
color: $secondary-text-colour;
}
td {
width: 99%;
}
}
&-from {
padding-top: 15px;
border-top: 1px solid $border-colour;
}
&-body {
width: 100%;
box-sizing: border-box;
padding: $gutter-half 0 0 0;
margin: 0 0 $gutter * 1.5 0;
clear: both;
border-top: 1px solid $border-colour;
border-bottom: 1px solid $border-colour;
position: relative;
word-wrap: break-word;
&-wrapper {
.js-enabled & {
max-height: 92px;
overflow: hidden;
}
.js-enabled .expanded & {
max-height: none;
}
}
.toggle {
display: none;
position: absolute;
left: 50%;
bottom: -18px;
height: 27px;
padding: 0;
margin: 0 0 0 -30px;
line-height: 12px;
font-size: 30px;
font-weight: bold;
letter-spacing: 2px;
text-align: center;
cursor: pointer;
width: 60px;
text-decoration: none;
background: $grey-3;
color: $text-colour;
border-style: solid;
border-width: 3px;
border-color: $white;
box-shadow: inset 0 -2px 0 $button-bottom-border-colour, 0 0 0 1px $white-50-opaque;
&:hover {
background: $grey-2;
}
&:focus,
&:active {
border-color: $yellow;
outline: none;
}
}
}
}
.js-enabled .toggle {
display: inline-block;
}
.js-enabled .expanded .toggle {
display: none;
}