You are here

lingotek.navbar.css in Lingotek Translation 7.3

Same filename and directory in other branches
  1. 7.4 style/lingotek.navbar.css

Responsive preview icon styling.

File

style/lingotek.navbar.css
View source
  1. /**
  2. * @file
  3. * Responsive preview icon styling.
  4. */
  5. .navbar-tab-lingotek .icon:before,
  6. .lingotek .icon:before {
  7. background-attachment: scroll;
  8. background-color: transparent;
  9. background-image: url("../images/ico_navbar.png");
  10. background-repeat: no-repeat;
  11. content: '';
  12. display: block;
  13. position: absolute;
  14. z-index: 1;
  15. }
  16. .navbar .bar .navbar-tab-lingotek .icon:before {
  17. width: 27px;
  18. }
  19. .lingotek a.icon {
  20. background-color: transparent;
  21. border: 0;
  22. font-size: 1em;
  23. }
  24. /* Toolbar icon. */
  25. .navbar .bar .icon.icon-lingotek {
  26. margin-left: 0;
  27. margin-right: 0;
  28. padding-left: 0;
  29. padding-right: 0;
  30. width: 6em;
  31. }
  32. .navbar-tab-lingotek .icon.icon-lingotek:before {
  33. background-position: center top;
  34. }
  35. .navbar-tab-lingotek.open .icon-lingotek:before,
  36. .navbar-tab-lingotek .icon-lingotek.active:before,
  37. .navbar-tab-lingotek .icon-lingotek:hover:before {
  38. background-position: center -22px;
  39. }
  40. .navbar .bar .navbar-tab-lingotek .icon-lingotek:before {
  41. left: 1em; /* LTR */
  42. height: 22px;
  43. top: 0.6667em;
  44. }
  45. .navbar .navbar-tab-lingotek.tab .options .device.icon-active {
  46. padding-left: 2.25em;
  47. }
  48. .navbar .navbar-tab-lingotek.tab .options .device.icon-active:before {
  49. background-position: -999px -999px;
  50. }
  51. .navbar .navbar-tab-lingotek.tab .options .device.icon-active.active:before {
  52. background-position: center -110px;
  53. }
  54. @media only screen and (min-width: 16.5em) {
  55. .navbar .navbar-tab-lingotek.tab .options .device.icon-active {
  56. padding: 0.5em 1.3333em 0.5em 2.25em;
  57. text-indent: 0;
  58. width: auto;
  59. }
  60. .navbar .navbar-tab-lingotek.tab .options .device.icon-active:before {
  61. left: 0.667em;
  62. }
  63. }
  64. .navbar-tab-lingotek {
  65. display: none;
  66. }
  67. /* At narrow screen widths, float the tab to the left so it falls in line with
  68. * the rest of the navbar tabs. */
  69. .js .navbar .bar .navbar-tab-lingotek.tab {
  70. display: block;
  71. float: right; /* LTR */
  72. position: relative;
  73. }
  74. .navbar-tab-lingotek .trigger {
  75. display: block;
  76. }
  77. /* Device preview options. */
  78. .navbar-tab-lingotek .item-list {
  79. display: none;
  80. position: absolute;
  81. white-space: nowrap;
  82. z-index: 1;
  83. }
  84. .navbar-tab-lingotek.open .item-list {
  85. display: block;
  86. }
  87. .js .navbar-tab-lingotek.tab .options li {
  88. float: none;
  89. }
  90. /**
  91. * Toolbar tab.
  92. */
  93. .navbar-tab-lingotek .options {
  94. background-color: #0f0f0f;
  95. }
  96. /* Device preview options. */
  97. .navbar-tab-lingotek .options {
  98. box-shadow: 0 0.8em 2.5em -0.8em rgba(0, 0, 0, 0.75);
  99. }
  100. .navbar-tab-lingotek .options li {
  101. background-color: white;
  102. padding: 0;
  103. }
  104. .navbar-tab-lingotek .trigger {
  105. cursor: pointer;
  106. line-height: 1;
  107. height: 3em;
  108. }
  109. .navbar-tab-lingotek .trigger:hover {
  110. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  111. background-image: linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  112. }
  113. .navbar-tab-lingotek .trigger.active,
  114. .navbar-tab-lingotek .trigger.active:hover {
  115. background-image: -webkit-linear-gradient(top, rgb(78,159,234) 0%, rgb(69,132,221) 100%);
  116. background-image: linear-gradient(rgb(78,159,234) 0%,rgb(69,132,221) 100%);
  117. }
  118. .navbar-tab-lingotek .trigger,
  119. .navbar-tab-lingotek .options .device {
  120. padding-bottom: 1em;
  121. padding-top: 1em;
  122. }
  123. .navbar-tab-lingotek .options .device {
  124. background: none;
  125. border: none;
  126. cursor: pointer;
  127. font-family: inherit;
  128. font-size: 1em;
  129. padding: 0.5em 1.3333em
  130. }
  131. .navbar .navbar-tab-lingotek.tab .options .device {
  132. color: #777;
  133. }
  134. .navbar .navbar-tab-lingotek.tab .options .device:hover,
  135. .navbar .navbar-tab-lingotek.tab .options .device.active {
  136. color: black;
  137. }
  138. /* Toolbar tab triangle toggle. */
  139. .navbar-tab-lingotek .trigger:after {
  140. border-bottom-color: transparent;
  141. border-left-color: transparent;
  142. border-right-color: transparent;
  143. border-style: solid;
  144. border-width: 0.4545em 0.4em 0;
  145. color: #a0a0a0;
  146. content: ' ';
  147. display: block;
  148. height: 0;
  149. line-height: 0;
  150. overflow: hidden;
  151. position: absolute;
  152. right: 1.6667em; /* LTR */
  153. top: 50%;
  154. margin-top: -0.1666em;
  155. width: 0;
  156. z-index: 1
  157. }
  158. .navbar-tab-lingotek.open:before {
  159. background-color: white;
  160. bottom: 0;
  161. content: ' ';
  162. display: block;
  163. position: absolute;
  164. right: 0; /* LTR */
  165. top: 0;
  166. width: 2em;
  167. z-index: 1;
  168. }
  169. .navbar-tab-lingotek.open .trigger:after {
  170. border-bottom: 0.4545em solid;
  171. border-top-color: transparent;
  172. color: black;
  173. right: 0.7em; /* LTR */
  174. top: 1.25em;
  175. }
  176. .navbar-tab-lingotek:hover .trigger:after,
  177. .navbar-tab-lingotek .trigger.active:after,
  178. .navbar-tab-lingotek:hover .trigger.active:after {
  179. color: white;
  180. }
  181. .navbar-tab-navbar.open:hover .trigger:after {
  182. color: black;
  183. }