Skip to:
Content

BuddyPress.org

Ticket #7384: 7384.patch

File 7384.patch, 3.3 KB (added by netweb, 9 years ago)
  • src/bp-templates/bp-legacy/css/twentyseventeen.scss

     
    1212// of managing media queries, scalability & flexibility.
    1313
    1414// 2017 Media Queries / Breakpoints.
    15 $small-up-2017:      'min-width: 30em';
    16 $med-small-up-2017:  'min-width: 48em';
    17 $medium-up-2017:     'min-width: 55em';
    18 $large-up-2017:      'min-width: 67em';
    19 $x-large-up-2017:    'min-width: 79em';
     15$small-up-2017:      "min-width: 30em";
     16$med-small-up-2017:  "min-width: 48em";
     17$medium-up-2017:     "min-width: 55em";
     18$large-up-2017:      "min-width: 67em";
     19$x-large-up-2017:    "min-width: 79em";
    2020
    2121
    2222// In addition BP will use the em breakpoints as  referenced below to provide
     
    2424// For main structural elements we use the themes values, only using bp breakpoints
    2525// to manage granular elements in loops etc.
    2626
    27 $x-small-only-bp: 'max-width: 22em'; // for xtra small mobile only
    28 $small-only-bp:   'max-width: 38.75em'; //  small only
    29 $small-up-bp:     'min-width: 38.75em'; //  small only
    30 $med-only-bp:     'max-width: 46.25em'; // med small only
     27$x-small-only-bp: "max-width: 22em"; // for xtra small mobile only
     28$small-only-bp:   "max-width: 38.75em"; //  small only
     29$small-up-bp:     "min-width: 38.75em"; //  small only
     30$med-only-bp:     "max-width: 46.25em"; // med small only
    3131
    3232// Mixins and Variables
    3333
     
    3939//
    4040
    4141@mixin x-small-only {
    42         @media screen and ( $x-small-only-bp ){
     42        @media screen and ($x-small-only-bp){
    4343                @content;
    4444        }
    4545}
    4646
    4747@mixin small-only {
    48         @media screen and ( $small-only-bp ){
     48        @media screen and ($small-only-bp){
    4949                @content;
    5050        }
    5151}
    5252
    5353@mixin medium-only-bp {
    54         @media screen and ( $med-only-bp ){
     54        @media screen and ($med-only-bp){
    5555                @content;
    5656        }
    5757}
    5858
    5959@mixin small-up-bp {
    60         @media screen and ( $small-up-bp ){
     60        @media screen and ($small-up-bp){
    6161                @content;
    6262        }
    6363}
    6464
    6565@mixin small-up {
    66         @media screen and ( $small-up-2017 ){
     66        @media screen and ($small-up-2017){
    6767                @content;
    6868        }
    6969}
    7070
    7171@mixin med-small-up {
    72         @media screen and ( $med-small-up-2017 ) {
     72        @media screen and ($med-small-up-2017) {
    7373                @content;
    7474        }
    7575}
    7676
    7777@mixin medium-up {
    78         @media screen and ( $medium-up-2017 ) {
     78        @media screen and ($medium-up-2017) {
    7979                @content;
    8080        }
    8181}
    8282
    8383@mixin large-up {
    84         @media screen and ( $large-up-2017 ) {
     84        @media screen and ($large-up-2017) {
    8585                @content;
    8686        }
    8787}
    8888
    8989@mixin x-large-up {
    90         @media screen and ( $x-large-up-2017 ) {
     90        @media screen and ($x-large-up-2017) {
    9191                @content;
    9292        }
    9393}
     
    346346                }
    347347        }
    348348
    349 body.buddypress:not(.has-sidebar),
    350 body.buddypress:not(.page-two-column) {
     349        body.buddypress:not(.has-sidebar),
     350        body.buddypress:not(.page-two-column) {
    351351
    352352                #primary.content-area {
    353353                        max-width: 100%;
     
    20312031                                td.thread-from {
    20322032                                        height: 3em;
    20332033
    2034                                 @include small-only {
     2034                                        @include small-only {
    20352035                                                height: 5.2em;
    20362036                                        }
    20372037                                }
     
    25752575
    25762576} // close  #buddypress
    25772577
    2578 // Without direct classes on our mesages ( 'warning' )
     2578// Without direct classes on our mesages ( 'warning')
    25792579// we need to use the body classes
    25802580// todo: If this is class .warning is included in main BP styles remove from here
    25812581