Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/07/2016 08:33:28 PM (10 years ago)
Author:
hnla
Message:

Update Twentytwelve Companion styles.

Builds upon original commit to address specific style concerns, and thin out styling in keeping with 2012 design.

See #6766

File:
1 edited

Legend:

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

    r10404 r10443  
    291291                        color: #555;
    292292                    }
     293                    // Keep links from inheriting :visited states
     294                    &:visited {
     295                        color: #21759b;
     296                    }
    293297
    294298                    span {border-radius: 25%;}
    295299                }
     300
    296301            }
    297302        }
     
    438443        div#subnav.item-list-tabs {
    439444            li.last {
    440 //              float: right;
    441445                margin-left: 0;
    442446                text-align: right;
    443 //              width: 230px;
     447
    444448                @media screen and (max-width: 30em) {
    445449                    clear: left;
     
    638642#buddypress {
    639643    ul.item-list {
     644        border-top: 0;
     645
    640646        li {
    641647            overflow: hidden !important;
     
    692698
    693699                .item-title {
    694                     @include font-size(18);
     700                    @include font-size(16);
    695701                    line-height: 1.2;
    696702                    text-align: center;
     
    702708                    width: 100%;
    703709
    704                     > a {text-decoration: none;}
     710                    > a {
     711                        text-decoration: none;
     712
     713                        &:visited { color: #21759b;}
     714                    }
    705715
    706716                    .update {
     
    715725                        text-align: left;
    716726                    }
    717                 }
    718 
    719             }
     727                }  // close .item-title
     728
     729            } // close .item
    720730
    721731            @include medium-up {
     
    733743
    734744                    .item-title {
    735                         @include font-size(22)
     745                        @include font-size(18)
    736746                    }
    737747                }
     
    746756                margin-left: 0;
    747757                padding: $spacing-val-md 0 $spacing-val-xs;
     758
    748759                // push the actions to the right
    749 
    750760                @include medium-up {
    751761                    clear: none;
     
    841851                        margin: 0;
    842852                        min-height: 1.5em;
    843                         padding-left: 0.4em;
     853                        padding: 0 0 0 0.4em;
    844854                    }
    845855                }
     
    852862                    #whats-new-submit {
    853863                        float: right;
     864
     865                        input {
     866                            padding: 0;
     867                        }
    854868                    }
    855869                }
     
    908922            .activity-header {
    909923                @include font-size(14);
     924
     925                a:visited {
     926                    color: #21759b;
     927                }
    910928            }
    911929
     
    916934                    margin-right: $spacing-val-sm;
    917935                    text-align: left;
    918                     a {border-bottom: 0;}
     936
     937                    a {
     938                        border-bottom: 0;
     939                    }
    919940                }
    920941
     
    955976                    a {
    956977                        @include font-size(12);
    957                         padding: 2px 4px;
    958978                    }
    959979                }
     
    10041024                background: darken($light-background, 1%);
    10051025                border: 1px solid rgba(#9fd1e2, 0.3);
    1006                 a { font-style: italic; }
    10071026            }
    10081027
     
    10581077            > ul {
    10591078                background: rgba($light-background, 0.6);
    1060                 border-left: 1px solid $border-light;
    1061                 margin: 2em 0 0 2px;
     1079                margin: $spacing-val-sm 0 0 2px;
    10621080
    10631081                > li {
     
    10661084                        color: #555;
    10671085                    }
     1086
     1087                    .acomment-meta,
     1088                    .acomment-content {
     1089                        @include font-size(12);
     1090                    }
     1091
    10681092                }
    10691093
     
    11931217*/
    11941218
     1219.bp-user {
     1220    #buddypress {
     1221    // On object nav links, table links (notifications etc) we don't really need :visited
     1222    // inheritance, so set pseudo class to :link color.
     1223        a {
     1224            &:visited {
     1225                color: #21759b;
     1226            }
     1227        }
     1228    }
     1229}
    11951230
    11961231/**
     
    12131248    }
    12141249
     1250    @media screen and (max-width: 37.500em) {
     1251        h1,
     1252        #item-header-content {
     1253            text-align: center;
     1254        }
     1255    }
     1256
    12151257    @media screen and (max-width: 46.25em) {
    12161258        main {
     
    12211263    }
    12221264
    1223     @media screen and (max-width: 37.500em) {
    1224         h1,
    1225         #item-header-content {
    1226             text-align: center;
    1227         }
    1228     }
    1229 
    12301265    #buddypress {
     1266        @media screen and (max-width: 37.500em) {
     1267            h1 {
     1268                margin-bottom: 0;
     1269            }
     1270
     1271            #item-header-avatar {
     1272                img.avatar {
     1273                    margin-right: 0;
     1274                }
     1275            }
     1276
     1277            #item-header-content {
     1278                width: 100%;
     1279            }
     1280        } // close @media
     1281
    12311282        @media screen and (max-width: 46.25em) {
    12321283            #item-header {
     
    12371288            }
    12381289        }
    1239 
    1240         @media screen and (max-width: 37.500em) {
    1241             h1 {
    1242                 margin-bottom: 0;
    1243             }
    1244 
    1245             #item-header-avatar {
    1246                 img.avatar {
    1247                     margin-right: 0;
    1248                 }
    1249             }
    1250 
    1251             #item-header-content {
    1252                 width: 100%;
    1253             }
    1254         }
    1255     }
     1290    } // close #buddypress
     1291
    12561292}
    12571293
     
    13391375                    padding: 0.2em;
    13401376                }
     1377
     1378                #group-admins,
     1379                #group-mods {
     1380                    li {
     1381                        margin: 0;
     1382                    }
     1383                }
     1384
    13411385            } // close item-actions
    13421386
     
    13661410        } // close #item-header
    13671411    } // close #buddypress
    1368 } // close .groups
     1412
     1413    // These rules handle the specific instance of Cover Images on single groups
     1414    // activated & attempt to address positioning concerns arising from themes
     1415    // breakpoints.
     1416    // Due to cover image styles being applied via embedded styles & thus carrying
     1417    // heavier weight than linked styles the use !important to override may be required.
     1418    #buddypress {
     1419        #cover-image-container {
     1420            #item-header-cover-image {
     1421                @media screen and (max-width: 64em) {
     1422                    #item-actions {
     1423                        border: 0;
     1424                        clear: both;
     1425                        margin-top: 0 !important;
     1426                        max-width: 100% !important;
     1427                        padding-top: 0 !important;
     1428                        width: auto;
     1429
     1430                        h3 {border-bottom: 1px solid $border-light;}
     1431                    }
     1432                }
     1433            }
     1434        }
     1435    }
     1436
     1437} // close .single-item.groups
    13691438
    13701439/**
     
    16141683            width: 100%;
    16151684            @media screen and (min-width: 37.500em) {
    1616                 width: 50%;
     1685                width: 40%;
    16171686            }
    16181687
     
    16271696                float: left;
    16281697                margin-right: 0;
    1629                 width: 60%;
     1698                width: 49%;
     1699
     1700                @media screen and (min-width: 37.500em) {
     1701                    width: auto;
     1702                }
    16301703            }
    16311704
    16321705            input {
    1633                 float: right;
     1706                float: left;
    16341707                font-family: inherit;
    16351708                line-height: 20px;
    16361709                margin-left: 1%;
    1637                 width: 39%;
     1710                width: 50%;
     1711
     1712                @media screen and (min-width: 37.500em) {
     1713                    width: auto;
     1714                }
    16381715
    16391716                &[disabled="disabled"]:focus,
     
    17041781                } //.button-nav
    17051782
     1783                .field-visibility-settings-toggle {
     1784                    margin: $spacing-val-xs 0 $spacing-val-md;
     1785                }
     1786
    17061787                .field-visibility-settings-toggle,
    17071788                .field-visibility-settings {
     
    17111792                .field-visibility-settings-close,
    17121793                .visibility-toggle-link {
    1713                     background: $dark-background;
    1714                     color: #fff;
    1715                     padding: 0.2em 0.5em;
     1794                    background: lighten($dark-background, 10%);
     1795                    @include border-radius(2px);
     1796                    color: #eee;
     1797                    font-weight: bold;
     1798                    padding: 0.1em 0.5em;
     1799                    text-decoration: none;
     1800
     1801                    &:focus,
     1802                    &:hover {
     1803                        color: #fff;
     1804                    }
    17161805                }
    17171806            } // close profile form
     
    19192008            tr.unread {
    19202009                td {
    1921                     background: rgba($unread, 0.4);
    1922                     border-color: $border-color;
     2010                    border-color: $border-light;
    19232011                }
    19242012            }
     
    21062194#buddypress {
    21072195
    2108 // Match BP form elements to Themes(2016) styling where styles
     2196// Match BP form elements to Themes(2012) styling where styles
    21092197// are not inherited or being overriden.
    21102198    div.activity-comments {
     
    21562244
    21572245        // Stylise the seach form elements, in part this deals with padding
    2158         // issues on the submit & sizing issues between bp styles & 2016
     2246        // issues on the submit & sizing issues between bp styles & 2012
    21592247
    21602248        form { // *sigh* only to bludgeon over specified rules
     
    21652253                float: left;
    21662254                width: 70%;
    2167             }
    2168 
    2169             input[type='text'] {
    2170                 float: left;
    2171                 margin: 0;
    2172                 width: 100%;
    21732255            }
    21742256
     
    21772259                @include font-size(14);
    21782260                border: 0;
    2179                 line-height: inherit;
     2261                border-radius: 0;
     2262                line-height: 1.8;
     2263                min-height: 2rem;
    21802264            }
    21812265
    21822266            input[type='text'] {
    21832267                border-right: 1px solid rgba($border-color, 0.6);
    2184                 padding: 0.2em 0 0.2em 0.2em;
     2268                float: left;
     2269                margin: 0;
     2270                padding: 0 0.2em 0;
     2271                width: 100%;
    21852272            }
    21862273
     
    21882275                float: right;
    21892276                font-weight: normal;
    2190                 padding: 0.2em 1em;
     2277                padding: 0 1em;
    21912278                text-align: center;
    21922279                text-transform: none;
Note: See TracChangeset for help on using the changeset viewer.