summaryrefslogtreecommitdiff
path: root/test.scss
blob: 778ab4a14add611b059f61035dfc8aae7889ea7f (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. }
  27. .topbar li {
  28. text-align: center;
  29. }
  30. .topbar ul li a,
  31. .topbar ul li .selflink {
  32. @include inline-block;
  33. width: 10em;
  34. padding: 1em;
  35. background-color: #6699cc;
  36. color: white;
  37. &:hover {
  38. background-color: lightblue;
  39. color: #336699;
  40. }
  41. }
  42. // FIXME: change topbar inline-block-list padding instead
  43. .topbar ul li {
  44. padding-left: .2em;
  45. padding-right: .2em;
  46. }
  47. #content {
  48. width: 96%;
  49. max-width: none;
  50. margin: 2%;
  51. }
  52. .inlinepage {
  53. position: relative;
  54. //set to make inline header position work
  55. border: 0;
  56. padding: 0;
  57. margin: 0 0 1em 0;
  58. background-color: transparent;
  59. height: 18em;
  60. overflow: hidden;
  61. }
  62. //set to annull style.css
  63. .inlinecontent {
  64. margin-top: 0;
  65. }
  66. .inlineheader {
  67. display: block;
  68. position: absolute;
  69. bottom: 0;
  70. left: 0;
  71. width: 100%;
  72. a {
  73. font-weight: normal;
  74. color: white;
  75. background-color: #6699cc;
  76. display: block;
  77. padding: 0.5em;
  78. opacity: 0.8;
  79. }
  80. }
  81. .inlinecontent p {
  82. margin-bottom: 0;
  83. margin-top: 0;
  84. }
  85. .inlinefooter,
  86. .inlineheader .author,
  87. .sidebar,
  88. .farbar {
  89. @include h5bp-hidden;
  90. }
  91. //Responsive design
  92. @media screen and (max-width: 480px) {
  93. #content {
  94. width: 100%;
  95. margin: 0;
  96. }
  97. .columns {
  98. @include column-count(1);
  99. }
  100. .inlinepage {
  101. margin: 0;
  102. }
  103. }
  104. @media screen and (min-width: 480px) and (max-width: 700px) {
  105. .columns {
  106. @include column-count(2);
  107. }
  108. }
  109. @media screen and (min-width: 701px) {
  110. .columns {
  111. @include column-count(3);
  112. }
  113. }