Changeset 47865 in spip-zone


Ignore:
Timestamp:
May 17, 2011, 1:38:07 PM (10 years ago)
Author:
cedric@…
Message:

Calcul des h1,h2,h3,h4 qui respecte la grille tout en assurant une echelle raisonnable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/basecss/css/typo.css.html

    r47754 r47865  
    3838h6 { font-size: 1em; font-weight: bold; }*/
    3939
    40 h1,.h1 {[ font-size: (#GET{line-height}|mult{2})em;] line-height: 1; margin-bottom: 0.5em; }
    41 h2,.h2 {[ font-size: (#GET{line-height}|mult{1.5})em;][ line-height: (#GET{line-height}|mult{.75})em;][ margin-bottom: (#GET{line-height}|mult{.5})em;] }
    42 h3,.h3 {[ font-size: (#GET{line-height})em;] line-height: 1; margin-bottom: 1em; }
    43 h4,.h4 {[ font-size: (#GET{line-height}|mult{.75})em;][ line-height: (#GET{line-height}|mult{.75})em;][ margin-bottom: (#GET{line-height})em;] }
     40h1,.h1 {font-size: 2em; line-height:#GET{line-height};margin-bottom: [(#GET{margin-bottom}|div{2})em]; }
     41#SET{coeff,#GET{line-height}|plus{2}|div{2}|div{#GET{line-height}}}
     42#SET{coeffinv,#VAL{1}|div{#GET{coeff}}}
     43h2,.h2 {[ font-size: (#GET{line-height}|mult{#GET{coeff}})em];[ line-height: (#GET{coeffinv}|mult{2})em];[ margin-bottom: (#GET{coeffinv})em;]}
     44h3,.h3 {[ font-size: (#GET{line-height}|mult{1})em]; line-height: 1; margin-bottom: 1em; font-weight: bold;}
     45#SET{coeff,#GET{line-height}|plus{1}|div{2}|div{#GET{line-height}}}
     46#SET{coeffinv,#VAL{1}|div{#GET{coeff}}}
     47h4,.h4 {[ font-size: (#GET{line-height}|mult{#GET{coeff}})em];[ line-height: (#GET{coeffinv})em];[ margin-bottom: (#GET{coeffinv})em;]font-weight: bold; }
    4448h5,.h5 { font-size: 1em; font-weight: bold; margin-bottom: #GET{margin-bottom}; }
    4549h6,.h6 { font-size: 1em; font-weight: bold; }
Note: See TracChangeset for help on using the changeset viewer.