Dotclear


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

Add badge capabilities (used mainly by dashboard modules)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r3868 r3869  
    32113211  border: 1px solid #c9c9c9; } 
    32123212 
    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 */ 
     3213/* Badges (common.js) */ 
    32263214.badgeable { 
    32273215  /* class to set to badge parent's, not mandatory for menu items */ 
     
    32363224  padding: 0 .6em; } 
    32373225 
     3226.badge-icon { 
     3227  background-color: #708090; } 
     3228 
     3229/* Badge background override */ 
     3230.badge-std { 
     3231  background-color: #d54e21; } 
     3232 
    32383233.badge-info { 
    32393234  background-color: #3f51b5; } 
    32403235 
    3241 .badge-icon { 
    3242   border-radius: 5px; } 
    3243  
    3244 .badge-block-icon { 
     3236.badge-soft { 
    32453237  background-color: #708090; } 
    32463238 
    32473239/* Badge position */ 
    3248 .badge-icon { 
    3249   /* Dashboard icon → badge on top rigt */ 
    3250   position: absolute; 
    3251   top: 0; 
    3252   right: 20px; } 
    3253  
    32543240.badge-block { 
    3255   /* Dashboard module → badge on top left */ 
     3241  /* Dashboard module → badge on top right */ 
    32563242  position: absolute; 
    32573243  top: -10px; 
    32583244  right: -10px; } 
    32593245 
    3260 .badge-block-icon { 
    3261   /* Dashboard icon/module → badge on top rigt */ 
     3246.badge-icon { 
     3247  /* Dashboard icon → badge on top right */ 
    32623248  right: 20px; } 
    32633249 
Note: See TracChangeset for help on using the changeset viewer.

Sites map