A webmail client. Forked from https://git.sr.ht/~migadu/alps
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

417 linhas
8.0 KiB

  1. /* Box sizing rules */
  2. *,
  3. *::before,
  4. *::after {
  5. box-sizing: border-box;
  6. }
  7. /* Remove default padding */
  8. ul[class],
  9. ol[class] {
  10. padding: 0;
  11. }
  12. /* Remove default margin */
  13. body,
  14. h1,
  15. h2,
  16. h3,
  17. h4,
  18. p,
  19. ul[class],
  20. ol[class],
  21. li,
  22. figure,
  23. figcaption,
  24. blockquote,
  25. dl,
  26. dd {
  27. margin: 0;
  28. }
  29. /* Set core body defaults */
  30. body {
  31. min-height: 100vh;
  32. scroll-behavior: smooth;
  33. text-rendering: optimizeSpeed;
  34. line-height: 1.5;
  35. }
  36. /* Remove list styles on ul, ol elements with a class attribute */
  37. ul[class],
  38. ol[class] {
  39. list-style: none;
  40. }
  41. /* A elements that don't have a class get default styles */
  42. a:not([class]) {
  43. text-decoration-skip-ink: auto;
  44. }
  45. /* Make images easier to work with */
  46. img {
  47. max-width: 100%;
  48. display: block;
  49. }
  50. /* Natural flow and rhythm in articles by default */
  51. article > * + * {
  52. margin-top: 1em;
  53. }
  54. /* Inherit fonts for inputs and buttons */
  55. input,
  56. button,
  57. textarea,
  58. select {
  59. font: inherit;
  60. }
  61. /* Remove all animations and transitions for people that prefer not to see them */
  62. @media (prefers-reduced-motion: reduce) {
  63. * {
  64. animation-duration: 0.01ms !important;
  65. animation-iteration-count: 1 !important;
  66. transition-duration: 0.01ms !important;
  67. scroll-behavior: auto !important;
  68. }
  69. }
  70. /** { box-sizing: content-box; }*/
  71. body { font-family: arial,sans-serif; font-size: 13px; padding: 0; margin: 0;
  72. min-width: 1024px; min-height: 100vh; display: flex; flex-direction: column;
  73. }
  74. input[type="text"],
  75. input[type="email"],
  76. input[type="password"],
  77. input[type="file"],
  78. textarea {
  79. margin: 0;
  80. border: none;
  81. border: 1px solid #e0e0e0;
  82. box-shadow: inset 1px 1px 0 #f8f8f8;
  83. border-radius: 2px;
  84. font-size: 13px;
  85. padding: 0.3rem 0.5rem 0.3rem 0.5rem;
  86. background-color: white;
  87. }
  88. .page-wrap {
  89. display: flex;
  90. flex: 1 100%;
  91. flex-direction: row;
  92. }
  93. a { color: #15c; }
  94. button { font-size: 1rem; }
  95. header { border-bottom: 1px solid #e0e0e0;}
  96. header nav,
  97. footer { padding: 0.5rem 1rem 0.5rem 0.5rem; }
  98. header nav { min-height: 1rem; }
  99. /*header nav strong { color: #555; }*/
  100. header nav > a { margin-right: 1rem; }
  101. header nav span { color: #757373; }
  102. header nav div { float: right; }
  103. header nav div > a{ margin-left: 1rem; }
  104. header a.active { font-weight: bold; color: black; text-decoration: none; }
  105. footer { text-align: right; }
  106. .actions { padding: 0.5rem; }
  107. .container { flex: 1 auto; display: flex; flex-direction: column; flex-wrap: nowrap; min-width: 0; }
  108. aside { flex: 0 0 180px; }
  109. aside a { width: 100%; display: block; padding: 0.4rem 0 0.4rem 0.5rem; }
  110. aside a.active { font-weight: bold; color: black; text-decoration: none; }
  111. aside img { display: block; }
  112. main { flex: 1 100%; display: flex; flex-direction: column; padding: 0.5rem 1rem 0.5rem 0.5rem; min-width: 0; }
  113. aside a.active,
  114. main { background-color: #f6f6f6; }
  115. aside a.new.active { color: #008d47; }
  116. aside a.new.active,
  117. main.compose { background-color: #f6fff6; }
  118. main.compose { flex: 1 auto; padding: 1rem; }
  119. main.compose form { flex: 1 auto; display: flex; flex-direction: column; }
  120. main.compose form label { margin-top: 5px; }
  121. main.compose form label span { display: inline-block; font-weight: bold; min-width: 100px; }
  122. main.compose form input { width: 80%; }
  123. main.compose form textarea { flex: 1 auto; resize: none; margin-top: 1rem; }
  124. main table { border-collapse: collapse; width: 100%; border: 1px solid #eee; }
  125. main table td { white-space: nowrap; padding: 0.3rem; color: #757373;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. max-width: 200px;
  129. }
  130. main table tbody tr { border-bottom: 1px solid #eee; }
  131. main table td a { text-decoration: none; }
  132. main table td a:hover { text-decoration: underline; }
  133. main.message table { background-color: white; }
  134. main.message th { width: 5%;}
  135. main.message h1 { font-size: 1.2rem; padding: 0.5rem;}
  136. main.message pre,
  137. main.message iframe {
  138. flex: 1 auto;
  139. padding: 1rem;
  140. margin: 1rem 0;
  141. background-color: white;
  142. border: 1px solid #eee;
  143. max-width: 100%;
  144. }
  145. main.message pre {
  146. white-space: pre-wrap;
  147. word-break: break-all;
  148. }
  149. main.message .message-header {
  150. display: flex;
  151. flex-direction: row;
  152. }
  153. main.message .message-header .parts {
  154. margin-left: 0.3rem;
  155. padding: 0.3rem 1rem;
  156. background: white;
  157. border-top: 1px solid #f2f2f2;
  158. }
  159. main.message .message-header .parts ul {
  160. margin-left: 1rem;
  161. }
  162. main.compose .actions {
  163. display: flex;
  164. flex-direction: row;
  165. align-items: center;
  166. }
  167. main.compose .actions button,
  168. main.compose .actions .button-link {
  169. padding: 0.4rem 1rem 0.35rem;
  170. font-weight: bold;
  171. }
  172. main.compose .actions > *:not(:last-child) {
  173. margin-right: 1rem;
  174. }
  175. .message-list-subject a { color: #77c; }
  176. .message-list-unread.message-list-sender,
  177. .message-list-unread.message-list-subject,
  178. .message-list-unread.message-list-date { font-weight: bold; }
  179. .message-list-unread.message-list-sender,
  180. .message-list-unread.message-list-date { color: black;}
  181. .message-list-date {
  182. text-align: right;
  183. }
  184. .message-list-unread.message-list-subject a { color: #00c; }
  185. .message-list-unread {
  186. background-color: white;
  187. opacity: 1;
  188. }
  189. .message-list-unread:nth-child(4n+1) {
  190. border-left: 1px solid #f2f2f2;
  191. }
  192. .message-list-unread:nth-child(4n+4) {
  193. border-right: 1px solid #f2f2f2;
  194. }
  195. aside .new {
  196. color: #008d47;
  197. font-weight: bold;
  198. /*background-color: #f5fcf2;*/
  199. text-decoration: none;
  200. }
  201. main table th {
  202. text-align: left;
  203. padding: 0.3rem; font-weight: normal;
  204. }
  205. main table thead {
  206. border-bottom: 1px solid #e0e0e0;
  207. background-color: white;
  208. }
  209. main table tfoot {
  210. border-top: 1px solid #e0e0e0;
  211. background-color: white;
  212. }
  213. .message-list,
  214. .contact-list {
  215. display: flex;
  216. }
  217. .message-list section {
  218. width: 100%;
  219. }
  220. .actions {
  221. display: flex;
  222. flex-direction: row;
  223. background-color: white;
  224. padding: 0.3rem;
  225. }
  226. .message-list .actions:first-child,
  227. .contact-list .actions:first-child {
  228. border-bottom: 1px solid #e0e0e0;
  229. }
  230. .message-list .actions:last-child,
  231. .contact-list .actions:last-child {
  232. border-top: 1px solid #e0e0e0;
  233. }
  234. .actions input[type="text"] {
  235. flex: 1;
  236. margin: 0;
  237. }
  238. .actions input[type="text"] + button {
  239. margin-left: -4rem;
  240. width: 4rem;
  241. border-top-left-radius: 0;
  242. border-bottom-left-radius: 0;
  243. }
  244. .actions-wrap {
  245. display: flex;
  246. flex-grow: 1;
  247. flex-direction: row;
  248. }
  249. .actions-search {
  250. display: flex;
  251. flex-direction: row;
  252. flex-grow: 1;
  253. }
  254. .actions-pagination {
  255. margin-left: 1rem;
  256. display: flex;
  257. flex-direction: row;
  258. }
  259. .actions-pagination .button-link {
  260. padding: 0.3rem 0.5rem;
  261. }
  262. .actions-pagination .button-link:first-child:not(:last-child) {
  263. margin-right: 0.3rem;
  264. }
  265. .actions-wrap .action-group {
  266. margin-left: 0.3rem;
  267. }
  268. .action-group.grow {
  269. flex-grow: 1;
  270. }
  271. .actions-message,
  272. .actions-contacts {
  273. display: flex;
  274. flex-direction: row;
  275. flex-grow: 1;
  276. align-items: center;
  277. }
  278. .message-list-checkbox,
  279. .contact-list-checkbox {
  280. align-self: center;
  281. }
  282. .message-list .messages,
  283. .contact-list .contacts {
  284. flex-grow: 1;
  285. }
  286. .message-grid {
  287. display: grid;
  288. grid-template-columns: auto 1fr 10fr auto;
  289. grid-template-rows: auto;
  290. }
  291. .contact-grid {
  292. display: grid;
  293. grid-template-columns: auto 1fr 3fr;
  294. grid-template-rows: auto;
  295. }
  296. .message-list .messages .message-grid > *,
  297. .contact-list .contacts .contact-grid > * {
  298. white-space: nowrap;
  299. padding: 0.3rem;
  300. overflow: hidden;
  301. text-overflow: ellipsis;
  302. }
  303. .followups a:not(:first-child) {
  304. margin-left: 0.3rem;
  305. }
  306. input[type="submit"],
  307. .button,
  308. button,
  309. .button-link {
  310. margin: 0;
  311. cursor: pointer;
  312. text-decoration: none;
  313. text-align: center;
  314. display: inline-block;
  315. /*padding: 0.4rem 0.4rem 0.35rem;*/
  316. padding: 0.3rem 0.3rem 0.25rem;
  317. min-width: 1rem;
  318. font-size: 12px;
  319. border: 1px solid #ddd;
  320. border-radius: 3px;
  321. vertical-align: middle;
  322. color: #000;
  323. }
  324. .button-link {
  325. border: 1px solid transparent;
  326. text-decoration: none;
  327. }
  328. .button-link:hover {
  329. text-decoration: underline;
  330. }
  331. input[type="submit"],
  332. .button,
  333. button,
  334. .button-link {
  335. background-color: #f5f5f5;
  336. border: 1px solid #ddd;
  337. color: black;
  338. }
  339. .button:hover,
  340. button:hover,
  341. .button-link:hover {
  342. background-color: white;
  343. text-decoration: none;
  344. }
  345. .button:active,
  346. button:active,
  347. .button-link:active {
  348. color: #ccc;
  349. background-color: #f8f8f8;
  350. }