Source code for website arcusiridis.com
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.

113 lines
3.1 KiB

5 years ago
  1. /* Base classes */
  2. .button, .drilldown a, .pagination .button, .dropdown.menu .is-active > a, .dropdown.menu a {
  3. background-color: var(--color-bg-alt);
  4. color: var(--color-fg-alt);
  5. font-weight: bold;
  6. text-transform: uppercase;
  7. padding: 0.7rem 0.5rem;
  8. font-size: 1rem;
  9. transition: unset;
  10. }
  11. .button.disabled, .button:disabled {
  12. background-color: var(--color-bg-alt-transparent);
  13. color: var(--color-fg-alt-transparent);
  14. }
  15. .button:hover:not(.disabled):not(disabled), .button:focus:not(.disabled):not(disabled),
  16. .button:active:not(.disabled):not(disabled), .button.active,
  17. .drilldown a:hover:not(.disabled):not(disabled), .drilldown a:focus:not(.disabled):not(disabled),
  18. .drilldown a:active:not(.disabled):not(disabled), .drilldown a.active,
  19. .dropdown.menu a.button.active {
  20. background-color: var(--color-bg-accent);
  21. color: var(--color-fg-accent) !important;
  22. cursor: pointer;
  23. text-decoration: none !important;
  24. }
  25. .no-select {
  26. /* Thanks to https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css#4407335 */
  27. -webkit-touch-callout: none; /* iOS Safari */
  28. -webkit-user-select: none; /* Safari */
  29. -khtml-user-select: none; /* Konqueror HTML */
  30. -moz-user-select: none; /* Firefox */
  31. -ms-user-select: none; /* Internet Explorer/Edge */
  32. user-select: none; /* Non-prefixed version, currently
  33. supported by Chrome and Opera */
  34. }
  35. .no-border {
  36. border: 0 !important;
  37. }
  38. .hcenter {
  39. justify-content: center;
  40. }
  41. .vcenter {
  42. align-items: center;
  43. }
  44. .left { order: -1; }
  45. .right { order: 1; }
  46. .hide { display: none !important; }
  47. .disabled {
  48. /*pointer-events: none;*/
  49. cursor: default;
  50. }
  51. /* Non-button elements that can be clicked for behavior */
  52. .clickable {
  53. color: var(--color-bg-accent-transparent);
  54. }
  55. .clickable:hover {
  56. color: var(--color-bg-accent);
  57. cursor: pointer;
  58. }
  59. .badge {
  60. background-color: var(--color-bg-alt);
  61. color: var(--color-fg-alt);
  62. }
  63. a:hover .badge, .badge:hover {
  64. background-color: var(--color-bg-accent);
  65. color: var(--color-fg-accent);
  66. }
  67. /* Hide text meant for screen readers */
  68. /* Copied from https://rianrietveld.com/2015/04/04/the-screen-reader-text-class-why-and-how/ */
  69. .sr-text {
  70. border: 0;
  71. clip: rect(1px, 1px, 1px, 1px);
  72. clip-path: inset(50%);
  73. height: 1px;
  74. margin: -1px;
  75. overflow: hidden;
  76. padding: 0;
  77. position: absolute !important;
  78. width: 1px;
  79. word-wrap: normal !important;
  80. /* Not (currently) supported by browsers */
  81. speak: none;
  82. }
  83. @media screen and (max-width: 39.9375em) {
  84. .small-text-right { text-align: right; }
  85. .small-text-center { text-align: center; }
  86. .small-text-left { text-align: left; }
  87. }
  88. @media screen and (min-width: 40em) {
  89. .medium-text-right { text-align: right; }
  90. .medium-text-center { text-align: center; }
  91. .medium-text-left { text-align: left; }
  92. }
  93. @media screen and (min-width: 64em) {
  94. .large-text-right { text-align: right; }
  95. .large-text-center { text-align: center; }
  96. .large-text-left { text-align: left; }
  97. }