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.
 
 
 
 
 
 

291 lines
4.5 KiB

  1. /* Base */
  2. body,
  3. body *:not(html):not(style):not(br):not(tr):not(code) {
  4. box-sizing: border-box;
  5. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
  6. 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  7. position: relative;
  8. }
  9. body {
  10. -webkit-text-size-adjust: none;
  11. background-color: #ffffff;
  12. color: #718096;
  13. height: 100%;
  14. line-height: 1.4;
  15. margin: 0;
  16. padding: 0;
  17. width: 100% !important;
  18. }
  19. p,
  20. ul,
  21. ol,
  22. blockquote {
  23. line-height: 1.4;
  24. text-align: left;
  25. }
  26. a {
  27. color: #3869d4;
  28. }
  29. a img {
  30. border: none;
  31. }
  32. /* Typography */
  33. h1 {
  34. color: #3d4852;
  35. font-size: 18px;
  36. font-weight: bold;
  37. margin-top: 0;
  38. text-align: left;
  39. }
  40. h2 {
  41. font-size: 16px;
  42. font-weight: bold;
  43. margin-top: 0;
  44. text-align: left;
  45. }
  46. h3 {
  47. font-size: 14px;
  48. font-weight: bold;
  49. margin-top: 0;
  50. text-align: left;
  51. }
  52. p {
  53. font-size: 16px;
  54. line-height: 1.5em;
  55. margin-top: 0;
  56. text-align: left;
  57. }
  58. p.sub {
  59. font-size: 12px;
  60. }
  61. img {
  62. max-width: 100%;
  63. }
  64. /* Layout */
  65. .wrapper {
  66. -premailer-cellpadding: 0;
  67. -premailer-cellspacing: 0;
  68. -premailer-width: 100%;
  69. background-color: #edf2f7;
  70. margin: 0;
  71. padding: 0;
  72. width: 100%;
  73. }
  74. .content {
  75. -premailer-cellpadding: 0;
  76. -premailer-cellspacing: 0;
  77. -premailer-width: 100%;
  78. margin: 0;
  79. padding: 0;
  80. width: 100%;
  81. }
  82. /* Header */
  83. .header {
  84. padding: 25px 0;
  85. text-align: center;
  86. }
  87. .header a {
  88. color: #3d4852;
  89. font-size: 19px;
  90. font-weight: bold;
  91. text-decoration: none;
  92. }
  93. /* Logo */
  94. .logo {
  95. height: 75px;
  96. max-height: 75px;
  97. width: 75px;
  98. }
  99. /* Body */
  100. .body {
  101. -premailer-cellpadding: 0;
  102. -premailer-cellspacing: 0;
  103. -premailer-width: 100%;
  104. background-color: #edf2f7;
  105. border-bottom: 1px solid #edf2f7;
  106. border-top: 1px solid #edf2f7;
  107. margin: 0;
  108. padding: 0;
  109. width: 100%;
  110. }
  111. .inner-body {
  112. -premailer-cellpadding: 0;
  113. -premailer-cellspacing: 0;
  114. -premailer-width: 570px;
  115. background-color: #ffffff;
  116. border-color: #e8e5ef;
  117. border-radius: 2px;
  118. border-width: 1px;
  119. box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015);
  120. margin: 0 auto;
  121. padding: 0;
  122. width: 570px;
  123. }
  124. /* Subcopy */
  125. .subcopy {
  126. border-top: 1px solid #e8e5ef;
  127. margin-top: 25px;
  128. padding-top: 25px;
  129. }
  130. .subcopy p {
  131. font-size: 14px;
  132. }
  133. /* Footer */
  134. .footer {
  135. -premailer-cellpadding: 0;
  136. -premailer-cellspacing: 0;
  137. -premailer-width: 570px;
  138. margin: 0 auto;
  139. padding: 0;
  140. text-align: center;
  141. width: 570px;
  142. }
  143. .footer p {
  144. color: #b0adc5;
  145. font-size: 12px;
  146. text-align: center;
  147. }
  148. .footer a {
  149. color: #b0adc5;
  150. text-decoration: underline;
  151. }
  152. /* Tables */
  153. .table table {
  154. -premailer-cellpadding: 0;
  155. -premailer-cellspacing: 0;
  156. -premailer-width: 100%;
  157. margin: 30px auto;
  158. width: 100%;
  159. }
  160. .table th {
  161. border-bottom: 1px solid #edeff2;
  162. margin: 0;
  163. padding-bottom: 8px;
  164. }
  165. .table td {
  166. color: #74787e;
  167. font-size: 15px;
  168. line-height: 18px;
  169. margin: 0;
  170. padding: 10px 0;
  171. }
  172. .content-cell {
  173. max-width: 100vw;
  174. padding: 32px;
  175. }
  176. /* Buttons */
  177. .action {
  178. -premailer-cellpadding: 0;
  179. -premailer-cellspacing: 0;
  180. -premailer-width: 100%;
  181. margin: 30px auto;
  182. padding: 0;
  183. text-align: center;
  184. width: 100%;
  185. }
  186. .button {
  187. -webkit-text-size-adjust: none;
  188. border-radius: 4px;
  189. color: #fff;
  190. display: inline-block;
  191. overflow: hidden;
  192. text-decoration: none;
  193. }
  194. .button-blue,
  195. .button-primary {
  196. background-color: #2d3748;
  197. border-bottom: 8px solid #2d3748;
  198. border-left: 18px solid #2d3748;
  199. border-right: 18px solid #2d3748;
  200. border-top: 8px solid #2d3748;
  201. }
  202. .button-green,
  203. .button-success {
  204. background-color: #48bb78;
  205. border-bottom: 8px solid #48bb78;
  206. border-left: 18px solid #48bb78;
  207. border-right: 18px solid #48bb78;
  208. border-top: 8px solid #48bb78;
  209. }
  210. .button-red,
  211. .button-error {
  212. background-color: #e53e3e;
  213. border-bottom: 8px solid #e53e3e;
  214. border-left: 18px solid #e53e3e;
  215. border-right: 18px solid #e53e3e;
  216. border-top: 8px solid #e53e3e;
  217. }
  218. /* Panels */
  219. .panel {
  220. border-left: #2d3748 solid 4px;
  221. margin: 21px 0;
  222. }
  223. .panel-content {
  224. background-color: #edf2f7;
  225. color: #718096;
  226. padding: 16px;
  227. }
  228. .panel-content p {
  229. color: #718096;
  230. }
  231. .panel-item {
  232. padding: 0;
  233. }
  234. .panel-item p:last-of-type {
  235. margin-bottom: 0;
  236. padding-bottom: 0;
  237. }
  238. /* Utilities */
  239. .break-all {
  240. word-break: break-all;
  241. }