Changeset 113139 in spip-zone


Ignore:
Timestamp:
Dec 28, 2018, 5:12:04 PM (3 weeks ago)
Author:
real3t@…
Message:

Enfin trouvé d'où venait les espaces autour du menu (https://www.smashingmagazine.com/2018/12/common-css-issues-front-end-projects/ : 13. The Weird Space When Using display: inline-block)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/stylessoyezcreateurs.css.html

    r113104 r113139  
    962962        [(#GET{c_menuhaut_bk}|!={transparent}|oui|et{[(#GET{d_menuhaut_degrade}|non)]})
    963963        padding-top: 8px; padding-left: 8px; background: #GET{c_menuhaut_bk}[ url((#CHEMIN{images/fond_degrade_fonce_en_bas_menu.png}|image_sepia{[(#GET{c_menuhaut_bk})]}|image_aplatir{jpg}|extraire_attribut{src}|embarque_fichier)) repeat-x bottom];]
    964         font-size: #CONFIG{soyezcreateurs_couleurs/fontsizemenuhaut,1.2}em;
     964        font-size: 0;
    965965}
    966966
     
    972972#menuhaut ul { text-align: center; }
    973973#menuhaut ul ul { text-align: left; padding-left: 0;}
    974 #menuh > li a {background: #GET{c_menu_a_bk}; color:#GET{c_menu_a}; }
     974#menuh > li a {background: #GET{c_menu_a_bk}; color:#GET{c_menu_a}; display: block; line-height: 1em; }
    975975#menuh strong a, #menuh ul strong a {background: #GET{c_menu_a_strong_bk};color: #GET{c_menu_a_strong}; text-shadow:none;}
    976 #menuh ul a {background:#GET{c_menu_a_bk};color:#GET{c_menu_a};font-size:1.2em; text-transform:none}
     976#menuh ul a {background:#GET{c_menu_a_bk};color:#GET{c_menu_a};font-size:1.2em; text-transform:none; }
    977977.arrows-sprite, #menuh.drop .sf-sub-indicator, #menuh.drop ul li > a .sf-sub-indicator, #menuh.drop li.hover > a .sf-sub-indicator, #menuh.drop ul li.hover > a .sf-sub-indicator { background: url([(#CHEMIN{images/arrows_menuh.png}|embarque_fichier)]) no-repeat; }
    978978#menuh, #menuh ul { list-style: none; margin: 0; position: relative; }
    979 #menuh li { position: relative; margin-top: 1%; }
     979#menuh li { position: relative; }
    980980#menuh li li { margin-top: auto; }
    981981#menuh li li:first-child { border-top: 1px #GET{c_menu_a_hover_bk} solid; }
     
    983983#menuh li li li a { padding-left: 24px; }
    984984#menuh li li li li a { padding-left: 32px; }
    985 #menuh > li { display:inline-block;line-height: 1.7em; margin-right:0.4em; position:relative; vertical-align:middle; }
     985#menuh > li { display:inline-block; position:relative; vertical-align:middle; font-size: #CONFIG{soyezcreateurs_couleurs/fontsizemenuhaut,1.2}em; line-height: 1em; }
     986#menuh > li:not(:last-child) {  margin-right:0.4em; }
    986987#menuh > li:first-child { margin-left: 0; }
    987988#menuh > li > a { background: #GET{c_menu_a_bk}; color: #GET{c_menu_a}; font-weight: bold; }
     
    10171018  ]
    10181019  #menuhaut ul { text-align: left; }
    1019   #menuh > li { display: block; float: none; margin-top: 0.4em; margin-left: 0; }
     1020  #menuh > li { display: block; float: none; margin-left: 0; }
    10201021  #menuh.drop { padding: 1%; }
    10211022  #menuh.drop ul { width: auto !important; position: relative; margin-top: 0; }
     
    24252426  display: inline-block;
    24262427  text-align: center;
    2427   padding: .5rem 0 .2em 0;
    24282428}
    24292429
    24302430.portailcognac #menuhaut #menuh a {
    24312431  background-color: #GET{c_menuhaut_bk};
    2432   padding: 0 2rem .35rem;
     2432  padding: calc(.35rem + 3px) 2rem .35rem;
    24332433  font-size: 27px;
    24342434  color: #GET{c_menuhaut};
     
    24552455  box-shadow: -4px 4px 4px rgba(170, 170, 170, 0.3);
    24562456}
    2457 .portailcognac #menuhaut #menuh > li:not(:first-child) {
     2457.portailcognac #menuhaut #menuh > li:not(:nth-child(2)) {
    24582458  border-left: 1px solid #222;
    24592459}
Note: See TracChangeset for help on using the changeset viewer.