frontend/scss/main.scss (157 lines of code) (raw):
@import "../node_modules/angular-material/angular-material.scss";
.modal {
z-index: 2;
position: fixed;
background-color: white;
box-shadow: 1px 1px 3px #333;
overflow: hidden;
left: 10%;
right: 10%;
bottom: 5%;
top: 10%;
}
.modal__backdrop {
position: fixed;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
md-tabs {
border: 1px solid #e1e1e1;
}
.tall-tabs {
height: 350px;
}
.tab-actions-container {
padding-bottom: 0;
padding-top: 0;
}
.code-tab {
padding-left: 8px;
padding-top: 4px;
}
.code-container {
margin: 0;
}
.add-button {
color: #191E80;
cursor: pointer;
}
.md-menu-content {
max-height: none;
}
md-toolbar {
cursor: pointer;
transition: background-color 0.5s;
transition-delay: 0.2s;
text-transform: capitalize;
}
md-toolbar.prod {
background-color: #00456e;
}
md-toolbar.membership {
background-color: rgb(187, 58, 127);
}
md-icon > a {
color: inherit;
text-decoration: none;
}
.promotion-list-item-container {
flex: 1;
display: flex;
padding: 12px 16px;
}
.promotion-code-list {
max-width: 90%;
}
.landing-page-image {
background-color: #EEEEEE;
background-position: center;
border: 1px solid #ccc;
background-size: cover;
margin-bottom: 20px;
text-align: center;
overflow: hidden;
cursor: pointer;
height: 500px;
color: #777;
> img {
min-width: 100%;
display: block;
}
}
.preview-background {
background-color: #EEEEEE;
}
.preview-error {
text-align: center;
color: #777;
}
.save-button {
margin-top: 20px;
}
.small-error {
transition-property: opacity;
transition-delay: 0.2s;
transition-duration: 5s;
line-height: 14px;
font-size: 12px;
color: red;
}
.small-error-date {
margin-left: 63px;
}
.server-error {
background-color: rgb(255, 82, 82);
margin-top: 20px;
padding: 10px;
font-weight: bold;
color: white;
}
// fix md-datepicker erroneously being invalid when untouched
md-datepicker.ng-pristine .md-datepicker-invalid {
border-bottom-color: rgb(224, 224, 224);
}
.preview-frame {
transition: all 1s 0s;
flex: none;
&.desktop {
flex-basis: 100%;
height: 100%;
width: 100%;
}
&.mobile-portrait, &.mobile-landscape {
box-shadow: 0 0 3px #aaa;
border: 1px solid #aaa;
}
&.mobile-portrait {
height: 640px;
width: 320px;
}
&.mobile-landscape {
height: 320px;
width: 640px;
}
}
md-list-item.selected {
background-color: rgba(170, 170, 170, 0.1);
}
s {
color: #bbb;
}
.half-width {
width: 45%;
}
.discount-list {
padding-top: 8px;
}
.rate-plan-list {
md-checkbox {
margin-right: 25px;
}
md-checkbox .md-container {
top: 5%;
}
}