Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/11/2017 10:42:23 AM (9 years ago)
Author:
hnla
Message:

Commit Twentyseventeen companion style sheets

Commit adds final revision for style adjustments including rules to account for dark/light schemes.

Fixes #7338
Props hnla, offereins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/css/twentyseventeen.scss

    r11282 r11379  
    155155}
    156156
     157@mixin border-radius-none() {
     158    -webkit-border-radius: none;
     159    -moz-border-radius: none;
     160    -ms-border-radius: none;
     161    border-radius: none;
     162}
     163
    157164// Box sizing
    158165@mixin box-model($box-model) {
     
    193200
    194201// Variables: color definitions
    195 $body-text:          #141412;
     202
     203$dark-grey:     #555;
     204$medium-grey:   #878787;
     205$light-grey:    #dcdcdc;
     206$x-light-grey:  #f7f7f7;
     207$white:         #fff;
     208
     209$body-text:          #333;
     210$bp-light-text:      $medium-grey;
     211$bp-xlight-text:     #eee;
    196212$content-background: #fff;
    197 $off-white:          lighten(#f9f8ee, 0.7);
     213$off-white:          #fafafa;
    198214$cream-background:   #f7f5e7;
    199 $light-background:   #f7f7f7;
    200 $medium-background:  #ccc;
    201 $dark-background:    #555;
    202 $border-color:       #d4d0ba;    // border color is varied using rgba
     215$light-background:   $x-light-grey;
     216$medium-background:  $medium-grey;
     217$dark-background:    $dark-grey;
     218$border-color:       #bebebe;
    203219$border-light:       #eaeaea; // BP dividers
    204220$border-med:         #ddd;
     
    207223$notice-error:       #c85a6e;
    208224$notice-warning:     #d05656;
    209 $notice-info:        #9fd1e2;
     225$notice-info:        #7dd4ff;
    210226$notice-update:      #ced98c;
    211227$stripe-odd:         #ebf0ff;
    212228$stripe-even:        #dbe5ff;
    213 $unread:             #eee;
     229$unread:             $x-light-grey;
    214230$link-action:        #c82b2b;
    215231/*--------------------------------------------------------------
     
    278294    div.clear {display: none;}
    279295
     296    // deal with global clearing property set on heading elements
     297    // - for the moment we'll just specify this on  lists ul only
     298
     299    ul.item-list {
     300        h1,
     301        h2,
     302        h3,
     303        h4,
     304        h5,
     305        h6 {
     306            clear: none;
     307            padding: 0;
     308        }
     309    }
     310
    280311    // Ensure no text decoration or box shadow causing underlined effect.
    281312    #page a {
     
    294325} // close .buddypress
    295326
    296     // reduce the overlarge entry title margins
     327// reduce the overlarge entry title margins
    297328@include medium-up {
    298329
     
    311342    }
    312343}
    313 // 2017 has very small page entry title headings
    314 // enlarge slightly for BP screens.
    315 .buddypress {
    316     article.page {
    317         .entry-header {
    318             .entry-title {
    319                 @include font-size(22);
    320 
    321                 @include medium-up {
    322                     @include font-size(28);
    323                 }
    324             }
    325         }
    326     }
    327 }
    328344
    329345// Open up the content width areas for BP screens to allow max widths.
    330 // This takes into account the ability to add/remove sidebars in 2017.
     346// This takes into account the ability to columnize pages in 2017.
    331347// Only effect changes based on breakpoints.
    332348
    333 @include medium-up {
     349@include med-small-up {
    334350
    335351    body.buddypress.page.page-two-column {
     
    338354
    339355            .entry-header {
    340                 width: 20%;
     356                width: 30%;
    341357            }
    342358
    343359            .entry-content {
    344                 width: 80%;
     360                width: 68%;
    345361            }
    346362        }
     
    358374                margin-left: 0;
    359375                margin-right: 0;
    360 //              width: auto;
    361376            }
    362377        }
     
    370385
    371386    } // body.buddypress
     387}
     388
     389// 2017 allows for selecting two distinct color schemes.
     390// Our companion styles respect themes colors & inherit or avoid
     391// setting backgrounds/colors so selecting the dark scheme generally
     392// allows the theme to reset the BP text/headings etc to white
     393// In places we do set backgrounds, Navs, search forms etc these
     394// are added here under the themes body class to enable changing
     395
     396// Some element colors are inherited from BP original sheet so need to
     397// to be reset under the dark scheme, where set in this sheet we simply state them
     398// only for the light scheme, additionally elements such as BP form styles
     399// need styles removing & are handled later in 'Forms' section
     400body.colors-dark {
     401
     402    #buddypress {
     403
     404        //tabs border bottom color needs to match dark background
     405        #group-create-tabs.item-list-tabs {
     406
     407            li.selected,
     408            li.current {
     409                border-bottom-color: #222;
     410
     411                a {
     412                    color: inherit;
     413                }
     414            }
     415        }
     416
     417        div.item-list-tabs {
     418
     419            ul {
     420
     421                li.selected,
     422                li.current {
     423
     424                    a {
     425                        background: none;
     426                        color: inherit;
     427                    }
     428                }
     429            }
     430        }
     431
     432        #object-nav {
     433
     434            li:not(.current):focus,
     435            li:not(.current):hover {
     436
     437                a {
     438                    color: #555;
     439                }
     440            }
     441        }
     442
     443        // With the dark scheme the subnav links lose definition as
     444        // nav menu links, add a border top to clarify the li.last element seperated from links.
     445        #subnav.item-list-tabs {
     446
     447            ul {
     448                border-bottom: 1px solid rgba($border-light, 0.9);
     449                margin-bottom: $spacing-val-md;
     450
     451                li.last {
     452                    border-top: 1px solid rgba($border-light, 0.9);
     453                }
     454            }
     455        }
     456
     457        // lists text: descr, meta, etc
     458        .item-list {
     459
     460            div.meta {
     461                color: #ddd;
     462            }
     463
     464            div.item-desc,
     465            .activity-header p,
     466            .activity-comments ul,
     467            .acomment-meta {
     468                color: $bp-xlight-text;
     469            }
     470
     471            .activity-meta,
     472            .action {
     473                a {
     474                    background: $off-white;
     475
     476                    &:focus,
     477                    &:hover {
     478                        background: $white;
     479                    }
     480                }
     481            }
     482        }
     483
     484        #latest-update {
     485            color: $bp-xlight-text;
     486        }
     487
     488        div.pagination * {
     489            color: #ddd;
     490        }
     491
     492        #item-header {
     493            .user-nicename {
     494                color: $bp-xlight-text;
     495            }
     496        }
     497
     498        #item-body {
     499
     500            table {
     501
     502                thead {
     503
     504                    tr,
     505                    th {
     506                        background: none;
     507                        color: $bp-xlight-text;
     508                    }
     509                }
     510
     511                tr.alt {
     512
     513                    td {
     514                        background: none;
     515                        color: $bp-xlight-text;
     516                    }
     517                }
     518
     519                .field-visibility-settings,
     520                .field-visibility-settings-notoggle {
     521                    color: #eee;
     522                }
     523
     524            }
     525
     526            fieldset {
     527                background: none;
     528            }
     529
     530            .checkbox,
     531            .radio {
     532
     533                label {
     534                    color: #eee;
     535                }
     536            }
     537
     538            div#invite-list {
     539                background: none;
     540            }
     541        }
     542
     543    } // close #buddypress
     544}
     545
     546
     547body.colors-dark.group-members {
     548
     549    #buddypress {
     550
     551        #subnav {
     552
     553            li {background: none;}
     554
     555            .groups-members-search {
     556
     557                form {
     558                    margin-bottom: $spacing-val-md;
     559                    margin-top: 0;
     560                }
     561            }
     562        }
     563    }
     564}
     565
     566// remove borders for dir component screens.
     567.directory.colors-dark {
     568
     569    #buddypress {
     570
     571        #subnav.item-list-tabs {
     572
     573            ul {
     574                border-bottom: 0;
     575                border-top: 0;
     576
     577                li.last.filter {
     578                    border-top: 0;
     579                }
     580            }
     581        }
     582
     583        div.activity {
     584
     585            ul.item-list {
     586                border-top: 0;
     587            }
     588        }
     589    }
     590}
     591
     592body.colors-light {
     593
     594    #buddypress {
     595
     596        div.item-list-tabs {
     597
     598            ul {
     599                background-color: $off-white;
     600            }
     601        }
     602
     603        div#subnav.item-list-tabs {
     604
     605            ul {
     606                background-color: $light-background;
     607
     608                li.last {
     609                    background: $content-background;
     610                }
     611            }
     612        }
     613
     614        .item-list {
     615
     616            .activity-header {
     617
     618                p {
     619                    background-color: $light-background;
     620                    color: $bp-light-text;
     621                }
     622            }
     623
     624            .activity-comments {
     625
     626                .acomment-meta {
     627                    color: #737373;
     628                }
     629            }
     630        }
     631
     632        #item-body {
     633
     634            .profile {
     635
     636                h2 {
     637                    background: $medium-grey;
     638                    color: #fff;
     639                }
     640            }
     641        }
     642
     643        table {
     644
     645            tr.alt {
     646
     647                td {
     648                    background: #f5f5f5;
     649                    color: $body-text;
     650                }
     651            }
     652        }
     653
     654        div#invite-list {
     655            background: $off-white;
     656        }
     657    } // close #buddypress
    372658}
    373659
     
    410696
    411697        ul {
    412             background-color: $off-white;
    413698            border-bottom: 1px solid rgba($border-light, 0.9);
    414             border-top: 1px solid rgba($border-light, 0.9);
    415699            overflow: hidden;
    416700            padding: 0;
     
    419703
    420704                a {
    421                     color: #0073c1;
    422705
    423706                    span {border-radius: 25%;}
     
    429712} // close #buddypress
    430713
    431 // .bp-user #object-nav @ small screen as a dropdown
    432 
    433 .bp-user {
    434 
    435     #buddypress {
    436 
    437         @include small-only {
    438 
    439             #object-nav {
    440                 background: $off-white;
    441                 border: 1px solid $border-light;
    442                 overflow: visible;
    443                 padding: $spacing-val-sm;
    444 
    445                 ul {
    446                     border: 0;
    447                     height: 0;
    448                     // all latest vendor releases handle transitions, so no prefixes used.
    449                     transition: height 0.3s ease-in-out 0.7s;
    450                     visibility: hidden;
    451                 }
    452 
    453                 &:before {
    454                     content: "Menu \021E9";
    455                     display: inline;
    456                     opacity: 0.7;
    457                 }
    458 
    459                 &:hover,
    460                 &:focus {
    461                     &:before {content: "Menu \021E7";}
    462 
    463                     ul {
    464                         height: 320px;
    465                         opacity: 1;
    466                         overflow-y: auto;
    467                         visibility: visible;
    468                     }
    469                 }
    470             }
    471 
    472             #subnav {
    473                 clear: both;
    474             }
    475 
    476         } // close @media
    477     }
    478 }
    479714
    480715/*__ Horizontal menus __*/
     
    520755
    521756        ul {
    522             background-color: $light-background;
    523757            border-bottom: 0;
    524758            margin-top: $spacing-val-xs;
     
    526760
    527761            li.last {
    528                 background: $content-background;
    529762                margin-top: 0;
    530763                padding: $spacing-val-xs $spacing-val-xs $spacing-val-xs 0;
     
    570803// to sit alongside the vert menu
    571804// 2017 right sidebar is displayed if the widget sidebar has widgets;
    572 // we'll only display object nav as a vert menu if sidebar not present.
     805// we'll only display object nav as a vert menu if not .two-column-page.
    573806
    574807@include medium-up {
    575808
    576     body.no-sidebar {
     809    body:not(.page-two-column) {
    577810
    578811        #buddypress {
    579 
    580             #item-header,
    581             #item-body {
    582                 background: $content-background;
    583             }
    584812
    585813            #object-nav {
     
    631859@include med-small-up {
    632860
    633     #main {
    634 
    635         #buddypress {
    636 
    637             #group-create-tabs.item-list-tabs {
    638 
    639                 ul:before,
    640                 ul:after {
    641                     content: " ";
    642                     display: table;
    643                 }
    644 
    645                 ul:after {
    646                     clear: both;
    647                 }
    648 
    649                 ul {
    650                     background: none;
    651                     border: 0;
    652                     border-bottom: 1px solid $border-med;
    653                     overflow: visible;
    654                     padding-bottom: 0;
    655 
    656                     li {
    657                         float: left;
    658                         width: auto;
    659                     }
    660 
    661                     li.selected,
    662                     li.current {
    663                         border: 1px solid $border-med;
    664                         border-bottom-color: $content-background;
    665                         @include border-top-radius(4px);
    666                         margin-bottom: -1px;
    667 
    668                         a {
    669                             background: none;
    670                             color: $body-text;
    671                             outline: none;
    672                         }
    673                     }
    674                 }
    675 
    676             } // close .item-list-tabs
    677 
    678             #subnav {
    679                 ul {
    680                     border-bottom: 0;
    681                 }
    682 
    683             } // close #subnav
    684         } // close #buddypress
    685     }
     861    #buddypress {
     862
     863        #group-create-tabs.item-list-tabs {
     864
     865            ul:before,
     866            ul:after {
     867                content: " ";
     868                display: table;
     869            }
     870
     871            ul:after {
     872                clear: both;
     873            }
     874
     875            ul {
     876                background: none;
     877                border: 0;
     878                border-bottom: 1px solid $border-med;
     879                overflow: visible;
     880                padding-bottom: 0;
     881
     882                li {
     883                    float: left;
     884                    width: auto;
     885                }
     886
     887                li.selected,
     888                li.current {
     889                    border: 1px solid $border-med;
     890                    border-bottom-color: $content-background;
     891                    @include border-top-radius(4px);
     892                    margin-bottom: -1px;
     893
     894                    a {
     895                        background: none;
     896                        color: $body-text;
     897                        outline: none;
     898                    }
     899                }
     900            }
     901
     902        } // close .item-list-tabs
     903
     904        #subnav {
     905            ul {
     906                border-bottom: 0;
     907            }
     908
     909        } // close #subnav
     910    } // close #buddypress
     911
    686912} // close @media
    687913
     
    771997
    772998    .action {
     999
    7731000        .generic-button {
     1001
    7741002            a {
     1003
    7751004                &:focus,
    7761005                &:hover {
     
    8521081                    .update {
    8531082                        display: block;
    854                         @include font-size(12);
     1083                        @include font-size(13);
    8551084
    8561085                        @include medium-up {
     
    8931122                margin-left: 0;
    8941123                padding: $spacing-val-md 0 $spacing-val-xs;
     1124
    8951125                // push the actions to the right
    896 
    8971126                @include medium-up {
    8981127                    clear: none;
     
    9181147                    // position but inline-block the buttons
    9191148
    920                     @include med-small-up {
     1149                    @include small-up {
    9211150                        // keep buttons to a row small tablet up
    9221151                        margin: 0 $spacing-val-sm $spacing-val-sm 0;
     
    10891318
    10901319            .activity-avatar {
     1320
    10911321                a {
     1322
    10921323                    img.avatar {
    10931324                        height: 30px;
     
    11101341
    11111342            .activity-header {
    1112                 line-height: inherit;
    11131343                margin-right: 0;
    11141344
    11151345                p {
    1116                     background-color: $light-background;
    11171346                    border: 1px solid rgba($border-light, 0.6);
    1118                     color: #727272;
    11191347                    margin-top: 0;
    11201348                    padding: 0 0.2em;
     
    11221350
    11231351                img.avatar {
     1352                    box-shadow: none;
    11241353                    display: inline-block;
    1125                     margin-bottom: 0 !important; // have to match to BP
     1354                    margin: 0 5px !important; // have to match to BP
     1355                    vertical-align: middle;
    11261356                }
    11271357            } // close .activity-header
    11281358
    11291359            .activity-meta {
     1360
    11301361                a {
    11311362                    display: block;
    11321363                    margin-bottom: $spacing-val-xs;
    11331364
    1134                     @include small-up-bp {
     1365                    @include small-up {
    11351366                        display: inline-block;
    11361367                        margin-bottom: 0;
     1368                        width: auto;
    11371369                    }
    11381370                }
     
    11981430        .activity-comments {
    11991431            border-left: 1px solid $border-light;
    1200             margin-top: 5px;
     1432            margin: $spacing-val-md 0 $spacing-val-md;
     1433
     1434            @include small-up {
     1435                margin-left: $spacing-val-md;
     1436            }
    12011437
    12021438            ul {
    1203                 background: rgba($light-background, 0.6);
    1204                 color: #737373;
    12051439                margin: 15px 0 0 2px;
     1440
     1441                li {
     1442                    border-top: 1px solid $border-color;
     1443                }
    12061444
    12071445                a {
     
    12111449
    12121450            .acomment-meta {
    1213                 color: #737373;
     1451                border-bottom: 1px solid $border-light;
    12141452            }
    12151453
     
    12571495
    12581496        @include medium-up {
     1497
    12591498            li {
    12601499                .item-avatar,
     
    12651504                .action {
    12661505                    float: right;
     1506                }
     1507            }
     1508
     1509            li.is-current-user {
     1510
     1511                .item {
     1512                    float: none;
     1513                    left: 0;
     1514                    padding-left: 5%;
     1515                    width: auto;
    12671516                }
    12681517            }
     
    13191568*-----------------------------------------------------------
    13201569*/
     1570@include med-small-up {
     1571
     1572
     1573    .bp-user.page-two-column {
     1574
     1575        #buddypress {
     1576
     1577            #cover-image-container {
     1578
     1579                #item-header-cover-image {
     1580
     1581                    #item-header-content {
     1582                        margin-left: 140px;
     1583                        margin-top: -100px;
     1584                    }
     1585                }
     1586            }
     1587        }
     1588    }
     1589
     1590    .single-item.groups.page-two-column {
     1591
     1592        #buddypress {
     1593
     1594            #cover-image-container {
     1595
     1596                #item-header-cover-image {
     1597
     1598                    #item-header-content {
     1599                        margin-left: 10px;
     1600                    }
     1601                }
     1602            }
     1603        }
     1604    }
     1605
     1606} // close media
    13211607
    13221608.bp-user,
     
    13241610
    13251611    #buddypress {
     1612
     1613        // we need to remove the cover image dec styles
     1614        // & reset them for med up  only.
     1615        #item-header-cover-image {
     1616            .user-nicename {
     1617                color: $body-text;
     1618                text-shadow: none;
     1619            }
     1620        }
     1621
     1622        @include med-small-up {
     1623
     1624            #item-header-cover-image {
     1625
     1626                .user-nicename {
     1627                    color: $white;
     1628                    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
     1629                }
     1630            }
     1631        }
    13261632
    13271633        #item-header-content {
     
    14181724
    14191725                    a {
    1420                         border-bottom: 0;
    14211726
    14221727                        img {
     
    15251830
    15261831                a {
    1527                     border-bottom: 0;
    15281832                    display: inline-block;
    15291833                    float: none;
     
    15601864*-----------------------------------------------------------
    15611865*/
     1866
    15621867
    15631868/**
     
    15691874*/
    15701875
     1876.groups.single-item.members {
     1877
     1878    #buddypress {
     1879
     1880        #subnav.item-list-tabs {
     1881
     1882            ul {
     1883                background: none;
     1884                border-top: 0;
     1885            }
     1886
     1887        }
     1888    }
     1889
     1890}
     1891
    15711892/**
    15721893*-----------------------------------------
     
    17102031                }
    17112032
    1712                 margin: $spacing-val-xs $spacing-val-xs 0 0;
     2033                margin: $spacing-val-xs 0 0;
    17132034            }
    17142035        }
     
    17792100        .pag-count {font-style: italic;}
    17802101
    1781         .notifications-options-nav {
    1782             border: 1px solid rgba($border-color, 0.5);
     2102        .notifications-options-nav,
     2103        .messages-options-nav {
     2104
    17832105            float: left;
    17842106            width: 100%;
     
    17942116            select,
    17952117            input {
    1796                 border: 0;
     2118
    17972119                @include font-size(14);
    17982120                outline: 0;
     
    18022124            select {
    18032125                float: left;
    1804                 margin-right: 0;
    1805                 width: 60%;
     2126                margin-right: 1%;
     2127                width: 59%;
    18062128            }
    18072129
     
    18132135            }
    18142136
    1815         } // close .notifications-options-nav
     2137            input[disabled="disabled"]:focus,
     2138            input[disabled="disabled"]:hover {
     2139                background: none;
     2140            }
     2141
     2142
     2143        } // close .notifications-options-nav/.messages-options-nav
    18162144
    18172145    } //close #buddypress
     
    18292157
    18302158        .profile {
    1831             .bp-widget {
     2159
    18322160                h2 {
    1833                     background: lighten($dark-background, 15%);
    1834                     color: #fff;
    18352161                    margin: $spacing-val-lg 0 $spacing-val-sm;
    18362162                    padding: 0.1em 0 0.1em 0.4em;
     
    18382164
    18392165                table {margin-top: 0;}
    1840             }
     2166
     2167                .profile-fields {
     2168
     2169                    tr.alt {
     2170
     2171                        td {
     2172                            color: $body-text;
     2173                        }
     2174                    }
     2175
     2176                    tr:last-child {
     2177                        border-bottom: 0;
     2178                    }
     2179                }
     2180
    18412181            /* Edit profile */
    18422182
     
    18752215
    18762216                .field-visibility-settings-toggle,
     2217                .field-visibility-settings-notoggle,
    18772218                .field-visibility-settings {
    18782219                    @include font-size(14);
     2220                    margin-top: $spacing-val-sm;
    18792221                }
    18802222
     
    18822224                .visibility-toggle-link {
    18832225                    background: $dark-background;
     2226                    @include border-radius(3px);
    18842227                    color: #fff;
    18852228                    padding: 0.2em 0.5em;
     
    19332276        #message-thread {
    19342277            //Single message view
     2278
    19352279            a {
    19362280                border-bottom: 0;
     
    19802324
    19812325            #send-reply {
     2326
    19822327                .message-content {
    19832328                    background: $content-background;
     
    19952340
    19962341            thead {
     2342
    19972343                tr {
    1998                     background: lighten($dark-background, 10%);
     2344                    background: none;
     2345                    border-bottom: 1px solid $border-color;
     2346
     2347
     2348                    th {
     2349                        background: #555;
     2350                    }
    19992351                }
    20002352            }
    20012353
    20022354            tr {
     2355                border-bottom: 5px solid $medium-grey;
     2356
    20032357                td {
    2004                     background: $content-background;
    20052358                    display: inline-block;
    20062359                    float: left;
     
    20092362                td.thread-star,
    20102363                td.thread-options {
    2011                     border-bottom-color: $medium-background;
    2012                     border-bottom-width: 2px;
     2364                    border-bottom-color: $border-color;
     2365                    border-bottom-width: 1px;
    20132366                    height: 2.4em;
    20142367                    padding-bottom: 0.2em;
     
    20182371                        padding-top: 0;
    20192372                    }
     2373                }
     2374
     2375                td.bulk-select-check,
     2376                td.thread-star,
     2377                td.thread-from,
     2378                td.thread-info,
     2379                td.thread-options {
     2380                    border-top: 0;
    20202381                }
    20212382
     
    20812442
    20822443            tr.unread {
     2444
    20832445                td {
    2084                     background: $unread;
     2446                    background: none;
    20852447                    border-color: $border-color;
    20862448                }
     
    21022464                border-right: 0;
    21032465                width: 30px;
    2104             }
    2105         }
    2106 
    2107         .messages-options-nav {
    2108             select {
    2109                 height: auto;
    21102466            }
    21112467        }
     
    22962652// Attempt to reset form control widths
    22972653#main {
     2654
    22982655    #buddypress {
     2656
    22992657        .standard-form {
    23002658
    2301             li {float: none;}
     2659            li {
     2660                float: none;
     2661            }
     2662
    23022663            input[type='text'],
    23032664            input[type='email'],
     
    23092670    }
    23102671}
    2311 
    23122672
    23132673#buddypress {
     
    23652725
    23662726#buddypress {
     2727
    23672728    div.dir-search,
    23682729    div.message-search,
     
    23762737        form { // *sigh* only to bludgeon over specified rules
    23772738            border: 1px solid rgba($border-color, 0.6);
     2739            @include border-radius(2px);
    23782740            overflow: hidden;
    23792741
     
    23812743                float: left;
    23822744                margin: 0;
    2383             }
    2384 
    2385             input[type='text'] {
     2745                width: 70%;
     2746            }
     2747
     2748            input[type="text"] {
    23862749                float: left;
    23872750                margin: 0;
    2388                 width: 70%;
    2389             }
    2390 
    2391             input[type='text'],
    2392             input[type='submit'] {
     2751                width: 100%;
     2752            }
     2753
     2754            input[type="text"],
     2755            input[type="submit"] {
     2756                border: 0;
    23932757                @include font-size(14);
    2394                 border: 0;
    23952758                line-height: inherit;
    23962759            }
    23972760
    2398             input[type='text'] {
     2761            input[type="text"] {
    23992762                border-right: 1px solid rgba($border-color, 0.6);
     2763                font-weight: 400;
    24002764                padding: 0.2em 0 0.2em 0.2em;
    24012765            }
    24022766
    2403             input[type='submit'] {
     2767            input[type="submit"] {
     2768                @include border-radius-none();
    24042769                float: right;
    24052770                font-weight: normal;
     
    24132778    } // close .dir-search, .message-search
    24142779
     2780    // Dirs & certain components hide search hides labels so can't width the label element
     2781    // adjust so that the input takes reduced width.
     2782
     2783    div.dir-search {
     2784        margin-top: 0;
     2785    }
     2786
     2787    .dir-search #search-members-form,
     2788    #search-groups-form,
     2789    #search-message-form {
     2790
     2791        input[type='text'] {
     2792            float: left;
     2793            margin: 0;
     2794            width: 70%;
     2795        }
     2796    }
     2797
    24152798    // Shift the search parent to the right and allow to shrinkwrap
    24162799
     
    24212804            float: right;
    24222805            margin-bottom: 5px !important;
    2423 
    2424             form {
    2425                 label,
    2426                 input[type='text'],
    2427                 input[type='submit'] {
    2428                     width: auto;
    2429                 }
    2430             }
    24312806        }
    24322807
     
    24372812
    24382813        .dir-search,
    2439 
    2440         .message-search {
     2814        .message-search,
     2815        li.groups-members-search {
    24412816
    24422817            form {
     
    24552830} // close #buddypress
    24562831
     2832// Adjustments for form elements colors, backgrounds, borders under the dark scheme.
     2833body.colors-dark {
     2834
     2835    #page { // for weight
     2836
     2837        #buddypress {
     2838
     2839            .dir-search,
     2840            .groups-members-search,
     2841            .message-search {
     2842
     2843                form {
     2844                    background: #333;
     2845                    border-color: #555;
     2846                    @include border-radius(2px);
     2847                    padding: 1px;
     2848                }
     2849
     2850                input[type="text"] {
     2851                    background: none;
     2852                }
     2853
     2854                input[type="submit"] {
     2855                    @include border-radius(2px);
     2856                }
     2857            }
     2858        }
     2859
     2860        .message-search {
     2861            margin-top: 0;
     2862        }
     2863    }
     2864}
    24572865/**
    24582866*-------------------------------------------------------------------------------
     
    24732881
    24742882        tr th {
    2475             background: lighten($dark-background, 10%);
    2476             border-color: darken($border-light, 20%);
    2477             color: $content-background;
     2883            background: $light-background;
     2884            border-color: $border-light;
     2885            color: $body-text;
    24782886        }
    24792887
     
    25372945
    25382946    } // .notifications, .message-notices
     2947
     2948    .notifications { // table element
     2949        .actions { // th element
     2950            text-align: center;
     2951        }
     2952    }
    25392953} // #buddypress
    25402954
     
    25742988    } // close #message
    25752989
     2990    .bp-avatar-status,
     2991    .bp-cover-image-status {
     2992
     2993        .warning {
     2994            background: #7dd4ff;
     2995            border: 1px solid #000;
     2996            color: $body-text;
     2997            @include font-size(16);
     2998        }
     2999    }
     3000
    25763001} // close  #buddypress
    25773002
Note: See TracChangeset for help on using the changeset viewer.