Files
SCM-Manager/scm-ui/styles/scm.scss

324 lines
5.5 KiB
SCSS
Raw Normal View History

2018-12-19 16:39:46 +01:00
@import "bulma/sass/utilities/initial-variables";
@import "bulma/sass/utilities/functions";
2018-12-20 11:30:28 +01:00
$blue: #33b2e8;
2018-12-19 16:39:46 +01:00
$mint: #11dfd0;
$info: $blue;
2018-12-19 16:39:46 +01:00
// $footer-background-color
.is-ellipsis-overflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.has-rounded-border {
border-radius: 0.25rem;
}
.is-full-width {
width: 100%;
}
.fitParent {
// TODO get rid of important
margin: 0 !important;
// 3.8em for line-numbers
padding: 0 0 0 3.8em !important;
}
.is-word-break {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
word-break: break-all;
}
.main {
min-height: calc(100vh - 260px);
}
.footer {
height: 50px;
}
// 6. Import the rest of Bulma
@import "bulma/bulma";
@import "bulma-tooltip/dist/css/bulma-tooltip";
// import at the end, because we need a lot of stuff from bulma/bulma
.box-link-shadow {
&:hover,
&:focus {
box-shadow: $box-link-hover-shadow;
2018-12-20 11:30:28 +01:00
}
2018-12-19 16:39:46 +01:00
&:active {
box-shadow: $box-link-active-shadow;
}
}
@import "@fortawesome/fontawesome-free/scss/fontawesome.scss";
$fa-font-path: "webfonts";
@import "@fortawesome/fontawesome-free/scss/solid.scss";
@import "diff2html/dist/diff2html";
// NEW STYLES
//typography
.subtitle {
2018-12-20 11:30:28 +01:00
color: #666;
2018-12-19 16:39:46 +01:00
}
.has-border-white {
2018-12-20 11:30:28 +01:00
border-color: #fff !important;
2018-12-19 16:39:46 +01:00
}
// buttons
2018-12-20 11:30:28 +01:00
.button {
padding-left: 1.5em;
padding-right: 1.5em;
height: 2.5rem;
&.is-primary {
2019-01-25 14:19:33 +01:00
background-color: #00d1df;
}
&.is-primary:hover, &.is-primary.is-hovered {
2019-01-25 15:13:57 +01:00
background-color: #00b9c6;
2019-01-25 14:19:33 +01:00
}
&.is-primary:active, &.is-primary.is-active {
2019-01-25 15:13:57 +01:00
background-color: #00a1ac;
2019-01-25 14:19:33 +01:00
}
&.is-primary[disabled] {
2019-01-25 15:13:57 +01:00
background-color: #40dde7;
2018-12-20 11:30:28 +01:00
}
2018-12-19 16:39:46 +01:00
}
//border around options
2018-12-20 11:30:28 +01:00
.has-border-around {
2018-12-19 16:39:46 +01:00
border-top: 1px solid #eee;
border-left: 1px solid #eee;
border-right: 1px solid #eee;
border-bottom: 1px solid #eee;
}
// multiline Columns
.columns.is-multiline {
2018-12-20 11:30:28 +01:00
.column.is-half {
width: calc(50% - 0.75rem);
max-height: 120px;
2018-12-19 16:39:46 +01:00
2018-12-20 11:30:28 +01:00
&:nth-child(odd) {
margin-right: 1.5rem;
2018-12-19 16:39:46 +01:00
}
2019-01-24 13:31:42 +01:00
.overlay-half-column {
position: absolute;
height: calc(120px - 1.5rem);
width: calc(50% - 3rem);
}
}
.column.is-full {
.overlay-full-column {
position: absolute;
height: calc(120px - 0.5rem);
width: calc(100% - 1.5rem);
}
2018-12-20 11:30:28 +01:00
}
@media screen and (max-width: 768px) {
.column.is-half {
width: 100%;
2018-12-19 16:39:46 +01:00
2018-12-20 11:30:28 +01:00
&:nth-child(odd) {
margin-right: 0;
}
2019-01-24 13:31:42 +01:00
.overlay-half-column{
position: absolute;
height: calc(120px - 0.5rem);
width: calc(100% - 1.5rem);
}
2018-12-20 11:30:28 +01:00
}
}
2018-12-19 16:39:46 +01:00
}
2018-12-20 16:27:41 +01:00
.text-box {
width: calc(50% - 0.75rem);
.shorten-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
2018-12-19 16:39:46 +01:00
// tables
.table {
2018-12-20 11:30:28 +01:00
width: 100%;
td {
border-color: #eee;
padding: 1rem;
}
2018-12-19 16:39:46 +01:00
}
// card tables
.card-table {
2018-12-20 11:30:28 +01:00
border-collapse: separate;
border-spacing: 0px 5px;
tr {
a {
color: #363636;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
&:hover {
td {
background-color: whitesmoke;
&:nth-child(4) {
background-color: #e1e1e1;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
}
a {
color: $blue;
}
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
}
td {
border-bottom: 1px solid whitesmoke;
background-color: #fafafa;
padding: 1em 1.25em;
&:first-child {
border-left: 3px solid $mint;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
&:nth-child(4) {
background-color: whitesmoke;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
}
&.is-hoverable tbody tr:not(.is-selected):hover {
background-color: whitesmoke;
}
thead th {
background-color: transparent;
border: none;
}
2018-12-19 16:39:46 +01:00
}
// forms
2018-12-20 11:30:28 +01:00
.field:not(.is-grouped) {
margin-bottom: 1rem;
}
.input,
.textarea {
/*background-color: whitesmoke;*/
border-color: #98d8f3;
box-shadow: none;
2018-12-19 16:39:46 +01:00
}
// pagination
2018-12-20 11:30:28 +01:00
.pagination-next,
.pagination-link,
.pagination-ellipsis {
padding-left: 1.5em;
padding-right: 1.5em;
height: 2.5rem;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
.pagination-previous,
.pagination-next {
min-width: 6.75em;
2018-12-19 16:39:46 +01:00
}
// dark hero colors
.hero.is-dark {
2018-12-20 11:30:28 +01:00
background-color: #002e4b;
background-image: url(../images/scmManagerHero.jpg);
background-size: cover;
background-position: top center;
.tabs.is-boxed li.is-active a,
.tabs.is-boxed li.is-active a:hover,
.tabs.is-toggle li.is-active a,
.tabs.is-toggle li.is-active a:hover {
2018-12-19 16:39:46 +01:00
background-color: #28b1e8;
border-color: #28b1e8;
color: #fff;
2018-12-20 11:30:28 +01:00
}
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
// footer
2018-12-19 16:39:46 +01:00
.footer {
2018-12-20 11:30:28 +01:00
background-color: whitesmoke;
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
// sidebar menu
2018-12-19 16:39:46 +01:00
.aside-background {
2018-12-20 11:30:28 +01:00
bottom: 0;
left: 50%;
position: absolute;
right: 0;
top: 0;
background-color: whitesmoke;
2018-12-19 16:39:46 +01:00
}
.menu {
2018-12-20 11:30:28 +01:00
div {
2018-12-19 16:39:46 +01:00
height: 100%;
/*border: 1px solid #eee;*/
margin-bottom: 1rem;
2018-12-20 11:30:28 +01:00
}
2018-12-19 16:39:46 +01:00
}
.menu-label {
2018-12-20 11:30:28 +01:00
color: #fff;
font-size: 1em;
font-weight: 600;
background-color: #bbb;
border-radius: 5px 5px 0 0;
padding: 0.5rem 1rem;
text-transform: none;
&:last-child,
&:not(:last-child) {
margin-bottom: 0;
}
2018-12-19 16:39:46 +01:00
}
.menu div:first-child .menu-label {
2018-12-20 11:30:28 +01:00
background-color: $blue;
2018-12-19 16:39:46 +01:00
}
.menu-list {
2018-12-20 11:30:28 +01:00
a {
2018-12-19 16:39:46 +01:00
border-radius: 0;
color: #333;
padding: 1rem;
2018-12-20 11:30:28 +01:00
border-top: 1px solid #eee;
2018-12-19 16:39:46 +01:00
border-left: 1px solid #eee;
border-right: 1px solid #eee;
2018-12-20 11:30:28 +01:00
&.is-active {
color: $blue;
background-color: #fff;
&:before {
position: relative;
content: " ";
background: $blue;
height: 53px;
width: 2px;
display: block;
left: -17px;
float: left;
top: -16px;
}
2018-12-19 16:39:46 +01:00
}
2018-12-20 11:30:28 +01:00
}
> li:first-child > a {
2018-12-19 16:39:46 +01:00
border-top: none;
2018-12-20 11:30:28 +01:00
}
li:last-child > a {
2018-12-19 16:39:46 +01:00
border-bottom: 1px solid #eee;
2018-12-20 11:30:28 +01:00
}
2018-12-19 16:39:46 +01:00
}
2019-02-07 13:53:15 +01:00
// modal
.modal {
.modal-card-foot {
justify-content: flex-end; // pulled-right
}
}