structure.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. width: 35rem;
  100. height: 20rem;
  101. }
  102. .responsive-text {
  103. width: 35rem;
  104. }
  105. .square {
  106. width: 20rem;
  107. height: 20rem;
  108. }
  109. @media(max-width: 35rem) {
  110. .responsive {
  111. width: 100%;
  112. height: 10rem;
  113. }
  114. }