diff --git a/.editorconfig b/.editorconfig index 1151840..5f18790 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,7 @@ indent_size = 4 indent_style = tab insert_final_newline = false max_line_length = 120 + +[*.{css,scss}] +tab_width = 2 +indent_size = tab diff --git a/source/style/demo.scss b/source/style/demo.scss index b3d4100..24ae0f0 100644 --- a/source/style/demo.scss +++ b/source/style/demo.scss @@ -1,6 +1,6 @@ // Start a new project by creating YOUR-PROJECT.scss and _YOUR-CONFIG.scss // Then import your config and hippie -// NOTE // No css rules allowed in here +// NOTE: No css rules allowed in here // ------------------------------------------------------------------------------ @import "demo_config"; @import "hippie-style/hippie"; diff --git a/source/style/modules/demo/_demo_module.scss b/source/style/modules/demo/_demo_module.scss index f6cc23c..342b2c6 100644 --- a/source/style/modules/demo/_demo_module.scss +++ b/source/style/modules/demo/_demo_module.scss @@ -134,60 +134,84 @@ margin: $space_small 0 $space_basic 0; } -.demo__button_32 { - width: 32px; - height: 32px; -} - - - .demo__queries > p { - padding: $padding_basic; + padding: $padding_basic; } .query_phoneUp { - @include forPhoneUp {background-color: rgba($color_text_basic, 0.2)}; + @include forPhoneUp { + background-color: rgba($color_text_basic, 0.2) + } +; } .query_phoneOnly { - @include forPhoneOnly { background-color: rgba($color_text_basic, 0.2); } + @include forPhoneOnly { + background-color: rgba($color_text_basic, 0.2); + } } .query_tabletPortaitOnly { - @include forTabletPortraitOnly { background-color: rgba($color_text_basic, 0.2); } + @include forTabletPortraitOnly { + background-color: rgba($color_text_basic, 0.2); + } } .query_tabletPortraitUp { - @include forTabletPortraitUp { background-color: rgba($color_text_basic, 0.2); } + @include forTabletPortraitUp { + background-color: rgba($color_text_basic, 0.2); + } } .query_tabletLandscapeOnly { - @include forTabletLandscapeOnly { background-color: rgba($color_text_basic, 0.2); } + @include forTabletLandscapeOnly { + background-color: rgba($color_text_basic, 0.2); + } } .query_tabletLandscapeUp { - @include forTabletLandscapeUp { background-color: rgba($color_text_basic, 0.2); } + @include forTabletLandscapeUp { + background-color: rgba($color_text_basic, 0.2); + } } .query_desktopOnly { - @include forDesktopOnly { background-color: rgba($color_text_basic, 0.2); } + @include forDesktopOnly { + background-color: rgba($color_text_basic, 0.2); + } } .query_desktopUp { - @include forDesktopUp { background-color: rgba($color_text_basic, 0.2); } + @include forDesktopUp { + background-color: rgba($color_text_basic, 0.2); + } } .query_bigDesktopUp { - @include forBigDesktopUp { background-color: rgba($color_text_basic, 0.2); } + @include forBigDesktopUp { + background-color: rgba($color_text_basic, 0.2); + } } .demo__query_example { - @include goingLarge($screen_tiny) {background-color: $alpha_color; } - @include goingLarge($screen_small) {background-color: $bravo_color; } - @include goingLarge($screen_medium) {background-color: $charlie_color; } - @include goingLarge($screen_large) {background-color: $delta_color; } - @include goingLarge($screen_huge) {background-color: $echo_color; } - @include goingLarge($screen_gigantic) {background-color: $foxtrot_color; } + @include goingLarge($screen_tiny) { + background-color: $alpha_color; + } + @include goingLarge($screen_small) { + background-color: $bravo_color; + } + @include goingLarge($screen_medium) { + background-color: $charlie_color; + } + @include goingLarge($screen_large) { + background-color: $delta_color; + } + @include goingLarge($screen_huge) { + background-color: $echo_color; + } + @include goingLarge($screen_gigantic) { + background-color: $foxtrot_color; + } margin-bottom: $space_small; padding: $space_small; text-align: center; @@ -195,19 +219,29 @@ &:after { @extend code; @include goingLarge($screen_tiny) { - & { content: '768px'; } + & { + content: '768px'; + } } @include goingLarge($screen_small) { - & { content: '1024px'; } + & { + content: '1024px'; + } } @include goingLarge($screen_medium) { - & { content: '1280px'; } + & { + content: '1280px'; + } } @include goingLarge($screen_huge) { - & { content: '1680px'; } + & { + content: '1680px'; + } } @include goingLarge($screen_gigantic) { - & { content: '1920px'; } + & { + content: '1920px'; + } } content: '< 768px'; padding: $padding_basic; @@ -240,7 +274,7 @@ display: flex; // height: 100%; align-items: center; - justify-content: center; + justify-content: center; } .hello {