style.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. padding: 0;
  32. min-width: 15em;
  33. max-width: 800px;
  34. }
  35. .container {
  36. display: flex;
  37. flex-wrap: row wrap;
  38. }
  39. .column {
  40. flex: 1;
  41. background: #f2f2f2;
  42. box-sizing: border-box;
  43. }
  44. .column-one {
  45. order: 1;
  46. }
  47. .column-two {
  48. order: 2;
  49. }
  50. .column-three {
  51. order: 3;
  52. }
  53. @media (max-width: 50em) { /* 2 x 15em (.text & .images) + 2em (left & right margin of the body element) + 1em (.text margin-right) */
  54. .container {flex-wrap: wrap}
  55. }
  56. .red{
  57. /*padding: 10;*/
  58. background: red;
  59. opacity: 0.4;
  60. position: absolute;
  61. left: 0px;
  62. top: 0px;
  63. }
  64. .green{
  65. background: red;
  66. opacity: 0.2;
  67. width: 20;
  68. height: 20px;
  69. position: absolute;
  70. left: 0px;
  71. top: 0px;
  72. }
  73. .frame {
  74. flex: 1 1 auto;
  75. border: 0;
  76. height: 50%;
  77. width: 100%;
  78. }