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