summaryrefslogtreecommitdiff
path: root/test.scss
blob: e3ffb50e730cd5af0c0e105e2a7178255534bbe2 (plain)
  1. @import 'h5bp/helpers';
  2. @import 'compass/css3';
  3. .topbar {
  4. padding: 1.5em 0;
  5. text-align: center;
  6. @media screen and (min-width: 701px) {
  7. padding: 1.5em 6em 1.5em 0;
  8. text-align: right;
  9. }
  10. }
  11. .topbar .footer {
  12. background-color: #336699;
  13. }
  14. .topbar p,
  15. .topbar .imgframe p {
  16. float: left;
  17. }
  18. //.topbar ul {
  19. // display: block;
  20. // margin: 3em 0;
  21. //}
  22. .topbar ul {
  23. position: relative;
  24. top: 1.8em;
  25. clear: left;
  26. @media screen and (max-width: 480px) {
  27. top: 3.2em;
  28. font-size: 10px;
  29. }
  30. }
  31. .topbar li {
  32. text-align: center;
  33. }
  34. .topbar ul li a,
  35. .topbar ul li .selflink {
  36. @include inline-block;
  37. width: 8em;
  38. padding: 1em .5em;
  39. background-color: #6699cc;
  40. color: white;
  41. &:hover {
  42. background-color: lightblue;
  43. color: #336699;
  44. }
  45. @media screen and (min-width: 701px) {
  46. width: 10em;
  47. padding: 1em;
  48. }
  49. }
  50. // FIXME: change topbar inline-block-list padding instead
  51. .topbar ul li {
  52. padding-left: 0;
  53. padding-right: 0;
  54. @media screen and (min-width: 701px) {
  55. padding-left: .2em;
  56. padding-right: .2em;
  57. }
  58. }
  59. #content {
  60. width: 96%;
  61. max-width: none;
  62. margin: 2%;
  63. }
  64. .inlinepage {
  65. position: relative;
  66. //set to make inline header position work
  67. border: 0;
  68. padding: 0;
  69. margin: 0 0 1em 0;
  70. background-color: transparent;
  71. height: 18em;
  72. overflow: hidden;
  73. }
  74. //set to annull style.css
  75. .inlinecontent {
  76. margin-top: 0;
  77. }
  78. .inlineheader {
  79. display: block;
  80. position: absolute;
  81. bottom: 0;
  82. left: 0;
  83. width: 100%;
  84. a {
  85. font-weight: normal;
  86. color: white;
  87. background-color: #6699cc;
  88. display: block;
  89. padding: 0.5em;
  90. opacity: 0.8;
  91. }
  92. }
  93. .inlinecontent p {
  94. margin-bottom: 0;
  95. margin-top: 0;
  96. }
  97. .inlinefooter,
  98. .inlineheader .author,
  99. .sidebar,
  100. .farbar {
  101. @include h5bp-hidden;
  102. }
  103. //Responsive design
  104. @media screen and (max-width: 480px) {
  105. #content {
  106. width: 100%;
  107. margin: 0;
  108. }
  109. .columns {
  110. @include column-count(1);
  111. }
  112. .inlinepage {
  113. margin: 0;
  114. }
  115. }
  116. @media screen and (min-width: 480px) and (max-width: 700px) {
  117. .columns {
  118. @include column-count(2);
  119. }
  120. }
  121. @media screen and (min-width: 701px) {
  122. .columns {
  123. @include column-count(3);
  124. }
  125. }