Advertisement
Nowwhat47

style.css - intire file

Jan 21st, 2015
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.92 KB | None | 0 0
  1. .button {
  2.     font-size: 20px;
  3.     line-height: normal;
  4.     font-family: "Comic Sans MS";
  5.     color: White;
  6.     background-color: #999999;
  7.     font-weight: bold;
  8.     }
  9. .Warning
  10.     {
  11.     color: Red;
  12.     }
  13.    
  14. p   {
  15.     font-family: "Comic Sans MS";
  16.     color: Black;
  17.     }
  18.    
  19. @media (max-width: 640px) {
  20.     * {
  21.         -webkit-box-sizing: border-box;
  22.            -moz-box-sizing: border-box;
  23.                 box-sizing: border-box;
  24.     }
  25.    
  26.     /* passer body (et tous les éléments de largeur fixe) en largeur automatique */
  27.  
  28.     body {
  29.         width: auto;
  30.         margin: 0;
  31.         padding: 0;
  32.     }
  33.    
  34.     /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */
  35.  
  36.     a,
  37.     img,
  38.     table,
  39.     td,
  40.     blockquote,
  41.     code,
  42.     pre,
  43.     textarea,
  44.     input,
  45.     iframe,
  46.     object,
  47.     embed,
  48.     video {
  49.         max-width: 100%;
  50.     }
  51.    
  52.     /* conserver le ratio des images */
  53.  
  54.     img {
  55.         height: auto;
  56.     }
  57.    
  58.     /* gestion des mots longs */
  59.  
  60.     textarea,
  61.     table,
  62.     td,
  63.     th,
  64.     code,
  65.     pre,
  66.     samp {
  67.         -webkit-hyphens: auto; /* césure propre */
  68.         -moz-hyphens: auto;
  69.         hyphens: auto;
  70.         word-wrap: break-word; /* passage à la ligne forcé */
  71.     }
  72.    
  73.     code,
  74.     pre,
  75.     samp {
  76.         white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
  77.     }
  78.    
  79.     /* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */
  80.  
  81.     element1,
  82.     element2 {
  83.         float: none;
  84.         width: auto;
  85.     }
  86.    
  87.     /* masquer les éléments superflus */
  88.  
  89.     .hide_mobile {
  90.         display: none !important;
  91.     }
  92.    
  93.     /* Un message personnalisé */
  94.  
  95.     body:before {
  96.         content: "Version mobile du portail";
  97.         display: block;
  98.         text-align: center;
  99.         font-style: italic;
  100.         color: #777;
  101.         background-color: #EFEFEF;
  102.     }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement