added border around content table

This commit is contained in:
Maren Süwer
2018-12-19 16:39:46 +01:00
parent 9a7c17edb5
commit f0fb4dbdd8
2 changed files with 285 additions and 277 deletions

View File

@@ -91,7 +91,7 @@ class Sources extends React.Component<Props> {
if (currentFileIsDirectory) { if (currentFileIsDirectory) {
return ( return (
<> <div className={"has-border-around"}>
{this.renderBranchSelector()} {this.renderBranchSelector()}
<FileTree <FileTree
repository={repository} repository={repository}
@@ -99,7 +99,7 @@ class Sources extends React.Component<Props> {
path={path} path={path}
baseUrl={baseUrl} baseUrl={baseUrl}
/> />
</> </div>
); );
} else { } else {
return ( return (

View File

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