mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-13 17:33:59 +02:00
Changed media queries for screen specificity
All @media queries now use the 'screen' mediatype, so that print stylesheets can be more easily implemented in the future, using small screen layouts, but not mobile-specific tricks.
This commit is contained in:
36
dist/mini-default.css
vendored
36
dist/mini-default.css
vendored
@@ -196,7 +196,7 @@ figcaption {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 4px; }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
.row[class*='cols-md-'] > * {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -204,7 +204,7 @@ figcaption {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 4px; } }
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
@media screen and (min-width: 1280px) {
|
||||
.row[class*='cols-lg-'] > * {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -350,7 +350,7 @@ figcaption {
|
||||
-webkit-order: 999;
|
||||
order: 999; }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
.col-md,
|
||||
[class^='col-md-'],
|
||||
[class^='col-md-offset-'] {
|
||||
@@ -461,7 +461,7 @@ figcaption {
|
||||
-webkit-order: 999;
|
||||
order: 999; } }
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
@media screen and (min-width: 1280px) {
|
||||
.col-lg,
|
||||
[class^='col-lg-'],
|
||||
[class^='col-lg-offset-'] {
|
||||
@@ -713,7 +713,7 @@ label {
|
||||
-webkit-flex-basis: 0;
|
||||
flex-basis: 0; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
.input-group.fluid {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-align-items: stretch;
|
||||
@@ -863,7 +863,7 @@ input[type="file"] {
|
||||
.button-group [role="button"] + .button, .button-group [role="button"] + [role="button"] {
|
||||
border-left: 1px solid #9e9e9e; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
.button-group {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
@@ -1015,7 +1015,7 @@ table {
|
||||
table th:first-child, table td:first-child {
|
||||
border-left: 0; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
table:not(.preset) {
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
@@ -1050,7 +1050,7 @@ table {
|
||||
table:not(.preset) td:last-child {
|
||||
border-bottom: 0; } }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
table.horizontal {
|
||||
display: -webkit-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -1109,7 +1109,7 @@ table {
|
||||
table.horizontal tbody tr:first-child > td {
|
||||
padding-left: 20px; } }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
table.horizontal.preset {
|
||||
display: -webkit-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -1168,7 +1168,7 @@ table {
|
||||
table.striped tr:nth-of-type(2n) > td {
|
||||
background: #eeeeee; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
table.striped:not(.preset) tr:nth-of-type(2n) {
|
||||
background: #eeeeee; } }
|
||||
|
||||
@@ -1210,18 +1210,18 @@ table.striped tr:nth-of-type(2n) > td {
|
||||
.card > .section:last-child {
|
||||
border-bottom: 0; }
|
||||
|
||||
@media (min-width: 320px) {
|
||||
@media screen and (min-width: 320px) {
|
||||
.card {
|
||||
max-width: 320px; } }
|
||||
|
||||
/*
|
||||
Custom elements for cards and containers.
|
||||
*/
|
||||
@media (min-width: 480px) {
|
||||
@media screen and (min-width: 480px) {
|
||||
.card.large {
|
||||
max-width: 480px; } }
|
||||
|
||||
@media (min-width: 240px) {
|
||||
@media screen and (min-width: 240px) {
|
||||
.card.small {
|
||||
max-width: 240px; } }
|
||||
|
||||
@@ -1343,7 +1343,7 @@ table.striped tr:nth-of-type(2n) > td {
|
||||
border: 1px solid #9e9e9e;
|
||||
border-top: 0; }
|
||||
.tabs.stacked > [type="radio"]:checked + label + div, .tabs.stacked > [type="checkbox"]:checked + label + div {
|
||||
height: auto; }
|
||||
height: auto; }
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.tabs {
|
||||
@@ -1713,22 +1713,22 @@ ul.breadcrumbs {
|
||||
border-radius: 50% !important; }
|
||||
|
||||
.responsive-margin {
|
||||
margin: 4px !important; }
|
||||
margin: 4px !important; }
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.responsive-margin {
|
||||
margin: 6px !important; } }
|
||||
margin: 6px !important; } }
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
.responsive-margin {
|
||||
margin: 8px !important; } }
|
||||
|
||||
.responsive-padding {
|
||||
padding: 2px 4px !important; }
|
||||
padding: 2px 4px !important; }
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.responsive-padding {
|
||||
padding: 4px 6px !important; } }
|
||||
padding: 4px 6px !important; } }
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
.responsive-padding {
|
||||
|
2
dist/mini-default.min.css
vendored
2
dist/mini-default.min.css
vendored
File diff suppressed because one or more lines are too long
32
dist/mini-sucroa.css
vendored
32
dist/mini-sucroa.css
vendored
@@ -199,7 +199,7 @@ figcaption {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 4px; }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
.row[class*='cols-md-'] > * {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -207,7 +207,7 @@ figcaption {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 4px; } }
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
@media screen and (min-width: 1280px) {
|
||||
.row[class*='cols-lg-'] > * {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-flex: 0;
|
||||
@@ -353,7 +353,7 @@ figcaption {
|
||||
-webkit-order: 999;
|
||||
order: 999; }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media screen and (min-width: 768px) {
|
||||
.col-md,
|
||||
[class^='col-md-'],
|
||||
[class^='col-md-offset-'] {
|
||||
@@ -464,7 +464,7 @@ figcaption {
|
||||
-webkit-order: 999;
|
||||
order: 999; } }
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
@media screen and (min-width: 1280px) {
|
||||
.col-lg,
|
||||
[class^='col-lg-'],
|
||||
[class^='col-lg-offset-'] {
|
||||
@@ -703,7 +703,7 @@ label {
|
||||
-webkit-flex-basis: 0;
|
||||
flex-basis: 0; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
.input-group.fluid {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-align-items: stretch;
|
||||
@@ -853,7 +853,7 @@ input[type="file"] {
|
||||
.button-group [role="button"] + .button, .button-group [role="button"] + [role="button"] {
|
||||
border-left: 1px solid #a9a2ba; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
.button-group {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-direction: column;
|
||||
@@ -1008,7 +1008,7 @@ table {
|
||||
table th:first-child, table td:first-child {
|
||||
border-left: 0; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
table:not(.preset) {
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
@@ -1047,7 +1047,7 @@ table {
|
||||
table.striped tr:nth-of-type(2n) > td {
|
||||
background: #ece4ff; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media screen and (max-width: 767px) {
|
||||
table.striped:not(.preset) tr:nth-of-type(2n) {
|
||||
background: #ece4ff; } }
|
||||
|
||||
@@ -1090,18 +1090,18 @@ table.striped tr:nth-of-type(2n) > td {
|
||||
.card > .section:last-child {
|
||||
border-bottom: 0; }
|
||||
|
||||
@media (min-width: 320px) {
|
||||
@media screen and (min-width: 320px) {
|
||||
.card {
|
||||
max-width: 320px; } }
|
||||
|
||||
/*
|
||||
Custom elements for cards and containers.
|
||||
*/
|
||||
@media (min-width: 480px) {
|
||||
@media screen and (min-width: 480px) {
|
||||
.card.large {
|
||||
max-width: 480px; } }
|
||||
|
||||
@media (min-width: 240px) {
|
||||
@media screen and (min-width: 240px) {
|
||||
.card.small {
|
||||
max-width: 240px; } }
|
||||
|
||||
@@ -1242,7 +1242,7 @@ table.striped tr:nth-of-type(2n) > td {
|
||||
height: auto; }
|
||||
.tabs.stacked > [type="radio"] + label + div:last-of-type, .tabs.stacked > [type="checkbox"] + label + div:last-of-type {
|
||||
border-bottom-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px; }
|
||||
border-bottom-right-radius: 2px; }
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.tabs {
|
||||
@@ -1596,22 +1596,22 @@ ul.breadcrumbs {
|
||||
border-radius: 50% !important; }
|
||||
|
||||
.responsive-margin {
|
||||
margin: 3px !important; }
|
||||
margin: 3px !important; }
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.responsive-margin {
|
||||
margin: 6px !important; } }
|
||||
margin: 6px !important; } }
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
.responsive-margin {
|
||||
margin: 10px !important; } }
|
||||
|
||||
.responsive-padding {
|
||||
padding: 2px 3px !important; }
|
||||
padding: 2px 3px !important; }
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.responsive-padding {
|
||||
padding: 4px 6px !important; } }
|
||||
padding: 4px 6px !important; } }
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
.responsive-padding {
|
||||
|
2
dist/mini-sucroa.min.css
vendored
2
dist/mini-sucroa.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -922,3 +922,7 @@
|
||||
- Added external variables to `contextual`.
|
||||
- Updated defaults for `progress` module, no externals were needed.
|
||||
- Added more default values to `utility`. Default and external adding seems complete, I might have missed something, but good enough for now.
|
||||
|
||||
## 20170402
|
||||
|
||||
- Updated `@media` queries in all modules to utilize `screen`, so that layout changes will only apply to screens (irrelevant in print). `print` stylesheets are coming later down the line and all layouts will print as if in *small* screens (basically `col-sm-...` layouts), to simplifiy everything. Size increased from `6.79KB` to `6.82KB`, worthwhile cost.
|
||||
|
@@ -76,7 +76,7 @@ $fore-color: black !default; // [External variable - core] Foreground
|
||||
}
|
||||
}
|
||||
// Responsiveness (if the screen is larger than card, set max-width)
|
||||
@media (min-width: #{$card-normal-width}) {
|
||||
@media screen and (min-width: #{$card-normal-width}) {
|
||||
.#{$card-name} {
|
||||
max-width: $card-normal-width;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@
|
||||
}
|
||||
}
|
||||
@else {
|
||||
@media (min-width: #{$card-alt-size-width}) {
|
||||
@media screen and (min-width: #{$card-alt-size-width}) {
|
||||
.#{$card-name}.#{$card-alt-size-name} {
|
||||
max-width: $card-alt-size-width;
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
flex: 0 0 auto;
|
||||
padding: $grid-column-padding;
|
||||
}
|
||||
@media (min-width: #{$grid-small-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-small-breakpoint}){
|
||||
.#{$grid-row-name}[class*='#{$grid-row-parent-layout-prefix}-#{$grid-small-prefix}-'] > * {
|
||||
box-sizing: border-box;
|
||||
// Old syntax
|
||||
@@ -66,7 +66,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
padding: $grid-column-padding;
|
||||
}
|
||||
}
|
||||
@media (min-width: #{$grid-medium-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-medium-breakpoint}){
|
||||
.#{$grid-row-name}[class*='#{$grid-row-parent-layout-prefix}-#{$grid-medium-prefix}-'] > * {
|
||||
box-sizing: border-box;
|
||||
// Old syntax
|
||||
@@ -77,7 +77,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
padding: $grid-column-padding;
|
||||
}
|
||||
}
|
||||
@media (min-width: #{$grid-large-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-large-breakpoint}){
|
||||
.#{$grid-row-name}[class*='#{$grid-row-parent-layout-prefix}-#{$grid-large-prefix}-'] > * {
|
||||
box-sizing: border-box;
|
||||
// Old syntax
|
||||
@@ -99,7 +99,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
flex: 0 0 auto;
|
||||
padding: $grid-column-padding;
|
||||
}
|
||||
@media (min-width: #{$grid-medium-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-medium-breakpoint}){
|
||||
.#{$grid-row-name}[class*='#{$grid-row-parent-layout-prefix}-#{$grid-medium-prefix}-'] > * {
|
||||
box-sizing: border-box;
|
||||
// Old syntax
|
||||
@@ -110,7 +110,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
padding: $grid-column-padding;
|
||||
}
|
||||
}
|
||||
@media (min-width: #{$grid-large-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-large-breakpoint}){
|
||||
.#{$grid-row-name}[class*='#{$grid-row-parent-layout-prefix}-#{$grid-large-prefix}-'] > * {
|
||||
box-sizing: border-box;
|
||||
// Old syntax
|
||||
@@ -212,7 +212,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
// Legacy grid system definitions.
|
||||
@if $use-four-step-grid {
|
||||
// Small screen breakpoint.
|
||||
@media (min-width: #{$grid-small-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-small-breakpoint}){
|
||||
// Grid column generic definitions for small screens.
|
||||
.#{$grid-column-prefix}-#{$grid-small-prefix},
|
||||
[class^='#{$grid-column-prefix}-#{$grid-small-prefix}-'],
|
||||
@@ -386,7 +386,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
}
|
||||
// The rest is mixed definitions.
|
||||
// Medium screen breakpoint.
|
||||
@media (min-width: #{$grid-medium-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-medium-breakpoint}){
|
||||
// Grid column generic definitions for medium screens.
|
||||
.#{$grid-column-prefix}-#{$grid-medium-prefix},
|
||||
[class^='#{$grid-column-prefix}-#{$grid-medium-prefix}-'],
|
||||
@@ -472,7 +472,7 @@ $grid-large-prefix: 'lg' !default; // Large screen class prefix for grid
|
||||
}
|
||||
}
|
||||
// Large screen breakpoint.
|
||||
@media (min-width: #{$grid-large-breakpoint}){
|
||||
@media screen and (min-width: #{$grid-large-breakpoint}){
|
||||
// Grid column generic definitions for large screens.
|
||||
.#{$grid-column-prefix}-#{$grid-large-prefix},
|
||||
[class^='#{$grid-column-prefix}-#{$grid-large-prefix}-'],
|
||||
|
@@ -110,7 +110,7 @@ legend {
|
||||
}
|
||||
// Responsiveness for fluid input groups
|
||||
@if $include-fluid-input-group {
|
||||
@media (max-width: #{$input-group-mobile-breakpoint}) {
|
||||
@media screen and (max-width: #{$input-group-mobile-breakpoint}) {
|
||||
.#{$input-group-name}.#{$input-group-fluid-name} {
|
||||
// Old syntax
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -330,7 +330,7 @@ a[role="button"], label[role="button"], [role="button"] {
|
||||
}
|
||||
}
|
||||
// Responsiveness for button groups
|
||||
@media (max-width: #{$button-group-mobile-breakpoint}) {
|
||||
@media screen and (max-width: #{$button-group-mobile-breakpoint}) {
|
||||
.#{$button-group-name} {
|
||||
// Old syntax
|
||||
-webkit-box-orient: vertical;
|
||||
|
@@ -212,7 +212,7 @@ $fore-color: black !default; // [External variable - core] Foreground
|
||||
}
|
||||
}
|
||||
// Responsiveness
|
||||
@media (max-width: #{$tab-stacked-breakpoint}) {
|
||||
@media screen and (max-width: #{$tab-stacked-breakpoint}) {
|
||||
.#{$tab-container-name} {
|
||||
// Old syntax
|
||||
-webkit-box-orient: vertical;
|
||||
|
@@ -64,7 +64,7 @@ table {
|
||||
}
|
||||
}
|
||||
// Mobile view for responsive tables.
|
||||
@media (max-width: #{$table-mobile-breakpoint}) {
|
||||
@media screen and (max-width: #{$table-mobile-breakpoint}) {
|
||||
table:not(.#{$table-not-responsive-name}) {
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
@@ -121,7 +121,7 @@ table {
|
||||
}
|
||||
// Horizontal table view.
|
||||
@if $include-horizontal-table {
|
||||
@media (min-width: #{$table-horizontal-breakpoint}) {
|
||||
@media screen and (min-width: #{$table-horizontal-breakpoint}) {
|
||||
table.#{$table-horizontal-name} {
|
||||
// Old syntax
|
||||
display: -webkit-box;
|
||||
@@ -209,7 +209,7 @@ table {
|
||||
}
|
||||
}
|
||||
// Horizontal table view for non-responsive tables. - Apply over breakpoint when non-responsive.
|
||||
@media (max-width: #{$table-mobile-breakpoint}) {
|
||||
@media screen and (max-width: #{$table-mobile-breakpoint}) {
|
||||
table.#{$table-horizontal-name}.#{$table-not-responsive-name} {
|
||||
// Old syntax
|
||||
display: -webkit-box;
|
||||
@@ -299,7 +299,7 @@ table {
|
||||
}
|
||||
}
|
||||
// Responsiveness for striped tables.
|
||||
@media (max-width: #{$table-mobile-breakpoint}) {
|
||||
@media screen and (max-width: #{$table-mobile-breakpoint}) {
|
||||
table.#{$table-striped-name}:not(.#{$table-not-responsive-name}) {
|
||||
tr:nth-of-type(2n) {
|
||||
background: $table-striped-alt-body-back-color;
|
||||
|
@@ -40,12 +40,12 @@
|
||||
.#{$margin-name} {
|
||||
margin: $margin-small-value !important;
|
||||
}
|
||||
@media (min-width: #{$margin-medium-breakpoint}) {
|
||||
@media screen and (min-width: #{$margin-medium-breakpoint}) {
|
||||
.#{$margin-name} {
|
||||
margin: $margin-medium-value !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: #{$margin-large-breakpoint}) {
|
||||
@media screen and (min-width: #{$margin-large-breakpoint}) {
|
||||
.#{$margin-name} {
|
||||
margin: $margin-large-value !important;
|
||||
}
|
||||
@@ -65,12 +65,12 @@
|
||||
.#{$padding-name} {
|
||||
padding: $padding-small-value !important;
|
||||
}
|
||||
@media (min-width: #{$padding-medium-breakpoint}) {
|
||||
@media screen and (min-width: #{$padding-medium-breakpoint}) {
|
||||
.#{$padding-name} {
|
||||
padding: $padding-medium-value !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: #{$padding-large-breakpoint}) {
|
||||
@media screen and (min-width: #{$padding-large-breakpoint}) {
|
||||
.#{$padding-name} {
|
||||
padding: $padding-large-value !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user