structure.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*First, we start off with specifying what parts of the DOM we want hidden*/
  2. #leftbar, #rightbar, #footbar {
  3. display: table-cell;
  4. vertical-align:top;
  5. }
  6. /*Now, on to positioning of the elements*/
  7. body {
  8. position: relative;
  9. margin: 0;
  10. width: 100%;
  11. min-height: 100vh;
  12. max-height: 100%;
  13. }
  14. #topkek {
  15. display: flex;
  16. position: fixed;
  17. z-index: 2;
  18. top: 0;
  19. width: 100%;
  20. height: 2rem;
  21. }
  22. .toplel {
  23. display: table-cell;
  24. }
  25. #lefttitle {
  26. flex 1 0 33%;
  27. }
  28. #midtitle {
  29. flex-grow: 1;
  30. }
  31. #righttitle {
  32. flex 1 0 33%;
  33. }
  34. #righttitle a, #configbar a {
  35. display: inline-block;
  36. }
  37. #menubutton {
  38. display: none;
  39. min-width: 2%;
  40. max-width: 33%;
  41. padding-right: .5em;
  42. }
  43. #littlemenu {
  44. display: none;
  45. position: fixed;
  46. z-index: 3;
  47. top: 1.5em;
  48. right: 0px;
  49. padding: 0px .5em .5em .5em;
  50. }
  51. #littlemenu a {
  52. display: block;
  53. }
  54. #kontainer {
  55. display: table;
  56. width: 100%;
  57. padding-bottom: 2.5em;
  58. }
  59. .kontained {
  60. display: table-cell;
  61. }
  62. #leftbar {
  63. width: 6em;
  64. padding-right: .5em;
  65. padding-top: 1rem;
  66. }
  67. #kontent {
  68. padding: 3em .5em .5em .5em;
  69. min-height: 50%;
  70. max-width: 100%;
  71. margin-top: 0px;
  72. }
  73. #rightbar {
  74. width: 6em;
  75. padding-left: .5em;
  76. }
  77. #footbar {
  78. position: absolute;
  79. bottom: 0;
  80. width: 100%;
  81. height: 1.5em;
  82. }
  83. #stories {
  84. padding: 0px .5em .5em .5em;
  85. width: 80%;
  86. display: table-cell;
  87. }
  88. /*Some CSS rules below that I actually want to load on both print and screen views*/
  89. blockquote {
  90. font-style: italic;
  91. }
  92. .inline {
  93. display: inline;
  94. }
  95. .ib {
  96. display:inline-block;
  97. }
  98. .responsive { /*Close enough to 16:9*/
  99. max-width: 45rem;
  100. max-height: 26rem;
  101. width:100%;
  102. height:100%;
  103. }
  104. iframe.responsive {
  105. width: 45rem;
  106. height: 26rem;
  107. }
  108. .responsive-text {
  109. font-family: serif;
  110. font-size: larger;
  111. max-width: 45rem;
  112. }
  113. .responsive-img {
  114. max-width: 45rem;
  115. width:100%
  116. }
  117. .square {
  118. width: 20rem;
  119. height: 20rem;
  120. }
  121. @media(max-width: 45rem) {
  122. iframe.responsive {
  123. width: 100%;
  124. height: 10rem;
  125. }
  126. }