Publish HTML quickly. https://html.house
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

454 lines
6.2 KiB

  1. @primary: rgb(114, 120, 191);
  2. @secondary: rgb(114, 191, 133);
  3. @subheaders: #444;
  4. body {
  5. margin: 0;
  6. padding: 0;
  7. font-size: 100%;
  8. font-family: Roboto, sans-serif;
  9. color: #111;
  10. h1 {
  11. a {
  12. color: black;
  13. .transition-duration(0.2s);
  14. &:hover {
  15. color: #303030;
  16. }
  17. }
  18. }
  19. h1, h2, h3 {
  20. line-height: 1.2;
  21. }
  22. header {
  23. margin: 0 auto;
  24. padding: 1.15em;
  25. h1 {
  26. display: inline;
  27. }
  28. nav {
  29. display: inline;
  30. margin: 0 1em;
  31. line-height: 2.4em;
  32. span, a {
  33. margin: 0 0 0 1em;
  34. }
  35. a {
  36. color: #999;
  37. &:hover {
  38. text-decoration: underline;
  39. }
  40. }
  41. }
  42. }
  43. &#promo {
  44. div.heading {
  45. margin: 8em 0;
  46. }
  47. div.heading, div.attention-form {
  48. h1 {
  49. font-size: 3.5em;
  50. }
  51. input {
  52. padding-left: 0.75em;
  53. padding-right: 0.75em;
  54. .rounded(.25em);
  55. &[type=email] {
  56. max-width: 16em;
  57. }
  58. &[type=submit] {
  59. padding-left: 1.5em;
  60. padding-right: 1.5em;
  61. .transition(0.2s);
  62. &:hover {
  63. background-color: lighten(@primary, 3%);
  64. }
  65. }
  66. }
  67. }
  68. h2 {
  69. margin-bottom: 0;
  70. font-size: 1.8em;
  71. font-weight: normal;
  72. span.write-as {
  73. color: black;
  74. }
  75. &.soon {
  76. color: lighten(@subheaders, 50%);
  77. span {
  78. &.write-as {
  79. color: lighten(#000, 50%);
  80. }
  81. &.note {
  82. color: lighten(#333, 50%);
  83. font-variant: small-caps;
  84. margin-left: 0.5em;
  85. }
  86. }
  87. }
  88. }
  89. .half-col a + a {
  90. margin-left: 2em;
  91. }
  92. }
  93. footer {
  94. text-align: center;
  95. padding: 0 2em;
  96. margin-bottom: 4em;
  97. a {
  98. text-decoration: none;
  99. .transition-duration(0.2s);
  100. -moz-transition-property: color;
  101. -webkit-transition-property: color;
  102. -o-transition-property: color;
  103. transition-property: color;
  104. + a {
  105. margin-left: 0.8em;
  106. }
  107. &:link, &:visited {
  108. color: #888;
  109. }
  110. &:hover {
  111. color: #666;
  112. }
  113. &.home {
  114. color: #333;
  115. font-weight: bold;
  116. &:hover {
  117. color: #000;
  118. }
  119. }
  120. }
  121. nav {
  122. margin: 3em 0 2em;
  123. }
  124. .made-by {
  125. font-size: 0.86em;
  126. color: #aaa;
  127. }
  128. }
  129. }
  130. #editor, #preview-wrap {
  131. position: absolute;
  132. top: 5em;
  133. bottom: 0;
  134. font-size: 1em;
  135. }
  136. #editor {
  137. right: 50%;
  138. left: 0;
  139. }
  140. #preview-wrap {
  141. left: 50%;
  142. right: 0;
  143. iframe {
  144. position: absolute;
  145. width: 100%;
  146. height: 100%;
  147. border: 0;
  148. }
  149. }
  150. header {
  151. margin: 1em;
  152. }
  153. a {
  154. text-decoration: none;
  155. }
  156. hr {
  157. border: 0;
  158. height: 1px;
  159. background: #ccc;
  160. max-width: 40em;
  161. margin: 4em auto;
  162. text-align: center;
  163. }
  164. textarea, textarea:focus {
  165. border: 0;
  166. }
  167. textarea, textarea:focus, input {
  168. outline: 0;
  169. }
  170. textarea {
  171. position: fixed;
  172. top: 3em;
  173. right: 0;
  174. bottom: 2em;
  175. left: 0;
  176. width: 100%;
  177. padding: 2em 2em 0 2em;
  178. font-size: 2em;
  179. box-sizing: border-box;
  180. resize: none;
  181. }
  182. textarea, pre {
  183. &.norm, &.sans, &.wrap {
  184. line-height: 1.4em;
  185. white-space: pre-wrap; /* CSS 3 */
  186. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  187. white-space: -pre-wrap; /* Opera 4-6 */
  188. white-space: -o-pre-wrap; /* Opera 7 */
  189. word-wrap: break-word; /* Internet Explorer 5.5+ */
  190. }
  191. &.norm {
  192. font-family: Roboto, sans-serif;
  193. }
  194. &.sans {
  195. font-family: 'Open Sans', sans-serif;
  196. }
  197. &.mono, &.code {
  198. max-width: none !important;
  199. }
  200. }
  201. pre, .hljs {
  202. margin: 0;
  203. padding: 0.5em 2em 1.5em;
  204. font-size: 1.2em;
  205. }
  206. input {
  207. padding: 0.5em;
  208. font-family: Roboto, sans-serif;
  209. &[type=submit] {
  210. border: 1px solid @primary;
  211. background: @primary;
  212. color: white;
  213. }
  214. }
  215. #beta {
  216. max-width: 50em;
  217. margin: 0 auto 3em;
  218. font-size: 1.2em;
  219. &.tight {
  220. max-width: 30em;
  221. }
  222. .app {
  223. + .app {
  224. margin-top: 1.5em;
  225. }
  226. h2 {
  227. margin-bottom: 0.25em;
  228. }
  229. p {
  230. margin-top: 0.25em;
  231. }
  232. }
  233. h2.intro {
  234. font-weight: normal;
  235. }
  236. p {
  237. line-height: 1.4;
  238. }
  239. li {
  240. margin: 0.3em 0;
  241. }
  242. h2 {
  243. &.light {
  244. font-weight: normal;
  245. }
  246. a {
  247. .transition-duration(0.2s);
  248. -moz-transition-property: color;
  249. -webkit-transition-property: color;
  250. -o-transition-property: color;
  251. transition-property: color;
  252. &:link, &:visited, &:hover {
  253. color: @subheaders;
  254. }
  255. &:hover {
  256. color: lighten(@subheaders, 10%);
  257. }
  258. }
  259. }
  260. }
  261. #official-writing, #wrapper {
  262. margin: 1em 2em;
  263. h2, h3, h4 {
  264. color: @subheaders;
  265. }
  266. ul {
  267. margin: 0;
  268. padding: 0 0 0 1em;
  269. list-style-position: inside;
  270. line-height: 1.4;
  271. text-indent: -1em;
  272. }
  273. }
  274. #tools {
  275. position: fixed;
  276. bottom: 0;
  277. left: 0;
  278. right: 0;
  279. padding: 1em 2em;
  280. .tool {
  281. display: inline-block;
  282. margin: 0 2em 0 0;
  283. &#status {
  284. color: #666;
  285. &.doing {
  286. font-style: italic;
  287. }
  288. }
  289. }
  290. .mode-wp {
  291. font-family: serif;
  292. }
  293. .mode-typewriter {
  294. font-family: monospace;
  295. }
  296. }
  297. .clearfix {
  298. overflow: auto;
  299. }
  300. .half-col, .half {
  301. float: left;
  302. + .half-col {
  303. margin-left: 4em;
  304. }
  305. }
  306. .half {
  307. width: 50%;
  308. }
  309. .hljs {
  310. overflow-x: inherit;
  311. background: transparent;
  312. }
  313. code {
  314. font-family: monospace, monospace;
  315. font-size: 1em;
  316. }
  317. #wrapper {
  318. max-width: 50em;
  319. }
  320. #official-writing, #wrapper {
  321. h2 {
  322. &.major {
  323. color: #222;
  324. }
  325. &.minor {
  326. font-size: 1.3em;
  327. }
  328. &.bugfix {
  329. font-size: 1.15em;
  330. color: #666;
  331. }
  332. +.android-version {
  333. margin-top: 0;
  334. font-size: 1.1em;
  335. a {
  336. color: #999;
  337. &:hover {
  338. text-decoration: underline;
  339. }
  340. }
  341. }
  342. }
  343. }
  344. @media all and (min-width: 1280px) {
  345. body#promo {
  346. div.heading {
  347. margin: 10em 0;
  348. }
  349. }
  350. }
  351. @media all and (min-width: 1600px) {
  352. body#promo {
  353. div.heading {
  354. margin: 14em 0;
  355. }
  356. }
  357. }
  358. @media all and (max-width: 900px) {
  359. .half-col {
  360. float: none;
  361. text-align: center;
  362. &+.half-col {
  363. margin-top: 3em;
  364. margin-left: 0;
  365. }
  366. }
  367. #beta {
  368. font-size: 1.15em;
  369. }
  370. }
  371. @media all and (max-width: 600px) {
  372. body#promo {
  373. div.heading {
  374. margin: 6em 0;
  375. }
  376. h2 {
  377. font-size: 1.6em;
  378. }
  379. .half-col a + a {
  380. margin-left: 1em;
  381. }
  382. }
  383. }
  384. @media all and (max-height: 500px) {
  385. body#promo {
  386. div.heading {
  387. margin: 5em 0;
  388. }
  389. }
  390. }
  391. @media all and (max-height: 400px) {
  392. body#promo {
  393. div.heading {
  394. margin: 0em 0;
  395. }
  396. }
  397. }
  398. /* Smartphones (portrait and landscape) ----------- */
  399. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  400. header {
  401. .opacity(1);
  402. }
  403. }
  404. /* Smartphones (portrait) ----------- */
  405. @media only screen and (max-width : 320px) {
  406. header {
  407. .opacity(1);
  408. }
  409. }
  410. /* iPads (portrait and landscape) ----------- */
  411. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  412. header {
  413. .opacity(1);
  414. }
  415. }