Examples of code I've written in PHP, Javascript, SCSS, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

166 lines
2.8 KiB

  1. @use "sass:map";
  2. @use "sass:color";
  3. @use "vars/vars";
  4. @use "services";
  5. @use "web";
  6. @use "home";
  7. @use "projects";
  8. @use "about";
  9. @use "contact";
  10. @font-face {
  11. font-family: "EBGaramond";
  12. src: url("font/EBGaramond/EBGaramond08-Italic.otf") format("opentype");
  13. font-style: italic;
  14. font-weight: bold;
  15. }
  16. @font-face {
  17. font-family: "EBGaramond";
  18. src: url("font/EBGaramond/EBGaramond12-Regular.otf") format("opentype");
  19. font-style: normal;
  20. font-weight: normal;
  21. }
  22. @font-face {
  23. font-family: "EBGaramond";
  24. src: url("font/EBGaramond/EBGaramond08-Regular.otf") format("opentype");
  25. font-style: normal;
  26. font-weight: bold;
  27. }
  28. @font-face {
  29. font-family: "EBGaramond";
  30. src: url("font/EBGaramond/EBGaramond12-Italic.otf") format("opentype");
  31. font-style: italic;
  32. font-weight: normal;
  33. }
  34. @font-face {
  35. font-family: "EBGaramond-initials2";
  36. src: url("font/EBGaramond/EBGaramond-InitialsF1.otf") format("opentype");
  37. font-style: normal;
  38. font-weight: normal;
  39. }
  40. @font-face {
  41. font-family: "EBGaramond-initials";
  42. src: url("font/EBGaramond/EBGaramond-Initials.otf") format("opentype");
  43. font-style: normal;
  44. font-weight: normal;
  45. }
  46. html body {
  47. font-family: 'EBGaramond', 'Times New Roman';
  48. background: url("background/interlaced/interlaced.png") repeat;
  49. margin: 0;
  50. }
  51. h2 {
  52. color: map.get(vars.$theme-colors, 'h2');
  53. font-weight: 600;
  54. font-size: 2em;
  55. }
  56. h3 {
  57. color: white;
  58. font-size: 3rem;
  59. margin: 0;
  60. }
  61. h4 {
  62. color: black;
  63. margin: 10px 0;
  64. font-size: 1.4rem;
  65. }
  66. main {
  67. margin: 0 10px;
  68. margin-bottom: 100px;
  69. }
  70. main section {
  71. margin: 30px auto 0 auto;
  72. max-width: 50em;
  73. background: white;
  74. padding: 10px 20px;
  75. border-radius: 0;
  76. //box-shadow: 3px 4px 3px grey;
  77. }
  78. p {
  79. font-size: 1.2em;
  80. color: map.get(vars.$theme-colors, 'p');
  81. }
  82. a {
  83. text-decoration: none;
  84. }
  85. footer {
  86. background-color: map.get(vars.$theme-colors, 'col5');
  87. //display: flex;
  88. font-family: Times;
  89. padding-top: 2em;
  90. padding-bottom: 2em;
  91. color: #aaa;
  92. bottom: 0;
  93. margin-top: 8em;
  94. a{
  95. font-size: 0.8rem;
  96. margin: 0 5%;
  97. color: #aaa;
  98. &:hover{
  99. color: #ddd;
  100. text-decoration: none currentcolor solid;
  101. }
  102. }
  103. .foot-links{
  104. max-width: 50em;
  105. border-bottom: 1px solid #555;
  106. margin: auto;
  107. //margin-left: auto;
  108. //margin-right: auto;
  109. padding-bottom: 5px;
  110. }
  111. small{
  112. padding: 1% 10%;
  113. display: block;
  114. position: relative;
  115. margin: 0 auto;
  116. text-align: center;
  117. }
  118. }
  119. .btn-grey {
  120. color: vars.getColor('p');
  121. background: white;
  122. border: 1px solid vars.getColor('p');
  123. border-radius: 3px;
  124. padding: 0.7em;
  125. text-decoration: none;
  126. text-align: center;
  127. margin: 0 auto;
  128. font-weight: bold;
  129. }
  130. .btn-grey:hover {
  131. color: white;
  132. background: vars.getColor('p');
  133. }
  134. .btn-black {
  135. color: black;
  136. background: white;
  137. border: 1px solid black;
  138. border-radius: 3px;
  139. padding: 0.7em;
  140. text-decoration: none;
  141. text-align: center;
  142. margin: 0 auto;
  143. font-weight: bold;
  144. }
  145. .btn-black:hover {
  146. color: white;
  147. background: black;
  148. }