typography.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. @import "vars";
  2. @import "mixins";
  3. #font,
  4. #style {
  5. top: 0px;
  6. .select-list {background-color: transparent; }
  7. }
  8. #font {
  9. .font-header {
  10. background: rgba(0,0,0,0.025);
  11. }
  12. #font-search {border-bottom: 2px solid rgba(0,0,0,0.0125);
  13. .input {padding-left: 25px; }
  14. position: relative;
  15. }
  16. .select-list {
  17. li {
  18. font-size: 20px;
  19. > a,
  20. > span {
  21. }
  22. &:hover {
  23. > span {padding-right: 40px; }
  24. .fav-toggle {
  25. display: block;
  26. &:hover {opacity: 1;
  27. color: white;
  28. }
  29. }
  30. }
  31. .fav-toggle {
  32. color: $medium;
  33. display: none;
  34. position: absolute;
  35. right: 10px;
  36. top: 0;
  37. &:before {
  38. height: 38px !important;
  39. line-height: 38px !important;
  40. }
  41. }
  42. }
  43. }
  44. //.overflow-y-scroll {top: 93px; }
  45. .tabs-switcher {
  46. padding: 15px 20px;
  47. padding-bottom: 0;
  48. ul {
  49. display: table;
  50. width: 100%;
  51. padding: 0;
  52. }
  53. li {
  54. display: table-cell;
  55. span {
  56. padding: 8px 10px;
  57. text-align: center;
  58. text-transform: uppercase;
  59. font-size: 10px;
  60. display: block;
  61. cursor: pointer;
  62. }
  63. color: $dark;
  64. border-right: 2px solid transparent;
  65. background-color: rgba(0,0,0,0.1);
  66. -webkit-background-clip: padding-box;
  67. -moz-background-clip: padding-box;
  68. background-clip: padding-box;
  69. &:first-child {
  70. border-top-left-radius: 30px;
  71. border-bottom-left-radius: 30px;
  72. padding-left: 6px;
  73. }
  74. &:last-child {
  75. padding-right: 6px;
  76. border-top-right-radius: 30px;
  77. border-bottom-right-radius: 30px;
  78. border: none;
  79. }
  80. &.active {
  81. background-color: rgba(0,0,0,0.25);
  82. color: $light;
  83. }
  84. }
  85. }
  86. }
  87. #typography {
  88. #format {
  89. top: 54px;
  90. /* As of August 2012, only supported in Chrome 21+ */
  91. display: -webkit-flex;
  92. flex-direction: column;
  93. .select-list {background-color: transparent; }
  94. .overflow-y-scroll {
  95. flex: 1;
  96. position: relative;
  97. }
  98. .actions {
  99. padding: 15px 20px;
  100. height: 80px;
  101. }
  102. }
  103. .btn-more,
  104. .btn-less {
  105. position: absolute;
  106. &:active .icon {
  107. opacity: 1;
  108. }
  109. .icon {
  110. color: white;
  111. opacity: 0.2;
  112. }
  113. }
  114. #alignment {padding-top: 10px; }
  115. #styles{padding-bottom: 10px; }
  116. #font-style,
  117. #font-face {
  118. padding: 10px;
  119. }
  120. #font-face {padding-bottom: 0; }
  121. #font-style {padding-top: 0; }
  122. #type-ratio {
  123. @include clearfix();
  124. margin: auto;
  125. padding-top: 20px;
  126. width: 100%;
  127. text-align: center;
  128. position: relative;
  129. #type-ratio-toggle {
  130. position: absolute;
  131. bottom: 0px;
  132. left: 50%;
  133. margin-left: -30px;
  134. opacity: 0.25;
  135. &:hover {
  136. opacity: 0.4;
  137. }
  138. }
  139. #font-size {
  140. > label {right: 0px; text-align: center; }
  141. > .icon {right: 0px; }
  142. .btn-more, .btn-less { left: 0px;}
  143. }
  144. #line-height {
  145. > label { left: 0px; text-align: center; }
  146. > .icon { left: 0px; }
  147. .btn-more, .btn-less { right: 0px;}
  148. }
  149. #font-size {text-align: right; }
  150. #font-size .form-group {padding-right: 0px;}
  151. #line-height {text-align: left; }
  152. #line-height .form-group {padding-left: 0px;}
  153. #font-size,
  154. #line-height {
  155. display: inline-block;
  156. width: 50%;
  157. .fader {
  158. position: relative;
  159. height: 140px;
  160. width: 40px;
  161. display: inline-block;
  162. background-color: rgba(0,0,0,0.25);
  163. border-radius: 30px;
  164. margin: 2px;
  165. margin-bottom: 15px;
  166. .fader-constraint {
  167. width: 100%;
  168. height: auto;
  169. position: absolute;
  170. top: 20px;
  171. bottom: 20px;
  172. cursor: -webkit-grab; cursor: -moz-grab;
  173. &:active {
  174. cursor: -webkit-grabbing; cursor: -moz-grabbing;
  175. }
  176. }
  177. .fader-indicator {
  178. background-color: rgba(40,140,215,1);
  179. border-radius: 30px;
  180. width: 40px;
  181. position: absolute;
  182. bottom: 0px;
  183. margin: 0px;
  184. // min-height: 40px;
  185. padding-bottom: 40px;
  186. pointer-events: none;
  187. @include box-sizing(content-box);
  188. }
  189. .fader-selector {
  190. cursor: ns-resize;
  191. position: absolute;
  192. margin-top: -22px;
  193. pointer-events: none;
  194. }
  195. .fader-selector:active {
  196. .value {color: $light; }
  197. }
  198. }
  199. .form-group {
  200. margin-bottom: 7px;
  201. }
  202. .btn-more {top: 0px; }
  203. .btn-less {bottom: 60px; }
  204. .value {
  205. cursor: ns-resize;
  206. height: 44px;
  207. line-height: 44px;
  208. display: block;
  209. width: 100px;
  210. padding: 0 16px;
  211. font-size: 16px;
  212. font-size: 22px;
  213. color: $medium;
  214. position: absolute;
  215. text-align: center;
  216. top: 0px;
  217. }
  218. }
  219. }
  220. #tracking {
  221. text-align: center;
  222. white-space: nowrap;
  223. position: relative;
  224. .a,
  225. .b {
  226. font-size: 22px;
  227. display: inline-block;
  228. color: $medium;
  229. width: 32px;
  230. height: 60px;
  231. line-height: 60px;
  232. vertical-align: middle;
  233. opacity: 0.4;
  234. }
  235. .arrow-left,
  236. .arrow-right {
  237. background-color: $medium;
  238. height: 2px;
  239. width: 20px;
  240. display: inline-block;
  241. vertical-align: middle;
  242. opacity: 0.4;
  243. position: relative;
  244. &:after {
  245. content: "";
  246. position: absolute;
  247. top: -4px;
  248. right: 0;
  249. margin: 0;
  250. width: 0;
  251. height: 0;
  252. border-width: 5px;
  253. border-style: solid;
  254. border-color: transparent;
  255. pointer-events: none !important;
  256. }
  257. }
  258. .arrow-left:after { right: 100%; border-right-color: $medium; }
  259. .arrow-right:after { left: 100%; border-left-color: $medium; }
  260. .value {
  261. background-color: $dark;
  262. cursor: ew-resize;
  263. height: 60px;
  264. width: 26px;
  265. left: 50%;
  266. margin-left: -13px;
  267. line-height: 60px;
  268. display: inline-block;
  269. font-size: 22px;
  270. color: $medium;
  271. position: absolute;
  272. bottom: 0px;
  273. &:active {color: $light; }
  274. }
  275. }
  276. }