off-canvas.button.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * @file
  3. * Visual styling for buttons in the off-canvas dialog.
  4. *
  5. * @see seven/css/components/buttons.css
  6. */
  7. #drupal-off-canvas button,
  8. #drupal-off-canvas .button {
  9. margin: 0 0 10px;
  10. padding: 0;
  11. cursor: pointer;
  12. text-decoration: none;
  13. text-transform: none;
  14. border: 0;
  15. box-shadow: none;
  16. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  17. line-height: normal;
  18. -webkit-appearance: none;
  19. -moz-appearance: none;
  20. }
  21. #drupal-off-canvas button.link {
  22. display: inline;
  23. transition: color 0.5s ease;
  24. color: #85bef4;
  25. background: transparent;
  26. font-size: 14px;
  27. }
  28. #drupal-off-canvas button.link:hover,
  29. #drupal-off-canvas button.link:focus {
  30. text-decoration: none;
  31. color: #46a0f5;
  32. }
  33. #drupal-off-canvas input[type="submit"].button {
  34. position: relative;
  35. display: inline-block;
  36. width: 100%;
  37. height: auto;
  38. padding: 4px 20px;
  39. cursor: pointer;
  40. transition: background 0.5s ease;
  41. text-align: center;
  42. color: #f5f5f5;
  43. border: 0;
  44. border-radius: 20em;
  45. background: #777;
  46. font-size: 14px;
  47. font-weight: 600;
  48. }
  49. #drupal-off-canvas input[type="submit"].button:hover,
  50. #drupal-off-canvas input[type="submit"].button:focus,
  51. #drupal-off-canvas input[type="submit"].button:active {
  52. z-index: 10;
  53. text-decoration: none;
  54. color: #fff;
  55. border: 0;
  56. outline: none;
  57. }
  58. #drupal-off-canvas input[type="submit"].button:focus,
  59. #drupal-off-canvas input[type="submit"].button:active {
  60. box-shadow: 0 3px 3px 2px rgba(0, 0, 0, 0.1);
  61. }
  62. #drupal-off-canvas input[type="submit"].button--primary {
  63. margin-top: 15px;
  64. color: #fff;
  65. border: 0;
  66. background: #277abd;
  67. }
  68. #drupal-off-canvas input[type="submit"].button--primary:hover,
  69. #drupal-off-canvas input[type="submit"].button--primary:focus,
  70. #drupal-off-canvas input[type="submit"].button--primary:active {
  71. outline: none;
  72. background: #236aaf;
  73. }
  74. #drupal-off-canvas .button-action:before {
  75. margin-left: -0.2em; /* LTR */
  76. padding-right: 0.2em; /* LTR */
  77. font-size: 14px;
  78. line-height: 16px;
  79. }
  80. [dir="rtl"] #drupal-off-canvas .button-action:before {
  81. margin-right: -0.2em;
  82. margin-left: 0;
  83. padding-right: 0;
  84. padding-left: 0.2em;
  85. }
  86. #drupal-off-canvas .no-touchevents .button--small {
  87. padding: 2px 1em;
  88. font-size: 13px;
  89. }
  90. #drupal-off-canvas .button:disabled,
  91. #drupal-off-canvas .button:disabled:active,
  92. #drupal-off-canvas .button.is-disabled,
  93. #drupal-off-canvas .button.is-disabled:active {
  94. cursor: default;
  95. color: #5c5c5c;
  96. border: 0;
  97. background: #555;
  98. font-weight: normal;
  99. }
  100. #drupal-off-canvas .button--danger {
  101. text-decoration: none;
  102. color: #c72100;
  103. border-radius: 0;
  104. font-weight: 400;
  105. }
  106. #drupal-off-canvas .button--danger:hover,
  107. #drupal-off-canvas .button--danger:focus,
  108. #drupal-off-canvas .button--danger:active {
  109. text-decoration: none;
  110. color: #ff2a00;
  111. text-shadow: none;
  112. }
  113. #drupal-off-canvas .button--danger:disabled,
  114. #drupal-off-canvas .button--danger.is-disabled {
  115. cursor: default;
  116. color: #737373;
  117. }