contextual.theme.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: 6px;
  12. z-index: 500;
  13. }
  14. [dir="rtl"] .contextual {
  15. left: 0;
  16. right: auto;
  17. }
  18. /**
  19. * Contextual region.
  20. */
  21. .contextual-region.focus {
  22. outline: 1px dashed #d6d6d6;
  23. outline-offset: 1px;
  24. }
  25. /**
  26. * Contextual trigger.
  27. */
  28. .contextual .trigger {
  29. background-attachment: scroll;
  30. background-color: #fff;
  31. border: 1px solid #ccc;
  32. border-radius: 13px;
  33. float: right; /* LTR */
  34. margin: 0;
  35. overflow: hidden;
  36. padding: 0 2px;
  37. position: relative;
  38. right: 6px; /* LTR */
  39. cursor: pointer;
  40. }
  41. [dir="rtl"] .contextual .trigger {
  42. float: left;
  43. right: auto;
  44. left: 6px;
  45. }
  46. .contextual.open .trigger {
  47. border: 1px solid #ccc;
  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 #ccc;
  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: 6px; /* LTR */
  68. text-align: left; /* LTR */
  69. top: -1px;
  70. white-space: nowrap;
  71. }
  72. [dir="rtl"] .contextual-region .contextual .contextual-links {
  73. border-radius: 0 4px 4px 4px;
  74. float: left;
  75. left: 6px;
  76. right: auto;
  77. text-align: right;
  78. }
  79. .contextual-region .contextual .contextual-links li {
  80. background-color: #fff;
  81. border: none;
  82. list-style: none;
  83. list-style-image: none;
  84. margin: 0;
  85. padding: 0;
  86. line-height: 100%;
  87. }
  88. .contextual-region .contextual .contextual-links a {
  89. background-color: #fff;
  90. color: #333;
  91. display: block;
  92. font-family: sans-serif;
  93. font-size: small;
  94. line-height: 0.8em;
  95. margin: 0.25em 0;
  96. padding: 0.4em 0.6em;
  97. }
  98. .touchevents .contextual-region .contextual .contextual-links a {
  99. font-size: large;
  100. }
  101. .contextual-region .contextual .contextual-links a,
  102. .contextual-region .contextual .contextual-links a:hover {
  103. text-decoration: none;
  104. }
  105. .no-touchevents .contextual-region .contextual .contextual-links li a:hover {
  106. color: #000;
  107. background: #f7fcff;
  108. }