A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1514 lines
22 KiB

  1. @primary: rgb(114, 120, 191);
  2. @secondary: rgb(114, 191, 133);
  3. @subheaders: #444;
  4. @headerTextColor: black;
  5. @sansFont: 'Open Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
  6. @serifFont: Lora, 'Palatino Linotype', 'Book Antiqua', 'New York', 'DejaVu serif', serif;
  7. @monoFont: Hack, consolas, Menlo-Regular, Menlo, Monaco, 'ubuntu mono', monospace, monospace;
  8. @dangerCol: #e21d27;
  9. @errUrgentCol: #ecc63c;
  10. @proSelectedCol: #71D571;
  11. @textLinkColor: rgb(0, 0, 238);
  12. body {
  13. font-family: @serifFont;
  14. font-size-adjust: 0.5;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. background-color: white;
  18. color: #111;
  19. h1, header h2 {
  20. a {
  21. color: @headerTextColor;
  22. .transition-duration(0.2s);
  23. &:hover {
  24. color: #303030;
  25. text-decoration: none;
  26. }
  27. }
  28. }
  29. h1, h2, h3 {
  30. line-height: 1.2;
  31. }
  32. &#post article, &#collection article p, &#subpage article p {
  33. display: block;
  34. unicode-bidi: embed;
  35. white-space: pre;
  36. }
  37. &#post {
  38. #wrapper, pre {
  39. max-width: 40em;
  40. margin: 0 auto;
  41. a:hover {
  42. text-decoration: underline;
  43. }
  44. }
  45. blockquote {
  46. p + p {
  47. margin: -2em 0 0.5em;
  48. }
  49. }
  50. article {
  51. margin-bottom: 2em !important;
  52. h1, h2, h3, h4, h5, h6, p, ul, ol, code {
  53. display: inline;
  54. margin: 0;
  55. }
  56. hr + p, ol, ul {
  57. display: block;
  58. margin-top: -1rem;
  59. margin-bottom: -1rem;
  60. }
  61. ol, ul {
  62. margin: 2rem 0 -1rem;
  63. ol, ul {
  64. margin: 1.25rem 0 -0.5rem;
  65. }
  66. }
  67. li {
  68. margin-top: -0.5rem;
  69. margin-bottom: -0.5rem;
  70. }
  71. h2#title {
  72. .article-title;
  73. }
  74. h1 {
  75. font-size: 1.5em;
  76. }
  77. h2 {
  78. font-size: 1.17em;
  79. }
  80. }
  81. header {
  82. nav {
  83. span, a {
  84. &.pinned {
  85. &.selected {
  86. font-weight: bold;
  87. }
  88. &+.views {
  89. margin-left: 2em;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .owner-visible {
  96. display: none;
  97. }
  98. }
  99. &#post, &#collection, &#subpage {
  100. code {
  101. .article-code;
  102. }
  103. img, video, audio {
  104. max-width: 100%;
  105. }
  106. audio {
  107. width: 100%;
  108. white-space: initial;
  109. }
  110. pre {
  111. .code-block;
  112. code {
  113. background: transparent;
  114. border: 0;
  115. padding: 0;
  116. font-size: 1em;
  117. white-space: pre-wrap; /* CSS 3 */
  118. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  119. white-space: -pre-wrap; /* Opera 4-6 */
  120. white-space: -o-pre-wrap; /* Opera 7 */
  121. word-wrap: break-word; /* Internet Explorer 5.5+ */
  122. }
  123. }
  124. blockquote {
  125. .article-blockquote;
  126. }
  127. article {
  128. hr {
  129. margin-top: 0;
  130. margin-bottom: 0;
  131. }
  132. p.badge {
  133. background-color: #aaa;
  134. display: inline-block;
  135. padding: 0.25em 0.5em;
  136. margin: 0;
  137. float: right;
  138. color: white;
  139. .rounded(.25em);
  140. }
  141. }
  142. header {
  143. nav {
  144. span, a {
  145. &.pinned {
  146. &+.pinned {
  147. margin-left: 1.5em;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. footer {
  154. nav {
  155. a {
  156. margin-top: 0;
  157. }
  158. }
  159. }
  160. }
  161. &#collection {
  162. #welcome, .access {
  163. margin: 0 auto;
  164. max-width: 35em;
  165. h2 {
  166. font-weight: normal;
  167. margin-bottom: 1em;
  168. }
  169. p {
  170. font-size: 1.2em;
  171. line-height: 1.6;
  172. }
  173. }
  174. .access {
  175. margin: 8em auto;
  176. text-align: center;
  177. h2, ul.errors {
  178. font-size: 1.2em;
  179. margin-bottom: 1.5em !important;
  180. }
  181. }
  182. header {
  183. padding: 0 1em;
  184. text-align: center;
  185. max-width: 50em;
  186. margin: 3em auto 4em;
  187. .writeas-prefix {
  188. a {
  189. color: #aaa;
  190. }
  191. display: block;
  192. margin-bottom: 0.5em;
  193. }
  194. nav {
  195. display: block;
  196. margin: 1em 0;
  197. a:first-child {
  198. margin: 0;
  199. }
  200. }
  201. }
  202. nav#manage {
  203. position: absolute;
  204. top: 1em;
  205. left: 1.5em;
  206. li a.write {
  207. font-family: @serifFont;
  208. padding-top: 0.2em;
  209. padding-bottom: 0.2em;
  210. }
  211. }
  212. pre {
  213. line-height: 1.5;
  214. }
  215. }
  216. &#subpage {
  217. #wrapper {
  218. h1 {
  219. font-size: 2.5em;
  220. letter-spacing: -2px;
  221. padding: 0 2rem 2rem;
  222. }
  223. }
  224. }
  225. &#post {
  226. pre {
  227. font-size: 0.75em;
  228. }
  229. }
  230. &#collection, &#subpage {
  231. #wrapper {
  232. margin-left: auto;
  233. margin-right: auto;
  234. article {
  235. margin-bottom: 4em;
  236. &:hover {
  237. .hidden {
  238. .opacity(1);
  239. }
  240. }
  241. }
  242. h2 {
  243. margin-top: 0em;
  244. margin-bottom: 0.25em;
  245. &+time {
  246. display: block;
  247. margin-top: 0.25em;
  248. margin-bottom: 0.25em;
  249. }
  250. }
  251. time {
  252. font-size: 1.1em;
  253. &+p {
  254. margin-top: 0.25em;
  255. }
  256. }
  257. footer {
  258. text-align: left;
  259. padding: 0;
  260. }
  261. }
  262. #paging {
  263. overflow: visible;
  264. padding: 1em 6em 0;
  265. }
  266. a.read-more {
  267. color: #666;
  268. }
  269. }
  270. &#me #official-writing {
  271. h2 {
  272. font-weight: normal;
  273. a {
  274. font-size: 0.6em;
  275. margin-left: 1em;
  276. }
  277. a[name] {
  278. margin-left: 0;
  279. }
  280. a:link, a:visited {
  281. color: @textLinkColor;
  282. }
  283. a:hover {
  284. text-decoration: underline;
  285. }
  286. }
  287. }
  288. &#promo {
  289. div.heading {
  290. margin: 8em 0;
  291. }
  292. div.heading, div.attention-form {
  293. h1 {
  294. font-size: 3.5em;
  295. }
  296. input {
  297. padding-left: 0.75em;
  298. padding-right: 0.75em;
  299. &[type=email] {
  300. max-width: 16em;
  301. }
  302. &[type=submit] {
  303. padding-left: 1.5em;
  304. padding-right: 1.5em;
  305. }
  306. }
  307. }
  308. h2 {
  309. margin-bottom: 0;
  310. font-size: 1.8em;
  311. font-weight: normal;
  312. span.write-as {
  313. color: black;
  314. }
  315. &.soon {
  316. color: lighten(@subheaders, 50%);
  317. span {
  318. &.write-as {
  319. color: lighten(#000, 50%);
  320. }
  321. &.note {
  322. color: lighten(#333, 50%);
  323. font-variant: small-caps;
  324. margin-left: 0.5em;
  325. }
  326. }
  327. }
  328. }
  329. .half-col a {
  330. margin-left: 1em;
  331. margin-right: 1em;
  332. }
  333. }
  334. nav#top-nav {
  335. display: inline;
  336. position: absolute;
  337. top: 1.5em;
  338. right: 1.5em;
  339. font-size: 0.95rem;
  340. font-family: @sansFont;
  341. text-transform: uppercase;
  342. a {
  343. color: #777;
  344. }
  345. a + a {
  346. margin-left: 1em;
  347. }
  348. }
  349. footer {
  350. nav, ul {
  351. a {
  352. display: inline-block;
  353. margin-top: 0.8em;
  354. .transition-duration(0.1s);
  355. text-decoration: none;
  356. + a {
  357. margin-left: 0.8em;
  358. }
  359. &:link, &:visited {
  360. color: #999;
  361. }
  362. &:hover {
  363. color: #666;
  364. text-decoration: none;
  365. }
  366. }
  367. }
  368. a.home {
  369. &:link, &:visited {
  370. color: #333;
  371. }
  372. font-weight: bold;
  373. text-decoration: none;
  374. &:hover {
  375. color: #000;
  376. }
  377. }
  378. ul {
  379. list-style: none;
  380. text-align: left;
  381. padding-left: 0 !important;
  382. margin-left: 0 !important;
  383. .icons img {
  384. height: 16px;
  385. width: 16px;
  386. fill: #999;
  387. }
  388. }
  389. }
  390. }
  391. nav#full-nav {
  392. margin: 0;
  393. .left-side {
  394. display: inline-block;
  395. a:first-child {
  396. margin-left: 0;
  397. }
  398. }
  399. .right-side {
  400. float: right;
  401. }
  402. }
  403. nav#full-nav a.simple-btn, .tool button {
  404. font-family: @sansFont;
  405. border: 1px solid #ccc !important;
  406. padding: .5rem 1rem;
  407. margin: 0;
  408. .rounded(.25em);
  409. text-decoration: none;
  410. }
  411. .post-title {
  412. a {
  413. &:link {
  414. color: #333;
  415. }
  416. &:visited {
  417. color: #444;
  418. }
  419. }
  420. time, time a:link, time a:visited, &+.time {
  421. color: #999;
  422. }
  423. }
  424. .hidden {
  425. -moz-transition-property: opacity;
  426. -webkit-transition-property: opacity;
  427. -o-transition-property: opacity;
  428. transition-property: opacity;
  429. .transition-duration(0.4s);
  430. .opacity(0);
  431. }
  432. a {
  433. text-decoration: none;
  434. &:hover {
  435. text-decoration: underline;
  436. }
  437. &.subdued {
  438. color: #999;
  439. &:hover {
  440. border-bottom: 1px solid #999;
  441. text-decoration: none;
  442. }
  443. }
  444. &.danger {
  445. color: @dangerCol;
  446. font-size: 0.86em;
  447. }
  448. &.simple-cta {
  449. text-decoration: none;
  450. border-bottom: 1px solid #ccc;
  451. color: #333;
  452. padding-bottom: 2px;
  453. &:hover {
  454. text-decoration: none;
  455. }
  456. }
  457. &.action-btn {
  458. font-family: @sansFont;
  459. text-transform: uppercase;
  460. .rounded(.25em);
  461. background-color: red;
  462. color: white;
  463. font-weight: bold;
  464. padding: 0.5em 0.75em;
  465. &:hover {
  466. background-color: lighten(#f00, 5%);
  467. text-decoration: none;
  468. }
  469. }
  470. &.hashtag:hover {
  471. text-decoration: none;
  472. span + span {
  473. text-decoration: underline;
  474. }
  475. }
  476. &.hashtag {
  477. span:first-child {
  478. color: #999;
  479. margin-right: 0.1em;
  480. font-size: 0.86em;
  481. text-decoration: none;
  482. }
  483. }
  484. }
  485. abbr {
  486. border-bottom: 1px dotted #999;
  487. text-decoration: none;
  488. cursor: help;
  489. }
  490. body#collection article p, body#subpage article p {
  491. .article-p;
  492. }
  493. pre, body#post article, body#collection article, body#subpage article, body#subpage #wrapper h1 {
  494. max-width: 40rem;
  495. margin: 0 auto;
  496. }
  497. textarea, pre, body#post article, body#collection article p {
  498. &.norm, &.sans, &.wrap {
  499. line-height: 1.4em;
  500. white-space: pre-wrap; /* CSS 3 */
  501. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  502. white-space: -pre-wrap; /* Opera 4-6 */
  503. white-space: -o-pre-wrap; /* Opera 7 */
  504. word-wrap: break-word; /* Internet Explorer 5.5+ */
  505. }
  506. }
  507. textarea, pre, body#post article, body#collection article, body#subpage article, span, .font {
  508. &.norm {
  509. font-family: @serifFont;
  510. }
  511. &.sans {
  512. font-family: @sansFont;
  513. }
  514. &.mono, &.wrap, &.code {
  515. font-family: @monoFont;
  516. }
  517. &.mono, &.code {
  518. max-width: none !important;
  519. }
  520. }
  521. textarea {
  522. &.section {
  523. border: 1px solid #ccc;
  524. padding: 0.65em 0.75em;
  525. .rounded(.25em);
  526. &.codable {
  527. height: 12em;
  528. resize: vertical;
  529. }
  530. }
  531. }
  532. .ace_editor {
  533. height: 12em;
  534. border: 1px solid #333;
  535. max-width: initial;
  536. width: 100%;
  537. font-size: 0.86em !important;
  538. border: 1px solid #ccc;
  539. padding: 0.65em 0.75em;
  540. margin: 0;
  541. .rounded(.25em);
  542. }
  543. p {
  544. -webkit-font-smoothing: antialiased;
  545. -moz-osx-font-smoothing: grayscale;
  546. &.intro {
  547. font-size: 1.25em;
  548. text-align: center;
  549. }
  550. &.upgrade-prompt {
  551. font-size: 0.9em;
  552. color: #444;
  553. }
  554. &.text-cta {
  555. font-size: 1.2em;
  556. text-align: center;
  557. margin-bottom: 0.5em;
  558. &+ p {
  559. text-align: center;
  560. font-size: 0.7em;
  561. margin-top: 0;
  562. color: #666;
  563. }
  564. }
  565. &.error {
  566. font-style: italic;
  567. color: @errUrgentCol;
  568. }
  569. &.headeresque {
  570. font-size: 2em;
  571. }
  572. }
  573. table.classy {
  574. width: 95%;
  575. border-collapse: collapse;
  576. margin-bottom: 2em;
  577. tr + tr {
  578. border-top: 1px solid #ccc;
  579. }
  580. th {
  581. text-transform: uppercase;
  582. font-weight: normal;
  583. font-size: 95%;
  584. font-family: @sansFont;
  585. padding: 1rem 0.75rem;
  586. text-align: center;
  587. }
  588. td {
  589. height: 3.5rem;
  590. }
  591. p {
  592. margin-top: 0 !important;
  593. margin-bottom: 0 !important;
  594. }
  595. &.export {
  596. .disabled {
  597. color: #999;
  598. }
  599. .disabled, a {
  600. text-transform: lowercase;
  601. }
  602. }
  603. }
  604. body#collection article, body#subpage article {
  605. padding-top: 0;
  606. padding-bottom: 0;
  607. .book {
  608. h2 {
  609. font-size: 1.4em;
  610. }
  611. a.hidden.action {
  612. color: #666;
  613. float: right;
  614. font-size: 1em;
  615. margin-left: 1em;
  616. margin-bottom: 1em;
  617. }
  618. }
  619. }
  620. body#post article {
  621. p.badge {
  622. font-size: 0.9em;
  623. }
  624. }
  625. article {
  626. h2.post-title a[rel=nofollow]::after {
  627. content: '\a0 \2934';
  628. }
  629. }
  630. table.downloads {
  631. width: 100%;
  632. td {
  633. text-align: center;
  634. }
  635. img.os {
  636. width: 48px;
  637. vertical-align: middle;
  638. margin-bottom: 6px;
  639. }
  640. }
  641. select.inputform, textarea.inputform {
  642. border: 1px solid #999;
  643. }
  644. input, button, select.inputform, textarea.inputform {
  645. padding: 0.5em;
  646. font-family: @serifFont;
  647. font-size: 100%;
  648. .rounded(.25em);
  649. &[type=submit], &.submit {
  650. border: 1px solid @primary;
  651. background: @primary;
  652. color: white;
  653. .transition(0.2s);
  654. &:hover {
  655. background-color: lighten(@primary, 3%);
  656. }
  657. &:disabled {
  658. cursor: default;
  659. background-color: desaturate(@primary, 100%) !important;
  660. border-color: desaturate(@primary, 100%) !important;
  661. }
  662. }
  663. &.error[type=text], textarea.error {
  664. -webkit-transition: all 0.30s ease-in-out;
  665. -moz-transition: all 0.30s ease-in-out;
  666. -ms-transition: all 0.30s ease-in-out;
  667. -o-transition: all 0.30s ease-in-out;
  668. outline: none;
  669. }
  670. &.danger {
  671. border: 1px solid @dangerCol;
  672. background: @dangerCol;
  673. color: white;
  674. &:hover {
  675. background-color: lighten(@dangerCol, 3%);
  676. }
  677. }
  678. &.error[type=text]:focus, textarea.error:focus {
  679. box-shadow: 0 0 5px @errUrgentCol;
  680. border: 1px solid @errUrgentCol;
  681. }
  682. }
  683. div.flat-select {
  684. display: inline-block;
  685. position: relative;
  686. select {
  687. border: 0;
  688. background: 0;
  689. -webkit-appearance: none;
  690. -moz-appearance: none;
  691. appearance: none;
  692. position: absolute;
  693. top: 0;
  694. left: 0;
  695. right: 0;
  696. bottom: 0;
  697. width: 100%;
  698. height: 100%;
  699. opacity: 0;
  700. }
  701. &.action {
  702. &:hover {
  703. label {
  704. text-decoration: underline;
  705. }
  706. }
  707. label, select {
  708. cursor: pointer;
  709. }
  710. }
  711. }
  712. input {
  713. &.underline{
  714. border: none;
  715. border-bottom: 1px solid #ccc;
  716. padding: 0 .2em .2em;
  717. font-size: 0.9em;
  718. color: #333;
  719. }
  720. &.inline {
  721. padding: 0.2rem 0.2rem;
  722. margin-left: 0;
  723. font-size: 1em;
  724. border: 0 !important;
  725. border-bottom: 1px solid #999 !important;
  726. width: 7em;
  727. .rounded(0);
  728. }
  729. &[type=tel], &[type=text], &[type=email], &[type=password] {
  730. border: 1px solid #999;
  731. }
  732. &.boxy {
  733. border: 1px solid #999 !important;
  734. }
  735. }
  736. #beta, .content-container {
  737. max-width: 50em;
  738. margin: 0 auto 3em;
  739. font-size: 1.2em;
  740. &.tight {
  741. max-width: 30em;
  742. }
  743. &.snug {
  744. max-width: 40em;
  745. }
  746. &.regular {
  747. font-size: 1em;
  748. }
  749. .app {
  750. + .app {
  751. margin-top: 1.5em;
  752. }
  753. h2 {
  754. margin-bottom: 0.25em;
  755. }
  756. p {
  757. margin-top: 0.25em;
  758. }
  759. }
  760. h2.intro {
  761. font-weight: normal;
  762. }
  763. p {
  764. line-height: 1.4;
  765. }
  766. li {
  767. margin: 0.3em 0;
  768. }
  769. h2 {
  770. &.light {
  771. font-weight: normal;
  772. }
  773. a {
  774. .transition-duration(0.2s);
  775. -moz-transition-property: color;
  776. -webkit-transition-property: color;
  777. -o-transition-property: color;
  778. transition-property: color;
  779. &:link, &:visited, &:hover {
  780. color: @subheaders;
  781. }
  782. &:hover {
  783. color: lighten(@subheaders, 10%);
  784. text-decoration: none;
  785. }
  786. }
  787. }
  788. }
  789. .content-container {
  790. &#pricing {
  791. button {
  792. cursor: pointer;
  793. color: white;
  794. margin-top: 1em;
  795. margin-bottom: 1em;
  796. padding-left: 1.5em;
  797. padding-right: 1.5em;
  798. border: 0;
  799. background: @primary;
  800. .rounded(.25em);
  801. .transition(0.2s);
  802. &:hover {
  803. background-color: lighten(@primary, 5%);
  804. }
  805. &.unselected {
  806. cursor: pointer;
  807. }
  808. }
  809. h2 span {
  810. font-weight: normal;
  811. }
  812. .half {
  813. margin: 0 0 1em 0;
  814. text-align: center;
  815. }
  816. }
  817. div.features {
  818. margin-top: 1.5em;
  819. text-align: center;
  820. font-size: 0.86em;
  821. ul {
  822. text-align: left;
  823. max-width: 26em;
  824. margin-left: auto !important;
  825. margin-right: auto !important;
  826. li.soon, span.soon {
  827. color: lighten(#111, 40%);
  828. }
  829. }
  830. }
  831. div.blurbs {
  832. >h2 {
  833. text-align: center;
  834. color: #333;
  835. font-weight: normal;
  836. }
  837. p.price {
  838. font-size: 1.2em;
  839. margin-bottom: 0;
  840. color: #333;
  841. margin-top: 0.5em;
  842. &+p {
  843. margin-top: 0;
  844. font-size: 0.8em;
  845. }
  846. }
  847. p.text-cta {
  848. font-size: 1em;
  849. }
  850. }
  851. }
  852. footer div.blurbs {
  853. display: flex;
  854. flex-flow: row;
  855. flex-wrap: wrap;
  856. }
  857. div.blurbs {
  858. .half, .third, .fourth {
  859. font-size: 0.86em;
  860. h3 {
  861. font-weight: normal;
  862. }
  863. p, ul {
  864. color: #595959;
  865. }
  866. hr {
  867. margin: 1em 0;
  868. }
  869. }
  870. .half {
  871. padding: 0 1em 0 0;
  872. width: ~"calc(50% - 1em)";
  873. &+.half {
  874. padding: 0 0 0 1em;
  875. }
  876. }
  877. .third {
  878. padding: 0;
  879. width: ~"calc(33% - 1em)";
  880. &+.third {
  881. padding: 0 0 0 1em;
  882. }
  883. }
  884. .fourth {
  885. flex: 1 1 25%;
  886. -webkit-flex: 1 1 25%;
  887. h3 {
  888. margin-bottom: 0.5em;
  889. }
  890. ul {
  891. margin-top: 0.5em;
  892. }
  893. }
  894. }
  895. .contain-me {
  896. text-align: left;
  897. margin: 0 auto 4em;
  898. max-width: 50em;
  899. h2 + p, h2 + p + p, p.describe-me {
  900. margin-left: 1.5em;
  901. margin-right: 1.5em;
  902. color: #333;
  903. }
  904. }
  905. footer.contain-me {
  906. font-size: 1.1em;
  907. }
  908. #official-writing, #wrapper {
  909. h2, h3, h4 {
  910. color: @subheaders;
  911. }
  912. ul {
  913. &.collections {
  914. margin-left: 0;
  915. li {
  916. &.collection {
  917. a.title {
  918. &:link, &:visited {
  919. color: @headerTextColor;
  920. }
  921. }
  922. }
  923. a.create {
  924. color: #444;
  925. }
  926. }
  927. & + p {
  928. margin-top: 2em;
  929. margin-left: 1em;
  930. }
  931. }
  932. }
  933. }
  934. #official-writing, #wrapper {
  935. h2 {
  936. &.major {
  937. color: #222;
  938. }
  939. &.bugfix {
  940. color: #666;
  941. }
  942. +.android-version {
  943. a {
  944. color: #999;
  945. &:hover {
  946. text-decoration: underline;
  947. }
  948. }
  949. }
  950. }
  951. }
  952. li {
  953. line-height: 1.4;
  954. .item-desc, .prog-lang {
  955. font-size: 0.6em;
  956. font-family: 'Open Sans', sans-serif;
  957. font-weight: bold;
  958. margin-left: 0.5em;
  959. margin-right: 0.5em;
  960. text-transform: uppercase;
  961. color: #999;
  962. }
  963. }
  964. .success {
  965. color: darken(@proSelectedCol, 20%);
  966. }
  967. .alert {
  968. padding: 1em;
  969. margin-bottom: 1.25em;
  970. border: 1px solid transparent;
  971. .rounded(.25em);
  972. &.info {
  973. color: #31708f;
  974. background-color: #d9edf7;
  975. border-color: #bce8f1;
  976. }
  977. &.success {
  978. color: #3c763d;
  979. background-color: #dff0d8;
  980. border-color: #d6e9c6;
  981. }
  982. p {
  983. margin: 0;
  984. &+p {
  985. margin-top: 0.5em;
  986. }
  987. }
  988. p.dismiss {
  989. font-family: @sansFont;
  990. text-align: right;
  991. font-size: 0.86em;
  992. text-transform: uppercase;
  993. }
  994. }
  995. ul.errors {
  996. padding: 0;
  997. text-indent: 0;
  998. li.urgent {
  999. list-style: none;
  1000. font-style: italic;
  1001. text-align: center;
  1002. color: @errUrgentCol;
  1003. a:link, a:visited {
  1004. color: purple;
  1005. }
  1006. }
  1007. li.info {
  1008. list-style: none;
  1009. font-size: 1.1em;
  1010. text-align: center;
  1011. }
  1012. }
  1013. body#pad #target a.upgrade-prompt {
  1014. padding-left: 1em;
  1015. padding-right: 1em;
  1016. text-align: center;
  1017. font-style: italic;
  1018. color: @primary;
  1019. }
  1020. body#pad-sub #posts, .atoms {
  1021. margin-top: 1.5em;
  1022. h3 {
  1023. margin-bottom: 0.25em;
  1024. &+ h4 {
  1025. margin-top: 0.25em;
  1026. margin-bottom: 0.5em;
  1027. &+ p {
  1028. margin-top: 0.5em;
  1029. }
  1030. }
  1031. .electron {
  1032. font-weight: normal;
  1033. margin-left: 0.5em;
  1034. }
  1035. }
  1036. h3, h4 {
  1037. a {
  1038. .transition-duration(0.2s);
  1039. -moz-transition-property: color;
  1040. -webkit-transition-property: color;
  1041. -o-transition-property: color;
  1042. transition-property: color;
  1043. }
  1044. }
  1045. h4 {
  1046. font-size: 0.9em;
  1047. font-weight: normal;
  1048. }
  1049. date, .electron {
  1050. margin-right: 0.5em;
  1051. }
  1052. .action {
  1053. font-size: 1em;
  1054. }
  1055. #more-posts p {
  1056. text-align: center;
  1057. font-size: 1.1em;
  1058. }
  1059. p {
  1060. font-size: 0.86em;
  1061. }
  1062. .error {
  1063. display: inline-block;
  1064. font-size: 0.8em;
  1065. font-style: italic;
  1066. color: @errUrgentCol;
  1067. strong {
  1068. font-style: normal;
  1069. }
  1070. }
  1071. .error + nav {
  1072. display: inline-block;
  1073. font-size: 0.8em;
  1074. margin-left: 1em;
  1075. a + a {
  1076. margin-left: 0.75em;
  1077. }
  1078. }
  1079. }
  1080. h2 {
  1081. a, time {
  1082. &+.action {
  1083. margin-left: 0.5em;
  1084. }
  1085. }
  1086. }
  1087. .action {
  1088. font-size: 0.7em;
  1089. font-weight: normal;
  1090. font-family: @serifFont;
  1091. &+ .action {
  1092. margin-left: 0.5em;
  1093. }
  1094. &.new-post {
  1095. font-weight: bold;
  1096. }
  1097. }
  1098. article.moved {
  1099. p {
  1100. font-size: 1.2em;
  1101. color: #999;
  1102. }
  1103. }
  1104. span.as {
  1105. .opacity(0.2);
  1106. font-weight: normal;
  1107. }
  1108. span.ras {
  1109. .opacity(0.6);
  1110. font-weight: normal;
  1111. }
  1112. header {
  1113. nav {
  1114. .username {
  1115. font-size: 2em;
  1116. font-weight: normal;
  1117. color: #555;
  1118. }
  1119. &#user-nav {
  1120. margin-left: 0;
  1121. & > a, .tabs > a {
  1122. &.selected {
  1123. cursor: default;
  1124. font-weight: bold;
  1125. &:hover {
  1126. text-decoration: none;
  1127. }
  1128. }
  1129. & + a {
  1130. margin-left: 2em;
  1131. }
  1132. }
  1133. a {
  1134. font-size: 1.2em;
  1135. font-family: @sansFont;
  1136. span {
  1137. font-size: 0.7em;
  1138. color: #999;
  1139. text-transform: uppercase;
  1140. margin-left: 0.5em;
  1141. margin-right: 0.5em;
  1142. }
  1143. &.title {
  1144. font-size: 1.6em;
  1145. font-family: @serifFont;
  1146. font-weight: bold;
  1147. }
  1148. }
  1149. nav > ul > li:first-child {
  1150. &> a {
  1151. display: inline-block;
  1152. }
  1153. img {
  1154. position: relative;
  1155. top: -0.5em;
  1156. right: 0.3em;
  1157. }
  1158. }
  1159. ul ul {
  1160. font-size: 0.8em;
  1161. a {
  1162. padding-top: 0.25em;
  1163. padding-bottom: 0.25em;
  1164. }
  1165. }
  1166. li {
  1167. line-height: 1.5;
  1168. }
  1169. }
  1170. &.tabs {
  1171. margin: 0 0 0 1em;
  1172. }
  1173. &+ nav.tabs {
  1174. margin: 0;
  1175. }
  1176. }
  1177. &.singleuser {
  1178. margin: 0.5em 0.25em;
  1179. nav#user-nav {
  1180. nav > ul > li:first-child {
  1181. img {
  1182. top: -0.75em;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .dash-nav {
  1188. font-weight: bold;
  1189. }
  1190. }
  1191. li#create-collection {
  1192. display: none;
  1193. h4 {
  1194. margin-top: 0px;
  1195. margin-bottom: 0px;
  1196. }
  1197. input[type=submit] {
  1198. margin-left: 0.5em;
  1199. }
  1200. }
  1201. #collection-options {
  1202. .option {
  1203. textarea {
  1204. font-size: 0.86em;
  1205. font-family: @monoFont;
  1206. }
  1207. .section > p.explain {
  1208. font-size: 0.8em;
  1209. }
  1210. }
  1211. }
  1212. .img-placeholder {
  1213. text-align: center;
  1214. img {
  1215. max-width: 100%;
  1216. }
  1217. }
  1218. dl {
  1219. &.admin-dl-horizontal {
  1220. dt {
  1221. font-weight: bolder;
  1222. width: 360px;
  1223. }
  1224. dd {
  1225. line-height: 1.5;
  1226. }
  1227. }
  1228. }
  1229. dt {
  1230. float: left;
  1231. clear: left;
  1232. overflow: hidden;
  1233. text-overflow: ellipsis;
  1234. white-space: nowrap;
  1235. }
  1236. form {
  1237. dt, dd {
  1238. padding: 0.5rem 0;
  1239. }
  1240. dt {
  1241. line-height: 1.8;
  1242. }
  1243. dd {
  1244. font-size: 0.86em;
  1245. line-height: 2;
  1246. }
  1247. }
  1248. div.row {
  1249. display: flex;
  1250. align-items: center;
  1251. > div {
  1252. flex: 1;
  1253. }
  1254. }
  1255. @media all and (max-width: 450px) {
  1256. body#post {
  1257. header {
  1258. nav {
  1259. .xtra-feature {
  1260. display: none;
  1261. }
  1262. }
  1263. }
  1264. }
  1265. }
  1266. @media all and (min-width: 1280px) {
  1267. body#promo {
  1268. div.heading {
  1269. margin: 10em 0;
  1270. }
  1271. }
  1272. }
  1273. @media all and (min-width: 1600px) {
  1274. body#promo {
  1275. div.heading {
  1276. margin: 14em 0;
  1277. }
  1278. }
  1279. }
  1280. @media all and (max-width: 900px) {
  1281. .half.big {
  1282. padding: 0 !important;
  1283. width: 100% !important;
  1284. }
  1285. .third {
  1286. padding: 0 !important;
  1287. float: none;
  1288. width: 100% !important;
  1289. p.introduction {
  1290. font-size: 0.86em;
  1291. }
  1292. }
  1293. div.blurbs {
  1294. .fourth {
  1295. flex: 1 1 15em;
  1296. -webkit-flex: 1 1 15em;
  1297. }
  1298. }
  1299. .blurbs .third, .blurbs .half {
  1300. p, ul {
  1301. text-align: left;
  1302. }
  1303. }
  1304. .half-col, .big {
  1305. float: none;
  1306. text-align: center;
  1307. &+.half-col, &+.big {
  1308. margin-top: 4em !important;
  1309. margin-left: 0;
  1310. }
  1311. }
  1312. #beta, .content-container {
  1313. font-size: 1.15em;
  1314. }
  1315. }
  1316. @media all and (max-width: 600px) {
  1317. div.row {
  1318. flex-direction: column;
  1319. }
  1320. .half {
  1321. padding: 0 !important;
  1322. width: 100% !important;
  1323. }
  1324. .third {
  1325. width: 100% !important;
  1326. float: none;
  1327. }
  1328. body#promo {
  1329. div.heading {
  1330. margin: 6em 0;
  1331. }
  1332. h2 {
  1333. font-size: 1.6em;
  1334. }
  1335. .half-col a + a {
  1336. margin-left: 1em;
  1337. }
  1338. .half-col a.channel {
  1339. margin-left: auto !important;
  1340. margin-right: auto !important;
  1341. }
  1342. }
  1343. ul.add-integrations {
  1344. li {
  1345. display: list-item;
  1346. &+ li {
  1347. margin-left: 0;
  1348. }
  1349. }
  1350. }
  1351. }
  1352. @media all and (max-height: 500px) {
  1353. body#promo {
  1354. div.heading {
  1355. margin: 5em 0;
  1356. }
  1357. }
  1358. }
  1359. @media all and (max-height: 400px) {
  1360. body#promo {
  1361. div.heading {
  1362. margin: 0em 0;
  1363. }
  1364. }
  1365. }
  1366. /* Smartphones (portrait and landscape) ----------- */
  1367. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  1368. header {
  1369. .opacity(1);
  1370. }
  1371. }
  1372. /* Smartphones (portrait) ----------- */
  1373. @media only screen and (max-width : 320px) {
  1374. .content-container#pricing {
  1375. .half {
  1376. float: none;
  1377. width: 100%;
  1378. }
  1379. }
  1380. header {
  1381. .opacity(1);
  1382. }
  1383. }
  1384. /* iPads (portrait and landscape) ----------- */
  1385. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  1386. header {
  1387. .opacity(1);
  1388. }
  1389. }
  1390. @media (pointer: coarse) {
  1391. body footer nav a:not(.pubd) {
  1392. padding: 0.8em 1em;
  1393. margin-left: 0;
  1394. margin-top: 0;
  1395. }
  1396. }
  1397. @media print {
  1398. h1 {
  1399. page-break-before: always;
  1400. }
  1401. h1, h2, h3, h4, h5, h6 {
  1402. page-break-after: avoid;
  1403. }
  1404. table, figure {
  1405. page-break-inside: avoid;
  1406. }
  1407. header, footer {
  1408. display: none;
  1409. }
  1410. article#post-body {
  1411. margin-top: 2em;
  1412. margin-left: 0;
  1413. margin-right: 0;
  1414. }
  1415. hr {
  1416. border: 1px solid #ccc;
  1417. }
  1418. }
  1419. .code-block {
  1420. padding: 0;
  1421. max-width: 100%;
  1422. margin: 0;
  1423. background: #f8f8f8;
  1424. border: 1px solid #ccc;
  1425. padding: 0.375em 0.625em;
  1426. font-size: 0.86em;
  1427. .rounded(.25em);
  1428. }
  1429. pre.code-block {
  1430. overflow-x: auto;
  1431. }