Advertisement
chrisasl

scss file

Nov 9th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.77 KB | None | 0 0
  1. /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
  2.  
  3. /*
  4.  * What follows is the result of much research on cross-browser styling.
  5.  * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
  6.  * Kroc Camen, and the H5BP dev community and team.
  7.  */
  8.  
  9. @import "compass";
  10.  
  11. /* ==========================================================================
  12.    Base styles: opinionated defaults
  13.    ========================================================================== */
  14.  
  15. html,
  16. button,
  17. input,
  18. select,
  19. textarea {
  20.     color: #222;
  21. }
  22.  
  23. html {
  24.     font-size: 1em;
  25.     line-height: 1.4;
  26. }
  27.  
  28. /*
  29.  * Remove text-shadow in selection highlight: h5bp.com/i
  30.  * These selection rule sets have to be separate.
  31.  * Customize the background color to match your design.
  32.  */
  33.  
  34. ::-moz-selection {
  35.     background: #b3d4fc;
  36.     text-shadow: none;
  37. }
  38.  
  39. ::selection {
  40.     background: #b3d4fc;
  41.     text-shadow: none;
  42. }
  43.  
  44. /*
  45.  * A better looking default horizontal rule
  46.  */
  47.  
  48. hr {
  49.     display: block;
  50.     height: 1px;
  51.     border: 0;
  52.     border-top: 1px solid #ccc;
  53.     margin: 1em 0;
  54.     padding: 0;
  55. }
  56.  
  57. /*
  58.  * Remove the gap between images, videos, audio and canvas and the bottom of
  59.  * their containers: h5bp.com/i/440
  60.  */
  61.  
  62. audio,
  63. canvas,
  64. img,
  65. video {
  66.     vertical-align: middle;
  67. }
  68.  
  69. /*
  70.  * Remove default fieldset styles.
  71.  */
  72.  
  73. fieldset {
  74.     border: 0;
  75.     margin: 0;
  76.     padding: 0;
  77. }
  78.  
  79. /*
  80.  * Allow only vertical resizing of textareas.
  81.  */
  82.  
  83. textarea {
  84.     resize: vertical;
  85. }
  86.  
  87. /* ==========================================================================
  88.    Browse Happy prompt
  89.    ========================================================================== */
  90.  
  91. .browsehappy {
  92.     margin: 0.2em 0;
  93.     background: #ccc;
  94.     color: #000;
  95.     padding: 0.2em 0;
  96. }
  97.  
  98. /* ==========================================================================
  99.    Author's custom styles
  100.    ========================================================================== */
  101. /* Setting color variables using a two-tier system
  102.     in this format: {
  103.         first   == Hipster Haven
  104.         second  == Vintage Card
  105.     }
  106. */
  107. // 1st tier: Descriptive color names
  108. $darkPurple: #42282F;
  109. $greyBrown: #8F747E;
  110.  
  111. $cyanGreen: #74A588;
  112. $lightCyan: #8CBEB2;
  113.  
  114. $cream: #D6CCAD;
  115. $lightCream: #F2EBBF;
  116.  
  117. $orangeRed: #DC9C76;
  118. $orangeYellow: #F3B562;
  119.  
  120. $lightRed: #D6655A;
  121. $brightRed: #F06060;
  122.  
  123. /* ========================================================================== */
  124. // 2nd tier: functional names
  125. $backgroundColor: $greyBrown;
  126. $textColor: $lightCream;
  127. $headerBackgroundColor: $darkPurple;
  128.  
  129. body {
  130.     background: $backgroundColor;
  131.     color: $textColor;
  132. }
  133.  
  134.  
  135. // header customization
  136. header {
  137.     background: $headerBackgroundColor;  
  138.     top: -200px;
  139.     margin: 0;
  140.     padding: 0;
  141. }
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. /* ==========================================================================
  158.    Helper classes
  159.    ========================================================================== */
  160.  
  161. /*
  162.  * Image replacement
  163.  */
  164.  
  165. .ir {
  166.     background-color: transparent;
  167.     border: 0;
  168.     overflow: hidden;
  169.     /* IE 6/7 fallback */
  170.     *text-indent: -9999px;
  171. }
  172.  
  173. .ir:before {
  174.     content: "";
  175.     display: block;
  176.     width: 0;
  177.     height: 150%;
  178. }
  179.  
  180. /*
  181.  * Hide from both screenreaders and browsers: h5bp.com/u
  182.  */
  183.  
  184. .hidden {
  185.     display: none !important;
  186.     visibility: hidden;
  187. }
  188.  
  189. /*
  190.  * Hide only visually, but have it available for screenreaders: h5bp.com/v
  191.  */
  192.  
  193. .visuallyhidden {
  194.     border: 0;
  195.     clip: rect(0 0 0 0);
  196.     height: 1px;
  197.     margin: -1px;
  198.     overflow: hidden;
  199.     padding: 0;
  200.     position: absolute;
  201.     width: 1px;
  202. }
  203.  
  204. /*
  205.  * Extends the .visuallyhidden class to allow the element to be focusable
  206.  * when navigated to via the keyboard: h5bp.com/p
  207.  */
  208.  
  209. .visuallyhidden.focusable:active,
  210. .visuallyhidden.focusable:focus {
  211.     clip: auto;
  212.     height: auto;
  213.     margin: 0;
  214.     overflow: visible;
  215.     position: static;
  216.     width: auto;
  217. }
  218.  
  219. /*
  220.  * Hide visually and from screenreaders, but maintain layout
  221.  */
  222.  
  223. .invisible {
  224.     visibility: hidden;
  225. }
  226.  
  227. /*
  228.  * Clearfix: contain floats
  229.  *
  230.  * For modern browsers
  231.  * 1. The space content is one way to avoid an Opera bug when the
  232.  *    `contenteditable` attribute is included anywhere else in the document.
  233.  *    Otherwise it causes space to appear at the top and bottom of elements
  234.  *    that receive the `clearfix` class.
  235.  * 2. The use of `table` rather than `block` is only necessary if using
  236.  *    `:before` to contain the top-margins of child elements.
  237.  */
  238.  
  239. .clearfix:before,
  240. .clearfix:after {
  241.     content: " "; /* 1 */
  242.     display: table; /* 2 */
  243. }
  244.  
  245. .clearfix:after {
  246.     clear: both;
  247. }
  248.  
  249. /*
  250.  * For IE 6/7 only
  251.  * Include this rule to trigger hasLayout and contain floats.
  252.  */
  253.  
  254. .clearfix {
  255.     *zoom: 1;
  256. }
  257.  
  258. /* ==========================================================================
  259.    EXAMPLE Media Queries for Responsive Design.
  260.    These examples override the primary ('mobile first') styles.
  261.    Modify as content requires.
  262.    ========================================================================== */
  263.  
  264. @media only screen and (min-width: 35em) {
  265.     /* Style adjustments for viewports that meet the condition */
  266. }
  267.  
  268. @media print,
  269.        (-o-min-device-pixel-ratio: 5/4),
  270.        (-webkit-min-device-pixel-ratio: 1.25),
  271.        (min-resolution: 120dpi) {
  272.     /* Style adjustments for high resolution devices */
  273. }
  274.  
  275. /* ==========================================================================
  276.    Print styles.
  277.    Inlined to avoid required HTTP connection: h5bp.com/r
  278.    ========================================================================== */
  279.  
  280. @media print {
  281.     * {
  282.         background: transparent !important;
  283.         color: #000 !important; /* Black prints faster: h5bp.com/s */
  284.         box-shadow: none !important;
  285.         text-shadow: none !important;
  286.     }
  287.  
  288.     a,
  289.     a:visited {
  290.         text-decoration: underline;
  291.     }
  292.  
  293.     a[href]:after {
  294.         content: " (" attr(href) ")";
  295.     }
  296.  
  297.     abbr[title]:after {
  298.         content: " (" attr(title) ")";
  299.     }
  300.  
  301.     /*
  302.      * Don't show links for images, or javascript/internal links
  303.      */
  304.  
  305.     .ir a:after,
  306.     a[href^="javascript:"]:after,
  307.     a[href^="#"]:after {
  308.         content: "";
  309.     }
  310.  
  311.     pre,
  312.     blockquote {
  313.         border: 1px solid #999;
  314.         page-break-inside: avoid;
  315.     }
  316.  
  317.     thead {
  318.         display: table-header-group; /* h5bp.com/t */
  319.     }
  320.  
  321.     tr,
  322.     img {
  323.         page-break-inside: avoid;
  324.     }
  325.  
  326.     img {
  327.         max-width: 100% !important;
  328.     }
  329.  
  330.     @page {
  331.         margin: 0.5cm;
  332.     }
  333.  
  334.     p,
  335.     h2,
  336.     h3 {
  337.         orphans: 3;
  338.         widows: 3;
  339.     }
  340.  
  341.     h2,
  342.     h3 {
  343.         page-break-after: avoid;
  344.     }
  345. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement