Skip to content

Commit

Permalink
Improvements to edit forms
Browse files Browse the repository at this point in the history
Minor CSS improvements on blocks
  • Loading branch information
jon48 committed Jun 22, 2020
1 parent 6753c8a commit 0e2df15
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 44 deletions.
Binary file modified src/sass/resources/images/block_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 18 additions & 15 deletions src/sass/rural/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,37 +179,40 @@ input, select, .custom-select{
* Select2 overrides
*/

.select2 {
.select2-container {
.select2-selection, .select2-dropdown {
background-color: $maj-c-theme-lighter;
}

.select2-selection.select2-selection--single {
.select2-selection--single {
min-height: 28px;
height: auto;
}

.select2-container .select2-selection--single .select2-selection__rendered {
padding-left: 2px;
}

.select2-selection--single .NAME {
padding-left: 4px;

.select2-selection__rendered {
padding-left: 2px;
}

.NAME {
padding-left: 4px;
}
}
}

/*
* Common classes
*/

.maj-font-color-brown {
.center {
text-align: center;
}

.maj-font-color-brown {
@include maj-font-color($maj-c-theme-dark, $maj-c-theme-medium);
}
}

.maj-font-color-blue {
.maj-font-color-blue {
@include maj-font-color($maj-c-bluegray, $maj-c-bluegray-dark);
}

}

.maj-content-tabs {

Expand Down
23 changes: 23 additions & 0 deletions src/sass/rural/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,29 @@
text-align: center;
}


form.wt-page-content {
@extend .container;

> .form-group {

background-color: $maj-c-theme-light;

.col-form-label {
color: $maj-c-theme-primary;
background-color: $maj-c-theme-medium;
}

> div {
padding: $input-padding-y $input-padding-x;
}
}

> .card {
@extend .row;
}
}

/* Tabs */

.nav-tabs {
Expand Down
91 changes: 62 additions & 29 deletions src/sass/rural/_pages-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
* along with webtrees-MyArtJaub. If not, see <http://www.gnu.org/licenses/>.
*/

@mixin maj-block-large {
padding-top: 0;
padding-left: 46px;
background-image: url(block_bg.png);
background-repeat: repeat-y;
}

.wt-block {
border-style: none;
background-color: transparent;

&:first-child {
margin-top: 1rem;
Expand All @@ -36,17 +44,18 @@
.wt-side-blocks &.wt-side-block-optional {
display: none !important;
}

#edit-blocks & {
@include maj-block-large;
}

@include media-breakpoint-up(md) {
.wt-main-blocks & {
.wt-main-blocks & {
@include media-breakpoint-up(md) {
@include maj-block-large;

&:first-child {
margin-top: 1rem;
}

padding-top: 0;
padding-left: 46px;
background-image: url(block_bg.png);
background-repeat: repeat-y;
}
}

Expand All @@ -64,30 +73,17 @@
.dataTables_wrapper {
border: none;
}

& > p {
text-align: center;
}
}



.wt-block-content-user_messages {


button {
@extend .btn;
@extend .btn-primary;

margin-left: 1rem;
}

h2 {
font-size: 1rem;

&:first-child {
font-weight: bold;
}
}

table {
@extend .table-striped;
.wt-block-content-charts {
overflow-y: auto;

.wt-chart-box {
width: 15rem;
}
}

Expand All @@ -107,5 +103,42 @@
}
}
}

.wt-block-content-html {
p {
text-align: unset;
}
}

.wt-block-content-user_messages {
button[type=submit] {
@extend .btn;
@extend .btn-primary;
}

label + select {
margin-left: 0.5rem;
margin-right: 0.5rem;
}

h2 {
font-size: 1rem;

&:first-child {
font-weight: bold;
}
}

table {
@extend .table-striped;

tr:nth-child(even) .list_value_wrap {background: $maj-c-theme-light}
tr:nth-child(odd) .list_value_wrap {background: $maj-c-theme-lighter}

.list_value_wrap .btn-primary {
@extend .btn-primary;
}
}
}

}

0 comments on commit 0e2df15

Please sign in to comment.