structure.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. .kontable {
  60. display "table";
  61. width: 100%;
  62. }
  63. .kontrow {
  64. display: table-row;
  65. }
  66. .kontained {
  67. display: table-cell;
  68. }
  69. #leftbar {
  70. width: 6em;
  71. padding-right: .5em;
  72. padding-top: 1rem;
  73. }
  74. #kontent {
  75. padding: 3em .5em .5em .5em;
  76. min-height: 50%;
  77. max-width: 100%;
  78. margin-top: 0px;
  79. }
  80. #rightbar {
  81. width: 6em;
  82. padding-left: .5em;
  83. }
  84. #footbar {
  85. position: absolute;
  86. bottom: 0;
  87. width: 100%;
  88. height: 1.5em;
  89. }
  90. #stories {
  91. padding: 0px .5em .5em .5em;
  92. width: 80%;
  93. display: table-cell;
  94. }
  95. /*Some CSS rules below that I actually want to load on both print and screen views*/
  96. blockquote {
  97. font-style: italic;
  98. }
  99. .inline {
  100. display: inline;
  101. }
  102. .ib {
  103. display:inline-block;
  104. }
  105. .responsive { /*Close enough to 16:9*/
  106. max-width: 45rem;
  107. max-height: 26rem;
  108. width:100%;
  109. height:100%;
  110. }
  111. iframe.responsive {
  112. width: 45rem;
  113. height: 26rem;
  114. }
  115. .responsive-text {
  116. font-family: serif;
  117. font-size: larger;
  118. max-width: 45rem;
  119. }
  120. .responsive-img {
  121. max-width: 45rem;
  122. width:100%
  123. }
  124. .square {
  125. width: 20rem;
  126. height: 20rem;
  127. }
  128. @media(max-width: 45rem) {
  129. iframe.responsive {
  130. width: 100%;
  131. height: 10rem;
  132. }
  133. }