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. -webkit-appearance: none;
  10. -moz-appearance: none;
  11. margin: 0 0 10px;
  12. padding: 0;
  13. border: 0;
  14. box-shadow: none;
  15. font-family: "Lucida Grande", 'Lucida Sans Unicode', 'liberation sans', sans-serif;
  16. line-height: normal;
  17. text-transform: none;
  18. text-decoration: none;
  19. cursor: pointer;
  20. }
  21. #drupal-off-canvas button.link {
  22. display: inline;
  23. background: transparent;
  24. font-size: 14px;
  25. color: #85bef4;
  26. transition: color 0.5s ease;
  27. }
  28. #drupal-off-canvas button.link:hover,
  29. #drupal-off-canvas button.link:focus {
  30. color: #46a0f5;
  31. text-decoration: none;
  32. }
  33. #drupal-off-canvas input[type="submit"].button {
  34. display: inline-block;
  35. position: relative;
  36. width: 100%;
  37. height: auto;
  38. padding: 4px 20px;
  39. border: 0;
  40. border-radius: 20em;
  41. background: #777;
  42. font-weight: 600;
  43. font-size: 14px;
  44. color: #f5f5f5;
  45. text-align: center;
  46. cursor: pointer;
  47. transition: background 0.5s ease;
  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. border: 0;
  53. color: #fff;
  54. text-decoration: none;
  55. outline: none;
  56. z-index: 10;
  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. border: 0;
  64. background: #277abd;
  65. color: #fff;
  66. margin-top: 15px;
  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. background: #236aaf;
  72. outline: none;
  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. font-size: 13px;
  88. padding: 2px 1em;
  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. border: 0;
  95. background: #555;
  96. color: #5c5c5c;
  97. font-weight: normal;
  98. cursor: default;
  99. }
  100. #drupal-off-canvas .button--danger {
  101. border-radius: 0;
  102. color: #c72100;
  103. font-weight: 400;
  104. text-decoration: none;
  105. }
  106. #drupal-off-canvas .button--danger:hover,
  107. #drupal-off-canvas .button--danger:focus,
  108. #drupal-off-canvas .button--danger:active {
  109. color: #ff2a00;
  110. text-decoration: none;
  111. text-shadow: none;
  112. }
  113. #drupal-off-canvas .button--danger:disabled,
  114. #drupal-off-canvas .button--danger.is-disabled {
  115. color: #737373;
  116. cursor: default;
  117. }