Dotclear

Changeset 3868:dae3038ae341 for admin


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

Location:
admin/style
Files:
5 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 
  • admin/style/default.css

    r3858 r3868  
    224224  Colors 
    225225--------------------------------------------------- */ 
     226/* bright red */ 
     227/* slategray */ 
     228/* soft dark blue */ 
    226229/** -------------------------------------------------- 
    227230    Common rules 
     
    32083211  border: 1px solid #c9c9c9; } 
    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 
  • admin/style/scss/partials/_utils.scss

    r3839 r3868  
    2121     border: 1px solid $color-div-border; 
    2222} 
     23 
     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*/ 
     37 
     38.badgeable { 
     39  /* class to set to badge parent's, not mandatory for menu items */ 
     40  position: relative; 
     41} 
     42 
     43/* Badge design */ 
     44.badge { 
     45  color: $badge-color; 
     46  background-color: $badge-std-background; 
     47  vertical-align: top; 
     48  border-radius: 10px; 
     49  padding: 0 .6em; 
     50} 
     51.badge-info { 
     52  background-color: $badge-info-background 
     53} 
     54.badge-icon { 
     55  border-radius: 5px; 
     56} 
     57.badge-block-icon { 
     58  background-color: $badge-soft-background 
     59} 
     60 
     61/* Badge position */ 
     62.badge-icon { 
     63  /* Dashboard icon → badge on top rigt */ 
     64  position: absolute; 
     65  top: 0; 
     66  right: 20px; 
     67} 
     68.badge-block { 
     69  /* Dashboard module → badge on top left */ 
     70  position: absolute; 
     71  top: -10px; 
     72  right: -10px; 
     73} 
     74.badge-block-icon { 
     75  /* Dashboard icon/module → badge on top rigt */ 
     76  right: 20px; 
     77} 
     78.badge-inline { 
     79  /* Menu item */ 
     80  margin-left: .5em; 
     81} 
  • admin/style/scss/themes/_dark.scss

    r3811 r3868  
    6868$add:             #bee74b; 
    6969$add-alt:         #9bca1c; 
     70 
     71$badge:           #d54e21;  /* bright red */ 
     72$badge-soft:      #708090;  /* slategray */ 
     73$badge-info:      #3f51b5;  /* soft dark blue */ 
    7074 
    7175// Common 
     
    432436$color-div-border:                $gray-light; 
    433437 
     438$badge-color:                     $white;                             // #ffffff 
     439$badge-std-background:            $badge;                             // #d54e21 
     440$badge-soft-background:           $badge-soft; 
     441$badge-info-background:           $badge-info; 
     442 
    434443// Debug 
    435444 
  • admin/style/scss/themes/_light.scss

    r3811 r3868  
    1515 
    1616$gray-very-dark:    shade($gray, 72%);  // #323232 (near to #333 used before) 
     17$gray-darker:       shade($gray, 50%);  // #595b5d 
    1718$gray-semi-dark:    shade($gray, 25%);  // #868686 (near to #999 used before) 
    1819$gray-light:        tint($gray, 30%);   // #c9c9c9 (near to #ccc used before) 
     
    6768$add:             #bee74b; 
    6869$add-alt:         #9bca1c; 
     70 
     71$badge:           #d54e21;  /* bright red */ 
     72$badge-soft:      #708090;  /* slategray */ 
     73$badge-info:      #3f51b5;  /* soft dark blue */ 
    6974 
    7075// Common 
     
    431436$color-div-border:                $gray-light;                        // #c9c9c9 
    432437 
     438$badge-color:                     $white;                             // #ffffff 
     439$badge-std-background:            $badge;                             // #d54e21 
     440$badge-soft-background:           $badge-soft; 
     441$badge-info-background:           $badge-info; 
     442 
    433443// Debug 
    434444 
Note: See TracChangeset for help on using the changeset viewer.

Sites map