Fancy CSS3 Pull-Quotes


SUBMITTED BY: Guest

DATE: May 24, 2013, 11:23 a.m.

FORMAT: CSS

SIZE: 919 Bytes

HITS: 1289

  1. .has-pullquote:before {
  2. /* Reset metrics. */
  3. padding: 0;
  4. border: none;
  5. /* Content */
  6. content: attr(data-pullquote);
  7. /* Pull out to the right, modular scale based margins. */
  8. float: right;
  9. width: 320px;
  10. margin: 12px -140px 24px 36px;
  11. /* Baseline correction */
  12. position: relative;
  13. top: 5px;
  14. /* Typography (30px line-height equals 25% incremental leading) */
  15. font-size: 23px;
  16. line-height: 30px;
  17. }
  18. .pullquote-adelle:before {
  19. font-family: "adelle-1", "adelle-2";
  20. font-weight: 100;
  21. top: 10px !important;
  22. }
  23. .pullquote-helvetica:before {
  24. font-family: "Helvetica Neue", Arial, sans-serif;
  25. font-weight: bold;
  26. top: 7px !important;
  27. }
  28. .pullquote-facit:before {
  29. font-family: "facitweb-1", "facitweb-2", Helvetica, Arial, sans-serif;
  30. font-weight: bold;
  31. top: 7px !important;
  32. }

comments powered by Disqus