ZeroBlog.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /* Design based on medium */
  2. body { background-color: white; color: #333332; margin: 10px; padding: 0px; font-family: 'Roboto', sans-serif; height: 15000px; overflow: hidden; backface-visibility: hidden }
  3. body.loaded { height: auto; overflow: auto }
  4. h1, h2, h3, h4 { font-family: 'Roboto', sans-serif; font-weight: normal; margin: 0px; padding: 0px }
  5. h1 { font-size: 32px; line-height: 1.2em; font-weight: bold; letter-spacing: -0.5px; margin-bottom: 5px }
  6. h2 { margin-top: 2em }
  7. h3 { font-size: 24px; margin-top: 2em }
  8. h1 + h2, h2 + h3 { margin-top: inherit }
  9. p { margin-top: 0.9em; margin-bottom: 0.9em }
  10. hr { margin: 20px 0px; border: none; border-bottom: 1px solid #eee; margin-left: auto; margin-right: auto; width: 120px; }
  11. small { font-size: 80%; color: #999; }
  12. a { border-bottom: 1px solid #3498db; text-decoration: none; color: black; font-weight: bold }
  13. a.nolink { border-bottom: none }
  14. a:hover { color: #3498db }
  15. .button {
  16. padding: 5px 10px; margin-left: 10px; background-color: #DDE0E0; border-bottom: 2px solid #999998; background-position: left center;
  17. border-radius: 2px; text-decoration: none; transition: all 0.5s ease-out; color: #333
  18. }
  19. .button:hover { background-color: #FFF400; border-color: white; border-bottom: 2px solid #4D4D4C; transition: none; color: inherit }
  20. .button:active { position: relative; top: 1px }
  21. /*.button-delete { background-color: #e74c3c; border-bottom-color: #A83F34; color: white }*/
  22. .button-outline { background-color: white; color: #CACACA; border: 1px solid #eee }
  23. .button-delete:hover { background-color: #FF5442; border: 1px solid #FF5442; color: white }
  24. .button-ok:hover { background-color: #27AE60; border: 1px solid #27AE60; color: white }
  25. .button.loading {
  26. color: rgba(0,0,0,0); background: #999 url(../img/loading.gif) no-repeat center center;
  27. transition: all 0.5s ease-out; pointer-events: none; border-bottom: 2px solid #666
  28. }
  29. .button.publish { background-color: #2ecc71; border-color: #2ecc71; color: white }
  30. .button.publish:hover { background-color: #35D679; border-color: #35D679 }
  31. .cancel { margin-left: 10px; font-size: 80%; color: #999; }
  32. .template { display: none }
  33. /* Editable */
  34. .editable { outline: none }
  35. .editable-edit:hover { opacity: 1; border: none; color: #333 }
  36. .editable-edit {
  37. opacity: 0; float: left; margin-top: 0px; margin-left: -40px; padding: 8px 20px; transition: all 0.3s; width: 0px; display: inline-block; padding-right: 0px;
  38. color: rgba(100,100,100,0.5); text-decoration: none; font-size: 18px; font-weight: normal; border: none;
  39. }
  40. /*.editing { white-space: pre-wrap; z-index: 1; position: relative; outline: 10000px solid rgba(255,255,255,0.9) !important; }
  41. .editing p { margin: 0px; padding: 0px }*/ /* IE FIX */
  42. .editor { width: 100%; display: block; overflow :hidden; resize: none; border: none; box-sizing: border-box; z-index: 900; position: relative }
  43. .editor:focus { border: 0px; outline-offset: 0px }
  44. .editbg {
  45. display: none; width: 100%; height: 100%; position: fixed; opacity: 0; background-color: white; transition: opacity 0.5s;
  46. left: 0px; top: 0px; z-index: 500; backface-visibility: hidden;
  47. }
  48. /* -- Editbar -- */
  49. .bottombar {
  50. display: none; position: fixed; padding: 10px 20px; opacity: 0; background-color: rgba(255,255,255,0.9);
  51. right: 30px; bottom: 0px; z-index: 999; transition: all 0.3s; transform: translateY(50px)
  52. }
  53. .bottombar.visible { transform: translateY(0px); opacity: 1 }
  54. .publishbar { z-index: 990}
  55. .publishbar.visible { display: inline-block; }
  56. .editbar { perspective: 900px }
  57. .markdown-help {
  58. position: absolute; bottom: 30px; transform: translateX(0px) rotateY(-40deg); transform-origin: right; right: 0px;
  59. list-style-type: none; background-color: rgba(255,255,255,0.9); padding: 10px; opacity: 0; transition: all 0.6s; display: none
  60. }
  61. .markdown-help.visible { transform: none; opacity: 1 }
  62. .markdown-help li { margin: 10px 0px }
  63. .markdown-help code { font-size: 100% }
  64. .icon-help { border: 1px solid #EEE; padding: 2px; display: inline-block; width: 17px; text-align: center; font-size: 13px; margin-right: 6px; vertical-align: 1px }
  65. .icon-help.active { background-color: #EEE }
  66. /* -- Left -- */
  67. .left { float: left; position: absolute; width: 220px; padding-left: 20px; padding-right: 20px; margin-top: 60px; text-align: right }
  68. .right { float: left; padding-left: 60px; margin-left: 240px; max-width: 700px; padding-right: 60px; padding-top: 60px }
  69. .left .avatar {
  70. background-color: #F0F0F0; width: 60px; height: 60px; border-radius: 100%; margin-bottom: 10px;
  71. background-position: center center; background-size: 70%; display: inline-block; image-rendering: pixelated;
  72. }
  73. .left h1 a.nolink { font-family: Tinos; display: inline-block; padding: 1px }
  74. .left h1 a.editable-edit { float: none }
  75. .left h2 { font-size: 15px; font-family: Tinos; line-height: 1.6em; color: #AAA; margin-top: 14px; letter-spacing: 0.2px }
  76. .left ul, .left li { padding: 0px; margin: 0px; list-style-type: none; line-height: 2em }
  77. .left hr { margin-left: 100px; margin-right: 0px; width: auto }
  78. /*.left .links { width: 230px; margin-left: -60px }*/
  79. .left .links.editor { text-align: left !important }
  80. .lastcomments { background-color: #FAFAFA; margin-left: -25px; padding-right: 15px; padding-bottom: 5px; padding-top: 3px; margin-top: 40px; margin-right: -15px; display: none }
  81. .lastcomments h3 { margin-top: 20px; }
  82. .lastcomments .lastcomment { font-size: 85%; margin-top: 20px; margin-bottom: 30px; margin-left: 20px; overflow: hidden }
  83. .lastcomments .lastcomment .user_name { font-weight: bold; }
  84. .lastcomments .lastcomment .details { font-size: 90%; }
  85. .lastcomments .lastcomment .details .at { color: #999 }
  86. .lastcomments .lastcomment .details .postlink { border-bottom: 1px solid #BBB; }
  87. /* -- Post -- */
  88. .posts .new { display: none; position: absolute; top: -50px; margin-left: 0px; left: 50%; transform: translateX(-50%) }
  89. .posts, .post-full { display: none; position: relative; }
  90. .page-main .posts { display: block }
  91. .page-post.loaded .post-full { display: block; border-bottom: none }
  92. .post { margin-bottom: 50px; padding-bottom: 50px; border-bottom: 1px solid #eee; min-width: 500px }
  93. .post .title a { text-decoration: none; color: inherit; display: inline-block; border-bottom: none; font-weight: inherit }
  94. .posts .title a:visited { color: #666969 }
  95. .post .details { color: #BBB; margin-top: 5px; margin-bottom: 20px }
  96. .post .details .comments-num { border: none; color: #BBB; font-weight: normal; }
  97. .post .details .comments-num .num { border-bottom: 1px solid #eee; color: #000; }
  98. .post .details .comments-num:hover .num { border-bottom: 1px solid #D6A1DE; }
  99. .post .details .like { display: inline-block; padding: 5px 5px; margin-top: -6px; border-radius: 7px; border: none; font-weight: normal; transition: all 0.3s }
  100. .post .details .like .icon-heart:before, .post .details .like .icon-heart:after { background-color: #CCC; transition: all 0.3s }
  101. .post .details .like .icon-heart { transform-style: preserve-3d; transition: all 0.3s }
  102. .post .details .like:hover .icon-heart { transform: scale(1.1) }
  103. .post .details .like:hover .icon-heart:before, .post .details .like:hover .icon-heart:after { background-color: #FF5442 }
  104. .post .details .like.active .icon-heart:before, .post .details .like.active .icon-heart:after { background-color: #FF5442 }
  105. .post .details .like.active .icon-heart-anim { transform: scale(1.8); opacity: 0; transition: all 1s ease-in-out }
  106. .post .details .like .num { margin-left: 21px; color: #CCC; transition: all 0.3s }
  107. .post .details .like:hover .num { color: #FA6C8D }
  108. .post .details .like.loading { pointer-events: none; animation: bounce .3s infinite alternate ease-out; animation-delay: 1s; }
  109. .post .body { font-size: 21.5px; line-height: 1.6; font-family: Tinos; margin-top: 20px }
  110. .post .body h1 { text-align: center; margin-top: 50px }
  111. .post .body h1:before { content: " "; border-top: 1px solid #EEE; width: 120px; display: block; margin-left: auto; margin-right: auto; margin-bottom: 50px; }
  112. .post .body p + ul { margin-top: -0.5em }
  113. .post .body li { margin-top: 0.5em; margin-bottom: 0.5em }
  114. .post .body hr:first-of-type { display: none }
  115. .post .body a img { margin-bottom: -8px }
  116. .post .body img { max-width: 100% }
  117. code {
  118. background-color: #f5f5f5; border: 1px solid #ccc; padding: 0px 5px; overflow: auto; border-radius: 2px; display: inline-block;
  119. color: #444; font-weight: normal; font-size: 13px; vertical-align: text-bottom; border-bottom-width: 2px;
  120. }
  121. .post .body pre { table-layout: fixed; width: auto; display: table; white-space: normal; }
  122. .post .body pre code { padding: 10px 20px; white-space: pre; max-width: 850px }
  123. blockquote { border-left: 3px solid #333; margin-left: 0px; padding-left: 1em }
  124. /*.post .more {
  125. display: inline-block; border: 1px solid #eee; padding: 10px 25px; border-radius: 26px; font-size: 11px; color: #AAA; font-weight: normal;
  126. left: 50%; position: relative; transform: translateX(-50%);
  127. }*/
  128. .post .more { border: 2px solid #333; padding: 10px 20px; font-size: 15px; margin-top: 30px; display: none; transition: all 0.3s }
  129. .post .more .readmore { }
  130. .post .more:hover { color: white; box-shadow: inset 150px 0px 0px 0px #333; }
  131. .post .more:active { color: white; box-shadow: inset 150px 0px 0px 0px #AF3BFF; transition: none; border-color: #AF3BFF }
  132. .pager { margin-bottom: 200px }
  133. .pager a { border: 2px solid #333; padding: 10px 20px; font-size: 15px; display: none; transition: all 0.3s }
  134. .pager a:hover { color: white; box-shadow: inset 150px 0px 0px 0px #333; }
  135. .pager a:active { color: white; box-shadow: inset 150px 0px 0px 0px #AF3BFF; transition: none; border-color: #AF3BFF }
  136. .pager .next { float: right }
  137. .pager .prev:hover { box-shadow: inset -150px 0px 0px 0px #333; }
  138. .pager .prev:active { box-shadow: inset -150px 0px 0px 0px #AF3BFF; }
  139. /* Score */
  140. /*
  141. .score {
  142. border: 1px solid #eee; margin-right: 5px; margin-left: 5px; padding: 2px 7px; border-radius: 10px; color: #AAA; background-position: left center; font-weight: bold; font-size: 12px;
  143. display: inline-block; height: 1.2em; overflow: hidden; vertical-align: -0.5em; line-height: 7px; transition: background-color 0.3s; height: 20px; box-sizing: border-box
  144. }
  145. .score-active, .score-inactive { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; margin-top: 3px }
  146. .score-active { display: block; margin-top: 5px }
  147. .score.active { background-color: #2ecc71; color: white }
  148. .score.loading {
  149. color: rgba(255,255,255,0) !important; background: #2ecc71 url(../img/loading.gif) no-repeat center center;
  150. transition: background 0.5s ease-out; pointer-events: none; border: 1px solid #2ecc71
  151. }
  152. .score.active .score-inactive, .score:hover .score-inactive { transform: translateY(-14px); opacity: 0.5 }
  153. .score.active .score-active, .score:hover .score-active { transform: translateY(-14px) }
  154. .score:hover, .score.active { border: 1px solid #2ecc71; color: #AAA; }
  155. .score:active { border: 1px solid #AAA !important; transform: translateY(1px) }
  156. .noscore .score-inactive .icon-up { margin-left: 6px }
  157. .noscore .score-inactive .score-num { display: none }
  158. */
  159. @keyframes bounce {
  160. 0% { transform: translateY(0); }
  161. 100% { transform: translateY(-3px); }
  162. }