Guest User

Untitled

a guest
Sep 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. /**
  2. * Mobile first demo
  3. */
  4.  
  5. * {box-sizing: border-box;}
  6.  
  7. body {
  8. /*background: hsl(60,80%,70%);*/
  9. background-color: hsl(60,30%,70%);
  10. background-image:
  11. repeating-linear-gradient(-30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
  12. repeating-linear-gradient(30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
  13. linear-gradient(30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)),
  14. linear-gradient(-30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
  15. background-size: 70px 120px;
  16.  
  17. font: 16px/22px Monaco, monospace;
  18. text-shadow: 1px 1px 0 rgba(255,255,255, 0.3);
  19. padding: 0; margin: 0;
  20. }
  21.  
  22. figure {margin: 20px 0;}
  23. figure img {width: 100%;}
  24.  
  25. /* Navigation */
  26. .main-nav {clear: both;}
  27. nav ul {padding: 0;}
  28. nav ul li {
  29. float: left;
  30. list-style: none;
  31. margin: 20px 40px 0 0;
  32. }
  33.  
  34. nav ul li a {
  35. background: linear-gradient(hsla(125, 33%, 50%, 0.4), hsla(125, 33%, 60%, 0.4));
  36. border-style: solid;
  37. border-width: 1px;
  38. border-color: rgba(255,255,255,0.7) rgba(0,0,0,0) rgba(0,0,0,0.5) rgba(255,255,255,0.7);
  39. border-radius: 3px;
  40. box-shadow: 0 0 5px rgba(0,0,0,0.3);
  41. color: #333;
  42. display: inline-block;
  43. padding: 10px;
  44. text-transform: uppercase;
  45. text-decoration: none;
  46. letter-spacing: 1px;
  47. }
  48.  
  49. nav ul li a:hover {
  50. box-shadow: none;
  51. border-color: rgba(0,0,0,0.5) rgba(255,255,255,0.7) rgba(255,255,255,0.7) rgba(0,0,0,0.3);
  52. background: linear-gradient(hsla(125, 33%, 60%, 0.8), hsla(125, 33%, 50%, 0.8));
  53. text-shadow: -1px -1px 0 rgba(255,255,255, 0.3);
  54. }
  55. /* Header */
  56.  
  57. .main-header {
  58. background-color: hsla(359, 63%, 100%, 0.5);
  59. color: #f5f5f5;
  60. padding: 40px;
  61. }
  62.  
  63. .main-header hgroup {
  64. border-bottom: 10px solid rgba(255,255,255,0.6);
  65. padding-bottom: 20px;
  66. margin: 40px 0;
  67. }
  68.  
  69. .main-header hgroup h1, .main-header hgroup h2 {margin: 0;}
  70.  
  71. h1 {font-size: 48px; line-height: 48px;}
  72.  
  73. h1 a {
  74. color: #fff;
  75. text-decoration: none;
  76. }
  77.  
  78. /* Main content */
  79. .posts {
  80. background: rgba(255,200,200,0.8);
  81. padding: 20px; margin-top: 20px;
  82.  
  83. }
  84.  
  85. /* Additional content */
  86. .additional-content {
  87. background: rgba(200,255,200,0.7);
  88. padding: 20px; margin-top: 20px;
  89.  
  90. }
  91.  
  92. .twitter-widget ol {padding: 0;}
  93. .twitter-widget ol li{
  94. background: rgba(0,0,0,0.1);
  95. list-style: none;
  96. padding: 10px; margin-bottom: 20px;
  97. }
  98.  
  99.  
  100. /* Footer */
  101. .main-footer {
  102. background: rgba(0,0,255,0.1);
  103. margin: 20px 0 0 0; padding: 20px;
  104. }
  105.  
  106.  
  107. /* Helpers */
  108.  
  109. .global-width {
  110. max-width: 960px;
  111. margin: 0 auto;
  112. }
  113.  
  114. .clearfix:before, .clearfix:after { content: ""; display: table; }
  115. .clearfix:after { clear: both; }
  116. .clearfix { *zoom: 1; }
  117.  
  118. /* Media queries */
  119. @media only screen and (min-width: 715px){
  120. .left {float: left; margin-right: 20px;}
  121. .right {float: right; margin-right:0px}
  122.  
  123. .col--right: 0;1 {width: 25%;}
  124. .col-2 {width: 50%;}
  125. .col-3 {width: 72%;}
  126.  
  127. .main-header hgroup {margin: 0;}
  128.  
  129. }
Add Comment
Please, Sign In to add comment