Dotclear


Ignore:
Timestamp:
09/08/18 11:11:21 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add badge styles to standard CSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default-dark.css

    r3858 r3868  
    224224  Colors 
    225225--------------------------------------------------- */ 
     226/* bright red */ 
     227/* slategray */ 
     228/* soft dark blue */ 
    226229/** -------------------------------------------------- 
    227230    Common rules 
     
    32083211  border: 1px solid #c9cbcf; } 
    32093212 
     3213/* Badges */ 
     3214/* 
     3215   Set .badgeable to badge parent's (not mandatory for menu items), then use: 
     3216      .badge (standard badge) 
     3217    which must be combined with : 
     3218      .badge-icon (dashboard icon) → top right, or 
     3219      .badge-block (dashboard module) → top left, or 
     3220      .badge-inline (menu item) → right centered 
     3221    and may be combined with : 
     3222      .badge-info → blue background 
     3223    and may be combined with (only in dashboard, not in menu) : 
     3224      .badge-block-icon (dashboard icon or module) → soft badge on top right 
     3225*/ 
     3226.badgeable { 
     3227  /* class to set to badge parent's, not mandatory for menu items */ 
     3228  position: relative; } 
     3229 
     3230/* Badge design */ 
     3231.badge { 
     3232  color: #fff; 
     3233  background-color: #d54e21; 
     3234  vertical-align: top; 
     3235  border-radius: 10px; 
     3236  padding: 0 .6em; } 
     3237 
     3238.badge-info { 
     3239  background-color: #3f51b5; } 
     3240 
     3241.badge-icon { 
     3242  border-radius: 5px; } 
     3243 
     3244.badge-block-icon { 
     3245  background-color: #708090; } 
     3246 
     3247/* Badge position */ 
     3248.badge-icon { 
     3249  /* Dashboard icon → badge on top rigt */ 
     3250  position: absolute; 
     3251  top: 0; 
     3252  right: 20px; } 
     3253 
     3254.badge-block { 
     3255  /* Dashboard module → badge on top left */ 
     3256  position: absolute; 
     3257  top: -10px; 
     3258  right: -10px; } 
     3259 
     3260.badge-block-icon { 
     3261  /* Dashboard icon/module → badge on top rigt */ 
     3262  right: 20px; } 
     3263 
     3264.badge-inline { 
     3265  /* Menu item */ 
     3266  margin-left: .5em; } 
     3267 
    32103268/* ------------------------------------------------------------------------------------ 
    32113269                                                                           UN POIL DE MEDIA QUERIES 
Note: See TracChangeset for help on using the changeset viewer.

Sites map