Advertisement
Guest User

fabrice CSS

a guest
Apr 15th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.23 KB | None | 0 0
  1. /* FONTS
  2. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  3.  
  4. @font-face {
  5.     font-family: 'aileron-regular';
  6.     src: url('/res/fonts/aileron-regular.woff') format('woff'),
  7.          url('/res/fonts/aileron-regular.ttf') format('truetype');
  8.     font-weight: normal;
  9.     font-style: normal;
  10. }
  11.  
  12. @font-face {
  13.     font-family: 'aileron-light';
  14.     src: url('/res/fonts/aileron-light.woff') format('woff'),
  15.          url('/res/fonts/aileron-light.ttf') format('truetype');
  16.     font-weight: normal;
  17.     font-style: normal;
  18. }
  19.  
  20. @font-face {
  21.     font-family: 'aileron-thin';
  22.     src: url('/res/fonts/aileron-thin.woff') format('woff'),
  23.          url('/res/fonts/aileron-thin.ttf') format('truetype');
  24.     font-weight: normal;
  25.     font-style: normal;
  26. }
  27.  
  28. @font-face {
  29.     font-family: 'aileron-heavy';
  30.     src: url('/res/fonts/aileron-heavy.woff') format('woff'),
  31.          url('/res/fonts/aileron-heavy.ttf') format('truetype');
  32.     font-weight: normal;
  33.     font-style: normal;
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40. /* NAVBAR
  41. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  42.  
  43. #navbar_box {  
  44.     position: absolute;
  45.     bottom: 0px;
  46.     left: 0px;
  47.     right: 0px;
  48.    
  49.     height: 80px;
  50.    
  51.     box-shadow: 0px 1px 10px grey; /* x, y, blur */
  52.    
  53.     overflow: hidden;
  54.     z-index: 1000; 
  55. }
  56.  
  57. .navbar{
  58.     background-color: white;
  59. }
  60.  
  61.  
  62.  
  63. /*Branding*/
  64. #brand_box {
  65.     float:left;
  66.    
  67.     margin-top: 25px;
  68.     margin-bottom: 25px;
  69.    
  70.     margin-left: 25px;
  71.     margin-right: 25px;
  72. }
  73.  
  74. .brandtext {   
  75.     font-family: aileron-heavy;
  76.     font-size: 30px;
  77.     color: black;
  78.    
  79.     text-align: center;
  80.     text-decoration: none;
  81.    
  82.     -webkit-touch-callout: none;
  83.     -webkit-user-select: none;
  84.     -khtml-user-select: none;
  85.     -moz-user-select: none;
  86.     -ms-user-select: none;
  87.     user-select: none;
  88. }
  89.  
  90.  
  91.  
  92. /*Menu*/
  93. #textbutton_box {
  94.     float: left;
  95.    
  96.     margin-top: 31px;
  97.     margin-bottom: 31px;
  98.    
  99.     margin-left: 10px;
  100.     margin-right: 10px;
  101. }
  102.  
  103. .textbutton {  
  104.     font-family: aileron-thin;
  105.     font-size: 18px;    
  106.     color: black;
  107.  
  108.     text-align: center;
  109.     text-decoration: none;
  110.                    
  111.     background:none;
  112.     border:none;
  113.    
  114.     margin-right: 5px;
  115.                
  116.     -webkit-touch-callout: none;
  117.     -webkit-user-select: none;
  118.     -khtml-user-select: none;
  119.     -moz-user-select: none;
  120.     -ms-user-select: none;
  121.     user-select: none;
  122. }
  123.  
  124. .textbutton:hover {
  125.     color: rgba(0, 0, 0, 0.5); !important; 
  126. }
  127.  
  128. .textbutton:focus {
  129.     outline:0; 
  130. }/*hide blue button outlines*/
  131.  
  132.  
  133.  
  134. /*Social Links*/
  135. #icon_box {
  136.     float: right;
  137.    
  138.     margin-top: 25px;
  139.     margin-bottom: 25px;
  140.    
  141.     margin-left: 25px;
  142.     margin-right: 25px;
  143. }
  144.  
  145.  
  146. .icon {
  147.     float: right; /*inverse order*/
  148.     margin-right: 10px; /*space between*/
  149.    
  150.     display: block;
  151.     width: 30px;
  152.     height: 30px;
  153. }
  154.  
  155.  
  156.  
  157. #facebook {  
  158.     background: url(/res/icons/facebook-black.svg);
  159.     background-size: 30px 30px;
  160. }
  161. #twitter {
  162.     background: url(/res/icons/twitter-black.svg);
  163.     background-size: 30px 30px;
  164. }
  165. #instagram {
  166.     background: url(/res/icons/instagram-black.svg);
  167.     background-size: 30px 30px;
  168. }
  169. #snapchat {
  170.     background: url(/res/icons/snapchat-black.svg);
  171.     background-size: 30px 30px;
  172. }
  173. #youtube {
  174.     background: url(/res/icons/youtube-black.svg);
  175.     background-size: 30px 30px;
  176. }
  177. #spotify {
  178.     background: url(/res/icons/spotify-black.svg);
  179.     background-size: 30px 30px;
  180. }
  181. #soundcloud {
  182.     background: url(/res/icons/soundcloud-black.svg);
  183.     background-size: 30px 30px;
  184. }
  185.  
  186.  
  187. /*color on hover*/
  188. #facebook:hover {  
  189.     background: url(/res/icons/facebook-color.svg);
  190.     background-size: 30px 30px;
  191. }
  192. #twitter:hover {
  193.     background: url(/res/icons/twitter-color.svg);
  194.     background-size: 30px 30px;
  195. }
  196. #instagram:hover {
  197.     background: url(/res/icons/instagram-color.svg);
  198.     background-size: 30px 30px;
  199. }
  200. #snapchat:hover {
  201.     background: url(/res/icons/snapchat-color.svg);
  202.     background-size: 30px 30px;
  203. }
  204. #youtube:hover {
  205.     background: url(/res/icons/youtube-color.svg);
  206.     background-size: 30px 30px;
  207. }
  208. #spotify:hover {
  209.     background: url(/res/icons/spotify-color.svg);
  210.     background-size: 30px 30px;
  211. }
  212. #soundcloud:hover {
  213.     background: url(/res/icons/soundcloud-color.svg);
  214.     background-size: 30px 30px;
  215. }
  216.  
  217.  
  218.  
  219.  
  220.  
  221. /* GRID
  222. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  223.  
  224. .container {
  225.     position: relative;
  226.     width: 100%;
  227.     max-width: 900px;
  228.     margin: 0 auto;
  229.     padding: 0 20px;
  230.     box-sizing: border-box;
  231. }
  232.  
  233. .column, .columns {
  234.     width: 100%;
  235.     float: left;
  236.     box-sizing: border-box;
  237. }
  238.  
  239.  
  240.  
  241. /*larger than 400px*/
  242. @media (min-width: 400px) {
  243.     .container {
  244.         width: 85%;
  245.         padding: 0; }
  246. }
  247.  
  248.  
  249.  
  250. /*larger than 550px*/
  251. @media (min-width: 550px) {
  252.     .container {
  253.         width: 80%;
  254.     }
  255.    
  256.     .column, .columns {
  257.         margin-left: 4%;
  258.     }
  259.    
  260.     .column:first-child, .columns:first-child {
  261.         margin-left: 0;
  262.    
  263.     }
  264.  
  265.     /*Columns*/
  266.     .one.column,
  267.     .one.columns                    { width: 4.66666666667%; }
  268.     .two.columns                    { width: 13.3333333333%; }
  269.     .three.columns                  { width: 22%;            }
  270.     .four.columns                   { width: 30.6666666667%; }
  271.     .five.columns                   { width: 39.3333333333%; }
  272.     .six.columns                    { width: 48%;            }
  273.     .seven.columns                  { width: 56.6666666667%; }
  274.     .eight.columns                  { width: 65.3333333333%; }
  275.     .nine.columns                   { width: 74.0%;          }
  276.     .ten.columns                    { width: 82.6666666667%; }
  277.     .eleven.columns                 { width: 91.3333333333%; }
  278.     .twelve.columns                 { width: 100%; margin-left: 0; }
  279.    
  280.     .one-third.column               { width: 30.6666666667%; }
  281.     .two-thirds.column              { width: 65.3333333333%; }
  282.    
  283.     .one-half.column                { width: 48%; }
  284.  
  285.     /* Offsets */
  286.     .offset-by-one.column,
  287.     .offset-by-one.columns          { margin-left: 8.66666666667%; }
  288.     .offset-by-two.column,
  289.     .offset-by-two.columns          { margin-left: 17.3333333333%; }
  290.     .offset-by-three.column,
  291.     .offset-by-three.columns        { margin-left: 26%;            }
  292.     .offset-by-four.column,
  293.     .offset-by-four.columns         { margin-left: 34.6666666667%; }
  294.     .offset-by-five.column,
  295.     .offset-by-five.columns         { margin-left: 43.3333333333%; }
  296.     .offset-by-six.column,
  297.     .offset-by-six.columns          { margin-left: 52%;            }
  298.     .offset-by-seven.column,
  299.     .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  300.     .offset-by-eight.column,
  301.     .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  302.     .offset-by-nine.column,
  303.     .offset-by-nine.columns         { margin-left: 78.0%;          }
  304.     .offset-by-ten.column,
  305.     .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  306.     .offset-by-eleven.column,
  307.     .offset-by-eleven.columns       { margin-left: 95.3333333333%; }
  308.    
  309.     .offset-by-one-third.column,
  310.     .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  311.     .offset-by-two-thirds.column,
  312.     .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }
  313.    
  314.     .offset-by-one-half.column,
  315.     .offset-by-one-half.columns     { margin-left: 52%; }
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement