main.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @font-face {
  2. font-family: 'Inconsolata';
  3. font-style: normal;
  4. font-weight: 400;
  5. src: local('Inconsolata-Regular'), local('Inconsolata'), local('Inconsolata Regular'), url('../fonts/inconsolata/Inconsolata-Regular.ttf');
  6. }
  7. @font-face {
  8. font-family: 'Inconsolata';
  9. font-style: normal;
  10. font-weight: 700;
  11. src: local('Inconsolata-Bold'), local('Inconsolata Bold'), url('../fonts/inconsolata/Inconsolata-Bold.ttf');
  12. }
  13. *, *:before, *:after {
  14. box-sizing: border-box;
  15. }
  16. body {
  17. height: 100%;
  18. display: flex;
  19. flex-direction: column;
  20. border: 0px;
  21. margin: 0px;
  22. font-family: 'Inconsolata', monospace;
  23. font-size: 12pt;
  24. }
  25. span.pre-ish {
  26. font-size: 12pt;
  27. white-space: pre-wrap;
  28. }
  29. ul {
  30. margin-top: .25em;
  31. margin-bottom: .25em;
  32. padding-left: 2ch;
  33. list-style: none;
  34. }
  35. ul li:before {
  36. content: "\2022";
  37. margin-right: 1ch;
  38. font-weight: bold;
  39. }
  40. #stream-metabox {
  41. flex-direction: column;
  42. display: flex;
  43. min-height: 85vh;
  44. max-height: 85vh;
  45. background-color: #d5d5d5;
  46. padding-left: 15px;
  47. padding-right: 15px;
  48. padding-bottom: 0px;
  49. padding-top: 0px;
  50. overflow-y: auto;
  51. }
  52. /*
  53. Alignment hack:
  54. http://stackoverflow.com/a/37515194
  55. */
  56. #stream-metabox > :first-child {
  57. margin-top: auto !important;
  58. }
  59. #stream {
  60. background-color: #fbfbfb;
  61. padding-bottom: .25em;
  62. }
  63. .stream-entry {
  64. background-color: #fdfdfd;
  65. padding-left: 5px;
  66. padding-right: 5px;
  67. padding-top: 0px;
  68. padding-bottom: 0px;
  69. border-left-style: solid;
  70. border-left-width: 2px;
  71. border-left-color: #7b7b7b;
  72. margin-top: .5em;
  73. margin-bottom: 0px;
  74. margin-left: -2px;
  75. margin-right: 0px;
  76. }
  77. .stream-entry p {
  78. margin-top: .25em;
  79. margin-bottom: 0px;
  80. }
  81. .self-sent {
  82. color: #494949;
  83. border-left-color: #b4b4b4;
  84. }
  85. #connection-status.connected {
  86. color: #88be7e;
  87. }
  88. #connection-status.disconnected {
  89. color: #be8b7e;
  90. }
  91. #input-metabox {
  92. flex: 1;
  93. min-height: 15vh;
  94. max-height: 15vh;
  95. background-color: #414141;
  96. color: #d5d5d5;
  97. padding: 15px;
  98. }
  99. #input-metabox input {
  100. border-top-left-radius: 8px;
  101. border-top-right-radius: 8px;
  102. border-bottom-left-radius: 8px;
  103. border-bottom-right-radius: 8px;
  104. border: 3px solid #e6e6e6;
  105. background-color: #ffffff;
  106. padding: 5px;
  107. width: 75%;
  108. font-family: 'Inconsolata', monospace;
  109. font-size: 12pt;
  110. }