You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Stylecss.css 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. * {
  2. box-sizing: border-box;
  3. }
  4. body {
  5. font-family: Arial, Helvetica, sans-serif;
  6. margin: 0;
  7. }
  8. .header {
  9. padding: 80px;
  10. text-align: center;
  11. background: #1abc9c;
  12. color: antiquewhite;
  13. }
  14. /* Increase the font size of the heading */
  15. .header h1 {
  16. font-size: 40px;
  17. }
  18. /* Sticky navbar - toggles between relative and fixed, depending on the scroll position. It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position:fixed). The sticky value is not supported in IE or Edge 15 and earlier versions. However, for these versions the navbar will inherit default position */
  19. .navbar {
  20. overflow: hidden;
  21. background-color: burlywood;
  22. position: sticky;
  23. position: -webkit-sticky;
  24. top: 0;
  25. }
  26. /* Style the navigation bar links */
  27. .navbar a {
  28. float: left;
  29. display: block;
  30. color: white;
  31. text-align: center;
  32. padding: 14px 20px;
  33. text-decoration: none;
  34. }
  35. /* Right-aligned link */
  36. .navbar a.right {
  37. float: right;
  38. }
  39. /* Change color on hover */
  40. .navbar a:hover {
  41. background-color: #ddd;
  42. color: black;
  43. }
  44. /* Active/current link */
  45. .navbar a.active {
  46. background-color: #666;
  47. color: white;
  48. }
  49. /* Column container */
  50. .row {
  51. display: -ms-flexbox; /* IE10 */
  52. display: flex;
  53. -ms-flex-wrap: wrap; /* IE10 */
  54. flex-wrap: wrap;
  55. }
  56. /* Create two unequal columns that sits next to each other */
  57. /* Sidebar/left column */
  58. .side {
  59. -ms-flex: 30%;
  60. flex: 30%;
  61. background-color: #f1f1f1;
  62. padding: 20px;
  63. }
  64. /* Main column */
  65. .main {
  66. -ms-flex: 70%;
  67. flex: 70%;
  68. background-color: white;
  69. padding: 20px;
  70. text-align: center;
  71. }
  72. .liste {
  73. display: block;
  74. position: relative;
  75. padding-left: 35px;
  76. margin-bottom: 12px;
  77. cursor: pointer;
  78. font-size: 22px;
  79. -webkit-user-select: none;
  80. -moz-user-select: none;
  81. -ms-user-select: none;
  82. user-select: none;
  83. }
  84. /* Create a custom checkbox */
  85. .checkmark {
  86. position: center;
  87. top: 0;
  88. left: 0;
  89. height: 25px;
  90. width: 25px;
  91. background-color: #eee;
  92. }
  93. /* On mouse-over, add a grey background color */
  94. .liste:hover input ~ .checkmark {
  95. background-color: #ccc;
  96. }
  97. /* When the checkbox is checked, add a blue background */
  98. .liste input:checked ~ .checkmark {
  99. background-color: #2196F3;
  100. }
  101. /* Create the checkmark/indicator (hidden when not checked) */
  102. .checkmark:after {
  103. content: "";
  104. position: absolute;
  105. display: none;
  106. }
  107. /* Show the checkmark when checked */
  108. .liste input:checked ~ .checkmark:after {
  109. display: block;
  110. }
  111. /* Style the checkmark/indicator */
  112. .liste .checkmark:after {
  113. left: 9px;
  114. top: 5px;
  115. width: 5px;
  116. height: 10px;
  117. border: solid white;
  118. border-width: 0 3px 3px 0;
  119. -webkit-transform: rotate(45deg);
  120. -ms-transform: rotate(45deg);
  121. transform: rotate(45deg);
  122. }
  123. /* Fake image, just for this example */
  124. .fakeimg {
  125. background-color: #aaa;
  126. width: 100%;
  127. padding: 20px;
  128. }
  129. /* Footer */
  130. .footer {
  131. padding: 20px;
  132. text-align: center;
  133. background: #ddd;
  134. }
  135. /* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
  136. @media screen and (max-width: 700px) {
  137. .row {
  138. flex-direction: column;
  139. }
  140. }
  141. /* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
  142. @media screen and (max-width: 400px) {
  143. .navbar a {
  144. float: none;
  145. width: 100%;
  146. }
  147. }