Skip to:
Content

bbPress.org

Changeset 6986


Ignore:
Timestamp:
11/22/2019 11:21:46 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat: more styling tweaks to default theme.

This commit adds more aggressive targeting to UL elements within the main bbpress-forums wrapper element, to ensure that themes choosing to also style unordered lists do not add margins & paddings to these default wrappers.

It also forces all default styling fonts to sans-serif, regardless of the parent theme. Serif fonts were never meant to be inherited, usually are difficult to read in small sizes, and many themes use broad styling for serifs that conflict with bbPress default styling elements.

Includes a few responsive improvements for smaller screens where author information gets displayed vertically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/css/bbpress.css

    r6964 r6986  
    4040}
    4141
     42/* Gently apply sans-serif styling by default */
     43#bbpress-forums a,
     44#bbpress-forums button,
     45#bbpress-forums p,
     46#bbpress-forums ul,
     47#bbpress-forums ol,
     48#bbpress-forums li,
     49#bbpress-forums div,
     50#bbpress-forums span,
     51#bbpress-forums input,
     52#bbpress-forums select,
     53#bbpress-forums textarea {
     54    font-family: sans-serif;
     55}
     56
    4257#bbpress-forums a,
    4358#bbpress-forums a:hover {
     
    4762}
    4863
     64/* Uses ID & class together for increased target strength */
     65#bbpress-forums.bbpress-wrapper ul {
     66    background: none;
     67    list-style: none;
     68    margin: 0;
     69    padding: 0;
     70}
     71
    4972#bbpress-forums hr {
    5073    margin: 0 0 24px;
     
    96119#bbpress-forums ul.status-closed a {
    97120    color: #ccc;
    98 }
    99 
    100 #bbpress-forums ul {
    101     background: none;
    102     list-style: none;
    103     margin: 0;
    104     padding: 0;
    105121}
    106122
     
    475491#bbpress-forums div.bbp-breadcrumb p,
    476492#bbpress-forums div.bbp-topic-tags p {
    477     margin-bottom: 10px;
     493    margin: 0 0 10px 0;
    478494}
    479495
     
    717733}
    718734
     735/* Some themes aggressively add padding to paragraph tags */
     736#bbpress-forums fieldset.bbp-form p {
     737    padding: 0;
     738}
     739
    719740#bbpress-forums fieldset.bbp-form p,
    720741#bbpress-forums fieldset.bbp-form textarea,
     
    722743#bbpress-forums fieldset.bbp-form input {
    723744    margin: 0 0 8px;
     745}
     746
     747/* Try to prevent untall selects & text boxes */
     748#bbpress-forums fieldset.bbp-form select,
     749#bbpress-forums fieldset.bbp-form input[type="text"] {
     750    min-height: 28px;
     751    height: 28px;
     752    padding: 5px;
    724753}
    725754
     
    13891418
    13901419    #bbpress-forums div.bbp-topic-tags {
    1391         clear: left;
    1392         float: left;
     1420        clear: both;
     1421        float: none;
    13931422    }
    13941423
     
    14171446
    14181447    span.bbp-admin-links {
    1419         clear: left;
    1420         float: left;
     1448        float: none;
     1449        clear: both;
    14211450    }
    14221451
     
    14371466        width: calc(100% - 100px);
    14381467        border-bottom: 1px solid #efefef;
     1468        box-sizing: content-box;
    14391469    }
    14401470
Note: See TracChangeset for help on using the changeset viewer.