style.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /*
  2. * -- BASE STYLES --
  3. * Most of these are inherited from Base, but I want to change a few.
  4. */
  5. body {
  6. color: #333;
  7. }
  8. a {
  9. text-decoration: none;
  10. color: #1b98f8;
  11. }
  12. pre {
  13. overflow-x: auto;
  14. border-radius: 4px;
  15. }
  16. /*
  17. * -- LAYOUT STYLES --
  18. * This layout consists of three main elements, `#nav` (navigation bar), `#list` (email list), and `#main` (email content). All 3 elements are within `#layout`
  19. */
  20. #layout, #nav, #list, #main {
  21. margin: 0;
  22. padding: 0;
  23. }
  24. /* Make the navigation 100% width on phones */
  25. #nav {
  26. width: 100%;
  27. height: 40px;
  28. position: relative;
  29. background: rgb(37, 42, 58);
  30. text-align: center;
  31. }
  32. /* Show the "Menu" button on phones */
  33. #nav .nav-menu-button {
  34. display: block;
  35. top: 0.5em;
  36. right: 0.5em;
  37. position: absolute;
  38. }
  39. /* When "Menu" is clicked, the navbar should be 80% height */
  40. #nav.active {
  41. height: 80%;
  42. }
  43. /* Don't show the navigation items... */
  44. .nav-inner {
  45. display: none;
  46. }
  47. /* ...until the "Menu" button is clicked */
  48. #nav.active .nav-inner {
  49. display: block;
  50. padding: 2em 0;
  51. }
  52. /*
  53. * -- NAV BAR STYLES --
  54. * Styling the default .pure-menu to look a little more unique.
  55. */
  56. #nav .pure-menu {
  57. background: transparent;
  58. border: none;
  59. text-align: left;
  60. }
  61. #nav .pure-menu-link:hover,
  62. #nav .pure-menu-link:focus {
  63. background: rgb(55, 60, 90);
  64. }
  65. #nav .pure-menu-link {
  66. color: #fff;
  67. margin-left: 0.5em;
  68. }
  69. #nav .pure-menu-heading {
  70. border-bottom: none;
  71. font-size:110%;
  72. color: rgb(75, 113, 151);
  73. }
  74. /* Item Styles */
  75. .item {
  76. padding: 0.9em 1em;
  77. border-bottom: 1px solid #ddd;
  78. border-left: 6px solid transparent;
  79. cursor: pointer;
  80. }
  81. .avatar {
  82. border-radius: 3px;
  83. margin-right: 0.5em;
  84. }
  85. .name,
  86. .subject {
  87. margin: 0;
  88. }
  89. .name {
  90. text-transform: uppercase;
  91. color: #999;
  92. }
  93. .desc {
  94. font-size: 80%;
  95. margin: 0.4em 0;
  96. }
  97. .item-selected {
  98. background: #eee;
  99. border-left: 6px solid #1b98f8;
  100. }
  101. /* Content Styles */
  102. .content-header, .content-body, .content-footer {
  103. padding: 1em 2em;
  104. }
  105. .content-header {
  106. border-bottom: 1px solid #ddd;
  107. }
  108. .content-title {
  109. margin: 0.5em 0 0;
  110. }
  111. .content-subtitle {
  112. font-size: 1em;
  113. margin: 0;
  114. font-weight: normal;
  115. }
  116. .content-subtitle span {
  117. color: #999;
  118. }
  119. .content-controls {
  120. margin-top: 2em;
  121. text-align: right;
  122. }
  123. .content-controls .pure-button-variant {
  124. margin-bottom: 0.3em;
  125. color: white;
  126. /*border-radius: 4px;*/
  127. text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  128. }
  129. .pure-button-variant-success {
  130. background: rgb(28, 184, 65);
  131. /* this is a green */
  132. }
  133. .pure-button-variant-error {
  134. background: rgb(202, 60, 60);
  135. /* this is a maroon */
  136. }
  137. .pure-button-variant-warning {
  138. background: rgb(223, 117, 20);
  139. /* this is an orange */
  140. }
  141. .pure-button-variant-secondary {
  142. background: rgb(66, 184, 221);
  143. /* this is a light blue */
  144. }
  145. .avatar {
  146. width: 40px;
  147. height: 40px;
  148. }
  149. /*
  150. * -- TABLET (AND UP) MEDIA QUERIES --
  151. * On tablets and other medium-sized devices, we want to customize some
  152. * of the mobile styles.
  153. */
  154. @media (min-width: 40em) {
  155. /* Move the layout over so we can fit the nav + list in on the left */
  156. #layout {
  157. padding-left:500px; /* "left col (nav + list)" width */
  158. position: relative;
  159. }
  160. /* These are position:fixed; elements that will be in the left 500px of the screen */
  161. #nav, #list {
  162. position: fixed;
  163. top: 0;
  164. bottom: 0;
  165. overflow: auto;
  166. }
  167. #nav {
  168. margin-left:-500px; /* "left col (nav + list)" width */
  169. width:150px;
  170. height: 100%;
  171. }
  172. /* Show the menu items on the larger screen */
  173. .nav-inner {
  174. display: block;
  175. padding: 2em 0;
  176. }
  177. /* Hide the "Menu" button on larger screens */
  178. #nav .nav-menu-button {
  179. display: none;
  180. }
  181. #list {
  182. margin-left: -350px;
  183. width: 100%;
  184. height: 33%;
  185. border-bottom: 1px solid #ddd;
  186. }
  187. #main {
  188. position: fixed;
  189. top: 33%;
  190. right: 0;
  191. bottom: 0;
  192. left: 150px;
  193. overflow: auto;
  194. width: auto; /* so that it's not 100% */
  195. }
  196. }
  197. /*
  198. * -- DESKTOP (AND UP) MEDIA QUERIES --
  199. * On desktops and other large-sized devices, we want to customize some
  200. * of the mobile styles.
  201. */
  202. @media (min-width: 60em) {
  203. /* This will take up the entire height, and be a little thinner */
  204. #list {
  205. margin-left: -350px;
  206. width:350px;
  207. height: 100%;
  208. border-right: 1px solid #ddd;
  209. }
  210. /* This will now take up it's own column, so don't need position: fixed; */
  211. #main {
  212. position: static;
  213. margin: 0;
  214. padding: 0;
  215. }
  216. }
  217. #main, #content {
  218. height: 100%;
  219. width: 100%;
  220. }
  221. #post {
  222. display: flex;
  223. flex-flow: column;
  224. height: 100%;
  225. }
  226. #components {
  227. flex: 0 1 auto;
  228. }
  229. #editor {
  230. visibility: hidden;
  231. }
  232. .input-large {
  233. font-size: 28px;
  234. font-weight: 700;
  235. }
  236. .CodeMirror-sizer {
  237. padding-top: 5px;
  238. }
  239. .CodeMirror-gutters {
  240. border-left: 1px solid #ddd;
  241. }
  242. .CodeMirror-scroll {
  243. overflow-y: auto;
  244. }
  245. .mt-15 {
  246. margin-top: 15px;
  247. }
  248. .CodeMirror {
  249. flex: 1 1 auto;
  250. }
  251. div.CodeMirror-scroll { height: auto!important; overflow: visible; font-family: 'Roboto Mono', monospace; }