contextual.theme.css

Styling for contextual module.

File

drupal/core/modules/contextual/css/contextual.theme.css
View source
  1. /**
  2. * @file
  3. * Styling for contextual module.
  4. */
  5. /**
  6. * Contextual links wrappers.
  7. */
  8. .contextual {
  9. position: absolute;
  10. right: 0; /* LTR */
  11. top: 2px;
  12. z-index: 500;
  13. }
  14. /**
  15. * Contextual region.
  16. */
  17. .contextual-region.focus {
  18. outline: 1px dashed #d6d6d6;
  19. outline-offset: 1px;
  20. }
  21. /**
  22. * Contextual trigger.
  23. */
  24. .contextual .trigger {
  25. background-attachment: scroll;
  26. background-color: #fff;
  27. background-image: url(../../../misc/edit.png);
  28. background-position: center center;
  29. background-repeat: no-repeat;
  30. background-size: 16px 16px;
  31. border: 1px solid #ddd;
  32. border-radius: 13px;
  33. box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  34. /* Override the .element-focusable height: auto */
  35. height: 28px !important;
  36. float: right; /* LTR */
  37. margin: 0;
  38. overflow: hidden;
  39. padding: 0 2px;
  40. position: relative;
  41. right: 2px; /* LTR */
  42. /* Override the .element-focusable height: auto */
  43. width: 28px !important;
  44. text-indent: -9999px;
  45. cursor: pointer;
  46. }
  47. .contextual.open .trigger {
  48. border-bottom-color: transparent;
  49. border-radius: 13px 13px 0 0;
  50. box-shadow: none;
  51. z-index: 2;
  52. }
  53. /**
  54. * Contextual links.
  55. *
  56. * The following selectors are heavy to discourage theme overriding.
  57. */
  58. .contextual-region .contextual .contextual-links {
  59. background-color: #fff;
  60. border: 1px solid #ddd;
  61. border-radius: 4px 0 4px 4px; /* LTR */
  62. clear: both;
  63. float: right; /* LTR */
  64. margin: 0;
  65. padding: 0.25em 0;
  66. position: relative;
  67. right: 2px; /* LTR */
  68. text-align: left; /* LTR */
  69. top: -1px;
  70. white-space: nowrap;
  71. }
  72. .contextual-region .contextual .contextual-links li {
  73. background-color: #fff;
  74. border: none;
  75. list-style: none;
  76. list-style-image: none;
  77. margin: 0;
  78. padding: 0;
  79. line-height: 100%;
  80. }
  81. .contextual-region .contextual .contextual-links a {
  82. background-color: #fff;
  83. /* This is an unforetunately necessary use of !important to prevent white
  84. * links on a white background or some similar illegible combination. */
  85. color: #333 !important;
  86. display: block;
  87. font-family: sans-serif;
  88. font-size: small;
  89. line-height: 0.8em;
  90. margin: 0.25em 0;
  91. padding: 0.4em 0.6em;
  92. }
  93. .contextual-region .contextual .contextual-links a,
  94. .contextual-region .contextual .contextual-links a:hover {
  95. text-decoration: none;
  96. }
  97. .no-touch .contextual-region .contextual .contextual-links li a:hover {
  98. color: white;
  99. background-image: -webkit-linear-gradient(rgb(78,159,234) 0%,rgb(65,126,210) 100%);
  100. background-image: linear-gradient(rgb(78,159,234) 0%,rgb(65,126,210) 100%);
  101. }