style_2.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @font-face
  2. {
  3. font-family: 'figli-ouidade';
  4. src: url('polices/figli-ouidade-webfont.eot');
  5. src: url('polices/figli-ouidade-webfont.eot') format('embedded-opentype'),
  6. url('polices/figli-ouidade-webfont.woff') format('woff'),
  7. url('polices/figli-ouidade-webfont.ttf') format('truetype'),
  8. url('polices/figli-ouidade-webfont.svg') format('svg');
  9. font-weight: normal;
  10. font-style: normal;
  11. }
  12. @font-face
  13. {
  14. font-family: 'droidsans';
  15. src: url('polices/droidsans-webfont.eot');
  16. src: url('polices/droidsans-webfont.eot') format('embedded-opentype'),
  17. url('polices/droidsans-webfont.woff') format('woff'),
  18. url('polices/droidsans-webfont.ttf') format('truetype'),
  19. url('polices/droidsans-webfont.svg') format('svg');
  20. font-weight: normal;
  21. font-style: normal;
  22. }
  23. body {
  24. display: flex;
  25. flex-direction: column;
  26. width: 80%;
  27. position: absolute;
  28. right: 0;
  29. background-image: url(images/fond.png);
  30. box-sizing: border-box;
  31. }
  32. header p {
  33. font-size: 0.8em;
  34. }
  35. header img {
  36. top: ;
  37. right:;
  38. margin: 20px;
  39. }
  40. header {
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: center;
  44. font-family: figli-ouidade, sans-serif;
  45. margin-left: 50px;
  46. margin: 20px;
  47. margin-top: 40px;
  48. border-bottom: #e30613 solid 3px;
  49. padding-bottom: 20px;
  50. text-align: center;
  51. }
  52. header div {
  53. }
  54. h2 {
  55. color: #5b2d87;
  56. }
  57. .bonjour {
  58. display: flex;
  59. font-family: droidsans, sans-serif;
  60. position: relative;
  61. width: 18%;
  62. height: 100%;
  63. background-color: #5b2d87;
  64. border-radius: 20px;
  65. position: fixed;
  66. top: 0;
  67. left: 0;
  68. font-family: figli-ouidade;
  69. font-size: 8vw;
  70. writing-mode: vertical-lr;
  71. }
  72. /* exemple trouvé sur web pour font scaling based on container's width:
  73. div {
  74. width: 50%;
  75. border: 1px solid black;
  76. margin: 20px;
  77. font-size: 16px;
  78. /* 100 = viewport width, as 1vw = 1/100th of that
  79. So if the container is 50% of viewport (as here)
  80. then factor that into how you want it to size.
  81. Let's say you like 5vw if it were the whole width,
  82. then for this container, size it at 2.5vw (5 * .5 [i.e. 50%])
  83. font-size: 2.5vw;
  84. }
  85. */
  86. .bonjour p {
  87. position: relative;
  88. margin: auto;
  89. /* transform: rotateX(90deg); */
  90. }
  91. .contenu {
  92. display: flex;
  93. flex-direction: row;
  94. justify-content: space-between;
  95. margin-left: 50px;
  96. margin-top: 40px;
  97. padding: 40px;
  98. font-family: droidsans;
  99. box-shadow: 4px 4px 4px;
  100. }
  101. /*
  102. .contenu div {
  103. padding: 10px;
  104. flex-grow: 1;
  105. flex-shrink: 1;
  106. flex-basis: 0;
  107. }
  108. */
  109. .contenu section {
  110. flex: 1;
  111. padding: 20px;
  112. }
  113. section ul {
  114. list-style-image: url(images/O_signature_puce.png) ;
  115. }
  116. footer {
  117. margin: 40px;
  118. padding: 40px;
  119. }
  120. .contact {
  121. text-align: center;
  122. }