/style/app.scss

https://github.com/ajanthanm/cssfilterlab · Sass · 518 lines · 425 code · 77 blank · 16 comment · 0 complexity · a916300ca8e2541cfbcf72f4f09b09a8 MD5 · raw file

  1. /*
  2. * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. @import "src/_utils";
  17. @import "src/_northstar";
  18. @import "src/_styles";
  19. @import "src/_dock";
  20. @import "src/_params";
  21. body {
  22. font: 14px "Source Sans Pro", "source", helvetica, arial, sans-serif;
  23. }
  24. h1,h2,h3,h4,h5,h6 {
  25. color: #000;
  26. font-family: "Source Sans Pro", "source-l", helvetica, arial, sans-serif;
  27. margin: 0;
  28. font-weight: 400;
  29. -webkit-font-smoothing: antialiased;
  30. }
  31. @mixin proportions{
  32. height: 15px;
  33. padding: 15px;
  34. }
  35. html,
  36. body {
  37. width: 100%;
  38. height: 100%;
  39. overflow: hidden;
  40. margin: 0;
  41. padding: 0;
  42. }
  43. /* let link be links */
  44. a:not([class~="button"]):hover {
  45. text-decoration: underline;
  46. }
  47. #components, #main-view, .popup {
  48. display: none;
  49. }
  50. #main-view, #loading {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. #loading > div {
  55. position: absolute;
  56. left: 40px;
  57. right: 40px;
  58. bottom: 45%;
  59. text-align: center;
  60. font-weight: bold;
  61. font-size: 2em;
  62. background: #ccc;
  63. border: 2px solid gray;
  64. border-radius: 20px;
  65. }
  66. .popup {
  67. position: absolute;
  68. top: 0px;
  69. left: 0px;
  70. width: 100%;
  71. height: 100%;
  72. background: rgba(0, 0, 0, 0.3);
  73. z-index: 2000;
  74. p, li {
  75. line-height: 1.3em;
  76. padding-right: 15px;
  77. a{
  78. margin: 0;
  79. }
  80. }
  81. ul{
  82. padding-left: 20px;
  83. }
  84. li + li{
  85. margin-top:5px;
  86. }
  87. .icon-close{
  88. float: right;
  89. margin: -15px -20px 0 0;
  90. }
  91. }
  92. .popup .popup-inner :last-child{
  93. margin-bottom:0;
  94. }
  95. .popup .popup-inner {
  96. margin-left: auto;
  97. margin-right: auto;
  98. width: 500px;
  99. margin-top: -100px;
  100. margin-left: -250px;
  101. background: white;
  102. border-radius: 4px;
  103. border: none;
  104. padding: 30px 35px;
  105. box-shadow: 0 15px 36px rgba(0,0,0,0.6);
  106. position: absolute;
  107. top: 50%;
  108. left: 50%;
  109. z-index: 1999;
  110. }
  111. #logo, #animations-container {
  112. @include flexbox;
  113. @include valign;
  114. padding: 5px 10px 0 15px;
  115. box-sizing: border-box;
  116. overflow: hidden;
  117. -webkit-justify-content: space-between;
  118. h1, h2, h3 {
  119. color: white;
  120. font-size: 24px;
  121. text-shadow: 0 -1px 0 black;
  122. }
  123. > .title.left {
  124. @include flex(1);
  125. margin: -6px 0 0;
  126. }
  127. .experiment {
  128. display: inline-block;
  129. background: url(../img/stamp1.png) no-repeat;
  130. position: relative;
  131. left: 2px;
  132. top: 2px;
  133. width: 78px;
  134. height: 27px;
  135. text-indent: -9999px;
  136. }
  137. .button.drop-down{
  138. min-width: 50px;
  139. text-indent: 2px;
  140. overflow: ellipsis;
  141. }
  142. #active-animation {
  143. min-width: 140px;
  144. }
  145. }
  146. #logo {
  147. border-bottom: 1px solid rgba(0, 0, 0, 0.36);
  148. box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.11);
  149. }
  150. #animations-container {
  151. overflow: hidden;
  152. background: #fff;
  153. border-bottom: 1px solid #fff;
  154. box-shadow: none;
  155. h1, h2, h3 {
  156. margin: 0 auto;
  157. }
  158. }
  159. .container {
  160. @include hbox;
  161. height: 100%;
  162. .content {
  163. @include flex;
  164. }
  165. footer{
  166. @include flexbox;
  167. @include proportions;
  168. height: auto;
  169. margin: auto auto 0 auto;
  170. border-top: 1px solid #d7d7d7;
  171. }
  172. aside {
  173. width: 20%;
  174. min-width: 200px;
  175. }
  176. section {
  177. @include vbox;
  178. @include flex;
  179. }
  180. }
  181. .nav {
  182. @include list-reset;
  183. @include hbox;
  184. margin: auto 0;
  185. li + li{
  186. margin-left: 15px;
  187. }
  188. &.left {
  189. min-width: 320px;
  190. }
  191. }
  192. .panel-right {
  193. position: absolute;
  194. right: 15px;
  195. top: 0px;
  196. bottom: 0px;
  197. left: 320px;
  198. overflow: hidden;
  199. .nav {
  200. position: absolute;
  201. right: 0px;
  202. top: 13px;
  203. }
  204. body.hosted-version & {
  205. right: 74px;
  206. }
  207. }
  208. .modal {
  209. @include box-shadow;
  210. width: 50%;
  211. height: 50%;
  212. min-width: 600px;
  213. position: absolute;
  214. top: 25%;
  215. left: 25%;
  216. footer{
  217. padding: 10px 15px;
  218. -webkit-box-pack: end;
  219. -webkit-justify-content: flex-end;
  220. }
  221. }
  222. aside {
  223. min-width: 250px;
  224. }
  225. #app {
  226. @include user-select(none);
  227. }
  228. #filter-dock {
  229. @include box-shadow;
  230. width: 350px;
  231. height: 70%;
  232. top: 0;
  233. position: absolute;
  234. margin: 0 0 0 -43px;
  235. z-index: 1000;
  236. -webkit-touch-callout: none;
  237. -webkit-user-select: none;
  238. -khtml-user-select: none;
  239. -moz-user-select: none;
  240. -ms-user-select: none;
  241. user-select: none;
  242. }
  243. #filter-dock.hidden {
  244. display: none;
  245. }
  246. .clicks-catcher {
  247. position: absolute;
  248. top: 0;
  249. left: 0;
  250. width: 100%;
  251. height: 100%;
  252. }
  253. #main {
  254. box-sizing: border-box;
  255. padding-top: 30px;
  256. background: #f8f8f8;
  257. }
  258. #container {
  259. @include user-select(auto);
  260. border-radius: 3px;
  261. height: 290px;
  262. width: 600px;
  263. color: white;
  264. position: absolute;
  265. left: 50%;
  266. top: 50%;
  267. margin: -280px 0 0 -340px;
  268. font-size: 16px;
  269. padding: 40px;
  270. border:none;
  271. outline-offset:-15px;
  272. background: #263F51;
  273. background-image:url(../../images/bottomscene.png);
  274. background-position: center bottom;
  275. background-repeat: no-repeat;
  276. padding-bottom: 200px;
  277. p{
  278. line-height: 22px;
  279. }
  280. .content-link {
  281. color: yellow;
  282. }
  283. #multi-col {
  284. @include prefixProperty(column-count, 2);
  285. @include prefixProperty(column-gap, 2em);
  286. height: 400px;
  287. h2{
  288. color: #60C5DF;
  289. font-size: 32px;
  290. margin: 0px;
  291. text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  292. }
  293. }
  294. #svg-img {
  295. display: block;
  296. position: absolute;
  297. right: 20px;
  298. top: 100px;
  299. }
  300. #png-img {
  301. display: block;
  302. margin: auto;
  303. margin-bottom: 2em;
  304. }
  305. #css3-img {
  306. position: absolute;
  307. display: block;
  308. border: 6px solid #33ccff;
  309. background: white;
  310. border-radius: 45px;
  311. padding: 10px;
  312. width: 30px;
  313. height: 30px;
  314. bottom: -30px;
  315. right: 20px;
  316. }
  317. }
  318. .filters-not-supported {
  319. margin: -1px 0 0;
  320. padding: 10px;
  321. background: #5b5e5f;
  322. color: white;
  323. font-size: 12px;
  324. border-top: 1px solid rgba(255,255,255,.05);
  325. border-bottom: 1px solid #444;
  326. .filters-not-supported-help {
  327. color: #4acdfd;
  328. }
  329. }
  330. #github-popup {
  331. .state, .gist-login-failed {
  332. display: none;
  333. }
  334. &.info .state.gist-info,
  335. &.login .state.gist-login,
  336. &.login-failed .gist-login-failed,
  337. &.saving .state.gist-saving,
  338. &.saved .state.gist-result {
  339. display: block;
  340. }
  341. #gist-link{
  342. display: block;
  343. padding-top: 5px;
  344. }
  345. }
  346. .drop-down, .drop-down:hover{
  347. background-image: url(../img/drop-down-triangle.png), linear-gradient(top, #f5f8fa, #e3e5e5);
  348. background-image: url(../img/drop-down-triangle.png), -webkit-gradient(linear, left top, left bottom, from(#f5f8fa), to(#e3e5e5));
  349. background-position: 96% 57%;
  350. background-repeat: no-repeat;
  351. cursor: pointer;
  352. }
  353. .drop-down:active {
  354. background-image: url(../img/drop-down-triangle.png);
  355. background-color: #D3D7D7;
  356. box-shadow: inset 0 1px 0px rgba(0, 0, 0, 0.06);
  357. }
  358. #post-gist-button{
  359. position: absolute;
  360. right: 35px;
  361. top: 6px;
  362. }
  363. .popup section{
  364. float: left;
  365. width: 44%;
  366. border-right: 1px solid #ddd;
  367. padding-right: 4%;
  368. margin-right: 6%;
  369. margin-top: 10px;
  370. & + section{
  371. margin-right: 0;
  372. padding-right: 0;
  373. border: none;
  374. }
  375. strong{
  376. font-family: source-sb;
  377. }
  378. ol{
  379. padding-left: 20px;
  380. }
  381. h3{
  382. font-size: 20px;
  383. padding-left: 30px;
  384. }
  385. }
  386. #browser-popup .popup-inner{
  387. width: 700px;
  388. margin-left: -350px;
  389. margin-top: -200px;
  390. li{
  391. padding-right: 0;
  392. }
  393. section:after{
  394. position: absolute;
  395. top: 55%;
  396. left: 46.5%;
  397. background: white;
  398. padding: 7px 0;
  399. font-style: italic;
  400. font-family: source-l;
  401. -webkit-font-smoothing: antialiased;
  402. content: "or";
  403. text-align: center;
  404. color: gray;
  405. font-size: 2em;
  406. }
  407. section + section:after{
  408. content: none;
  409. }
  410. }
  411. #help-popup{
  412. @include vbox;
  413. -webkit-box-pack: center;
  414. -webkit-box-align: center;
  415. .popup-inner{
  416. margin: 0;
  417. height: 400px;
  418. position: relative;
  419. top: auto;
  420. left: auto;
  421. right: auto;
  422. bottom: auto;
  423. }
  424. article{
  425. margin-top: 25px;
  426. max-height: 250px;
  427. overflow-y: auto;
  428. .button {
  429. vertical-align: middle;
  430. margin-left: 5px;
  431. }
  432. }
  433. }
  434. #help-popup.hidden {
  435. display: none;
  436. }
  437. #fork-github {
  438. a.button {
  439. margin: 5px;
  440. }
  441. }