ribbons.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*Github Ribbon Test*/
  2. /* Source: https://github.com/dciccale/css3-github-ribbon */
  3. /* Define classes for example, definition, problem etc. */
  4. /* Choose meaningful colors for background and text */
  5. .example {
  6. background-color: #121621;
  7. top: 1.2em;
  8. right: -3.2em;
  9. -webkit-transform: rotate(45deg);
  10. -moz-transform: rotate(45deg);
  11. transform: rotate(45deg);
  12. -webkit-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  13. -moz-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  14. box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  15. color: #FF0;
  16. display: block;
  17. padding: .6em 3.5em;
  18. position: absolute;
  19. font: bold .82em sans-serif;
  20. text-align: center;
  21. text-decoration: none;
  22. text-shadow: 1px -1px 8px rgba(0,0,0,0.60);
  23. -webkit-user-select: none;
  24. -moz-user-select: none;
  25. user-select: none;
  26. }
  27. .definition {
  28. background-color: #a00;
  29. top: 1.2em;
  30. right: -3.2em;
  31. -webkit-transform: rotate(45deg);
  32. -moz-transform: rotate(45deg);
  33. transform: rotate(45deg);
  34. -webkit-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  35. -moz-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  36. box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;
  37. color: #FFF;
  38. display: block;
  39. padding: .6em 3.5em;
  40. position: absolute;
  41. font: bold .82em sans-serif;
  42. text-align: center;
  43. text-decoration: none;
  44. text-shadow: 1px -1px 8px rgba(0,0,0,0.60);
  45. -webkit-user-select: none;
  46. -moz-user-select: none;
  47. user-select: none;
  48. }