Skip to content

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
denniserdmann committed Oct 20, 2017
2 parents 2e122b7 + 916c24a commit 5f421c8
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 9 deletions.
36 changes: 36 additions & 0 deletions files/nutshell/scss/base/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ $grid__columns: 12 !default;
$grid__gutter: 1.875rem !default; // 30px
$grid__gutter--half: ($grid__gutter / 2) !default;


$debug-mode: false !default;
$row-bg: $color-gray-light;
$col-bg: lighten($color-gray-light, 10%);
$container-bg: rgba($color-page-background,.5);
$grid__gutters: ($grid__columns - 1);

// general row-class
.row {
@include make-row;
Expand Down Expand Up @@ -106,3 +113,32 @@ $grid__gutter--half: ($grid__gutter / 2) !default;
}
}
}

@if ($debug-mode == true) {
// Debug Mode
.row {
position: relative;
background: $row-bg;
z-index: 0;
padding-top: $base-spacing-unit;

&:before {
content: "";
display: block;
position: absolute;
z-index: -1;
left: $grid__gutter--half;
right: $grid__gutter--half;
top: 0;
height: 100%;
background: repeating-linear-gradient(to right,
$col-bg 0%, $col-bg calc((100% - (#{$grid__gutter} * #{$grid__gutters})) / #{$grid__columns}),
$row-bg calc((100% - (1.875rem * 11)) / 12), $row-bg calc(((100% - (#{$grid__gutter} * #{$grid__gutters})) / #{$grid__columns}) + #{$grid__gutter})
); // [1]
}
}

[class*="col"] > div {
background: $container-bg;
}
}
15 changes: 13 additions & 2 deletions files/nutshell/scss/base/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ $code__color: $color-highlight !default;
$pre__color-background: $color-gray !default;
$pre__color: #fff !default;

$selection-background: $color-brand;
$selection-color: $color-text--inverted;

$hr-border: $base-border;

// USED FROM _variables.scss

// --------------------------------------------------
Expand Down Expand Up @@ -245,8 +250,8 @@ pre {
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border-top: 1px solid $color-gray-light;
border-bottom: 0;
border: 0;
border-top: $hr-border;
}

// list-item with more than one line of text should have additional space to the following list-item
Expand All @@ -257,3 +262,9 @@ hr {
.ce_text {
margin-bottom: $base-spacing-unit;
}

::selection {
background: $selection-background;
color: $selection-color;
opacity: 1;
}
8 changes: 4 additions & 4 deletions files/nutshell/scss/components/_faq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $faq-border: $base-border !default;
margin-bottom: 0;

&:after {
border-top: $event-border;
border-top: $faq-border;
content: "";
display: block;
}
Expand All @@ -62,7 +62,7 @@ $faq-border: $base-border !default;
margin-bottom: 0;

&:after {
border-top: $event-border;
border-top: $faq-border;
content: "";
display: block;
}
Expand All @@ -76,7 +76,7 @@ $faq-border: $base-border !default;
margin-bottom: 0;

&:after {
border-top: $event-border;
border-top: $faq-border;
content: "";
display: block;
}
Expand All @@ -88,7 +88,7 @@ $faq-border: $base-border !default;
margin-bottom: 0;

&:after {
border-top: $event-border;
border-top: $faq-border;
content: "";
display: block;
}
Expand Down
6 changes: 4 additions & 2 deletions files/nutshell/scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@


// VARIABLES
$input-border-radius: $base-border-radius !default;
$input-border-width: $base-border-width !default;
$input-border-radius: $base-border-radius !default;
$input-border-color: rgba(0,0,0,0.25) !default;

// USED FROM _variables.scss

Expand Down Expand Up @@ -54,7 +56,7 @@ textarea {
width: 100%;
padding: ($base-spacing-unit / 2) $base-spacing-unit;
border-radius: $input-border-radius;
border: $base-border-width solid rgba(0,0,0,0.25);
border: $input-border-width solid $input-border-color;
background-clip: padding-box; // [4]

background-image: none; // [7]
Expand Down
3 changes: 2 additions & 1 deletion files/nutshell/scss/components/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ tfoot {

.table--overflow {
overflow-x: scroll;
}
-ms-overflow-x: auto;
}

0 comments on commit 5f421c8

Please sign in to comment.