style.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. body {
  2. background-color: #f2f2f2;
  3. }
  4. /* If you want the content centered horizontally and vertically */
  5. /*.centered {
  6. position: absolute;
  7. top: 50%;
  8. left: 40%;
  9. transform: translate(-50%, -50%);
  10. text-align: center;
  11. margin: 10;
  12. }
  13. .header_centered {
  14. position: absolute;
  15. top: 8%;
  16. left: 50%;
  17. transform: translate(-50%, -50%);
  18. text-align: center;
  19. margin: 10;
  20. }
  21. .thick-border {
  22. border: 3px solid black;
  23. border-collapse: collapse;
  24. }*/
  25. /* Style the image inside the centered container, if needed */
  26. img {
  27. max-width: 100%;
  28. }
  29. .images{
  30. flex: 1 1 auto;
  31. min-width: 15em;
  32. max-width: 800px;
  33. }
  34. .container {
  35. display: flex;
  36. flex-wrap: row wrap;
  37. }
  38. .column {
  39. flex: 1;
  40. background: #f2f2f2;
  41. box-sizing: border-box;
  42. }
  43. .column-one {
  44. order: 1;
  45. }
  46. .column-two {
  47. order: 2;
  48. }
  49. .column-three {
  50. order: 3;
  51. }
  52. @media (max-width: 50em) { /* 2 x 15em (.text & .images) + 2em (left & right margin of the body element) + 1em (.text margin-right) */
  53. .container {flex-wrap: wrap}
  54. }
  55. .red{
  56. background: red;
  57. opacity: 0.4;
  58. width: 20px;
  59. height: 20px;
  60. position: absolute;
  61. left: 0px;
  62. top: 0px;
  63. }
  64. .frame {
  65. flex: 1 1 auto;
  66. border: 0;
  67. height: 50%;
  68. width: 100%;
  69. }