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)

Location:
admin/style
Files:
3 edited

Legend:

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

    r3868 r3869  
    32113211  border: 1px solid #c9cbcf; } 
    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 { 
    3245   background-color: #708090; } 
     3236.badge-soft { 
     3237  background-color: #708090; 
     3238  } 
    32463239 
    32473240/* Badge position */ 
    3248 .badge-icon { 
    3249   /* Dashboard icon → badge on top rigt */ 
    3250   position: absolute; 
    3251   top: 0; 
    3252   right: 20px; } 
    3253  
    32543241.badge-block { 
    3255   /* Dashboard module → badge on top left */ 
     3242  /* Dashboard module → badge on top right */ 
    32563243  position: absolute; 
    32573244  top: -10px; 
    32583245  right: -10px; } 
    32593246 
    3260 .badge-block-icon { 
    3261   /* Dashboard icon/module → badge on top rigt */ 
     3247.badge-icon { 
     3248  /* Dashboard icon → badge on top right */ 
    32623249  right: 20px; } 
    32633250 
  • 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 
  • admin/style/scss/partials/_utils.scss

    r3868 r3869  
    2222} 
    2323 
    24 /* Badges */ 
    25 /* 
    26    Set .badgeable to badge parent's (not mandatory for menu items), then use: 
    27       .badge (standard badge) 
    28     which must be combined with : 
    29       .badge-icon (dashboard icon) → top right, or 
    30       .badge-block (dashboard module) → top left, or 
    31       .badge-inline (menu item) → right centered 
    32     and may be combined with : 
    33       .badge-info → blue background 
    34     and may be combined with (only in dashboard, not in menu) : 
    35       .badge-block-icon (dashboard icon or module) → soft badge on top right 
    36 */ 
     24/* Badges (common.js) */ 
    3725 
    3826.badgeable { 
     
    4937  padding: 0 .6em; 
    5038} 
     39.badge-icon { 
     40  background-color: $badge-soft-background; 
     41} 
     42 
     43/* Badge background override */ 
     44.badge-std { 
     45  background-color: $badge-std-background; 
     46} 
    5147.badge-info { 
    52   background-color: $badge-info-background 
     48  background-color: $badge-info-background; 
    5349} 
    54 .badge-icon { 
    55   border-radius: 5px; 
    56 } 
    57 .badge-block-icon { 
    58   background-color: $badge-soft-background 
     50.badge-soft { 
     51  background-color: $badge-soft-background; 
    5952} 
    6053 
    6154/* Badge position */ 
    62 .badge-icon { 
    63   /* Dashboard icon → badge on top rigt */ 
    64   position: absolute; 
    65   top: 0; 
    66   right: 20px; 
    67 } 
    6855.badge-block { 
    69   /* Dashboard module → badge on top left */ 
     56  /* Dashboard module → badge on top right */ 
    7057  position: absolute; 
    7158  top: -10px; 
    7259  right: -10px; 
    7360} 
    74 .badge-block-icon { 
    75   /* Dashboard icon/module → badge on top rigt */ 
     61.badge-icon { 
     62  /* Dashboard icon → badge on top right */ 
    7663  right: 20px; 
    7764} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map