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.

rspamd.css 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. /*
  2. The MIT License (MIT)
  3. Copyright (C) 2012-2013 Anton Simonov <untone@gmail.com>
  4. Copyright (C) 2014-2015 Vsevolod Stakhov <vsevolod@highsecure.ru>
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in
  12. all copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. THE SOFTWARE.
  20. */
  21. /* stylelint-disable selector-id-pattern */
  22. /* bootstrap 4 overrides */
  23. :root {
  24. font-size: 14px;
  25. }
  26. body {
  27. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  28. }
  29. code {
  30. font-size: 90%;
  31. }
  32. small,
  33. .small {
  34. font-size: 85%;
  35. }
  36. .text-secondary {
  37. color: #666 !important;
  38. }
  39. .navbar {
  40. padding-top: 0;
  41. padding-bottom: 0;
  42. margin-bottom: 20px;
  43. border-bottom: 1px solid rgb(231 231 231);
  44. }
  45. .nav-pills .nav-link.active {
  46. background-color: #e7e7e7;
  47. }
  48. .danger > td {
  49. background-color: #fbe9e5;
  50. }
  51. .success > td {
  52. background-color: #eef9e7;
  53. }
  54. td.warning {
  55. background-color: #fff8e6;
  56. }
  57. @media (max-width: 1199px) {
  58. .navbar-collapse.order-3 {
  59. border-top: 1px solid #dee2e6 !important;
  60. }
  61. /* Avoid navbar toggler hiding on navbar collapse */
  62. .navbar-toggler {
  63. display: block !important;
  64. }
  65. }
  66. /* bootstrap 4 additionals */
  67. .btn-group-xs > .btn,
  68. .btn-xs {
  69. padding: .06rem .3rem;
  70. font-size: .875rem;
  71. line-height: 1.5;
  72. border-radius: .2rem;
  73. }
  74. .btn.disabled,
  75. .btn[disabled],
  76. fieldset[disabled] .btn {
  77. cursor: not-allowed;
  78. }
  79. .w-1 {
  80. width: 1%;
  81. }
  82. /* Tweak FooTable for Bootstrap 4 */
  83. .footable .dropdown-toggle::after {
  84. content: none;
  85. }
  86. .footable .btn-outline-secondary {
  87. border-color: rgb(108 117 125);
  88. }
  89. .footable .btn-group > .btn:not(:first-child),
  90. .footable .btn-group > .btn-group:not(:first-child) > .btn {
  91. border-top-left-radius: 0;
  92. border-bottom-left-radius: 0;
  93. }
  94. .footable .input-sm {
  95. height: 30px;
  96. }
  97. .footable-header .fooicon {
  98. font-size: 12px;
  99. }
  100. a {
  101. outline: none;
  102. }
  103. textarea {
  104. font-family: "Courier New", Courier, monospace;
  105. resize: vertical;
  106. }
  107. /* local overrides */
  108. .navbar-brand > img {
  109. height: 50px;
  110. }
  111. .btn-group > .btn.radius-right {
  112. border-top-right-radius: .25rem !important;
  113. border-bottom-right-radius: .25rem !important;
  114. }
  115. input.form-control[type="number"] {
  116. width: 4em;
  117. padding: 2px 0;
  118. text-align: center;
  119. }
  120. input.action-scores {
  121. margin: 5px -7em 5px 0;
  122. }
  123. table#symbolsTable input[type="number"] {
  124. width: 6em;
  125. font-size: 11px;
  126. }
  127. .notification-area {
  128. position: fixed;
  129. z-index: 1050;
  130. top: 44px;
  131. left: 0;
  132. right: 0;
  133. padding: 8px;
  134. }
  135. .alert {
  136. margin-bottom: 4px;
  137. }
  138. .alert.alert-modal {
  139. top: 0;
  140. }
  141. .alert strong {
  142. display: inline-block;
  143. padding-left: 35px;
  144. }
  145. .alert,
  146. .alert h4 {
  147. color: #c09853;
  148. }
  149. .alert h4 {
  150. margin: 0;
  151. }
  152. .alert-success {
  153. color: #468847;
  154. background: #dff0d8;
  155. border-color: #d6e9c6;
  156. }
  157. .alert-success h4 {
  158. color: #468847;
  159. }
  160. .alert-danger,
  161. .alert-error {
  162. color: #b94a48;
  163. background: #f2dede;
  164. border-color: #eed3d7;
  165. }
  166. .alert-danger h4,
  167. .alert-error h4 {
  168. color: #b94a48;
  169. }
  170. .alert-info {
  171. color: #3a87ad;
  172. background: #d9edf7;
  173. border-color: #bce8f1;
  174. }
  175. .alert-info h4 {
  176. color: #3a87ad;
  177. }
  178. .alert-block .close {
  179. right: -1px;
  180. }
  181. .alert-block > p,
  182. .alert-block > ul {
  183. margin-bottom: 0;
  184. }
  185. .pager li > a,
  186. .pager li > span {
  187. display: inline-block;
  188. padding: 5px 14px;
  189. background-color: #fff;
  190. border: 1px solid #ddd;
  191. -webkit-border-radius: 0;
  192. -moz-border-radius: 0;
  193. border-radius: 0;
  194. }
  195. /* widget */
  196. .card-header,
  197. .modal-header {
  198. background-color: #f3f3f3;
  199. background-image: linear-gradient(to bottom, #fdfdfd, #eaeaea);
  200. }
  201. .card-header > .icon > svg {
  202. vertical-align: middle;
  203. }
  204. .card-header .h6 {
  205. font-size: 0.857rem;
  206. }
  207. .stat-box {
  208. background-color: #f3f3f3;
  209. background-image: linear-gradient(to bottom, #f9f9f9, #ededed);
  210. line-height: 1;
  211. }
  212. .stat-box:not(.float-right) {
  213. min-width: 90px;
  214. }
  215. .stat-box .widget {
  216. font-size: 10px;
  217. }
  218. .stat-box .widget strong {
  219. font-size: 26px;
  220. }
  221. /* Symbols coloring */
  222. .symbol-default {
  223. border-radius: 2px;
  224. padding-left: 2px;
  225. padding-right: 2px;
  226. }
  227. .symbol-default:hover {
  228. background-color: #e6e6e6;
  229. }
  230. .symbol-negative {
  231. background-color: #eef9e7;
  232. }
  233. .symbol-positive {
  234. background-color: #fbe9e5;
  235. }
  236. .symbol-special {
  237. background-color: #e2e9fe;
  238. }
  239. .symbol-negative:hover {
  240. background-color: #dcf9d3;
  241. }
  242. .symbol-positive:hover {
  243. background-color: #fbd6d1;
  244. }
  245. .symbol-special:hover {
  246. background-color: #cddbff;
  247. }
  248. .map-link {
  249. display: block;
  250. color: #0088cc;
  251. cursor: pointer;
  252. }
  253. .map-link:hover,
  254. .map-link:focus {
  255. color: #005580;
  256. text-decoration: underline;
  257. }
  258. /* Font Awesome icons size */
  259. .svg-inline--fa { /* stylelint-disable-line selector-class-pattern */
  260. font-size: 16px;
  261. }
  262. /* Increase refresh button spinner speed */
  263. #refresh .fa-spin {
  264. -webkit-animation: fa-spin 1s linear infinite;
  265. animation: fa-spin 1s linear infinite;
  266. }
  267. /* Some spacing tweaks */
  268. .notification-area div > button:not(.close) {
  269. margin-right: 9px;
  270. }
  271. .status-table td:last-child {
  272. border-right: none;
  273. }
  274. .status-table tr:last-child td {
  275. border-bottom: none;
  276. }
  277. .status-table thead th:last-child {
  278. border-right: none;
  279. }
  280. .status-table tr:last-child td:first-child {
  281. border-radius: 0 0 0 calc(.25rem - 1px);
  282. }
  283. .status-table tr:last-child td:last-child {
  284. border-radius: 0 0 calc(.25rem - 1px) 0;
  285. }
  286. /* RRD summary */
  287. #summary-row {
  288. padding-left: 80px;
  289. padding-right: 80px;
  290. }
  291. .col-fixed,
  292. .col-fluid {
  293. position: relative;
  294. float: left;
  295. }
  296. .col-fixed {
  297. width: 200px;
  298. min-height: 1px; /* make an empty div take space */
  299. }
  300. .col-fluid {
  301. width: calc(100% - 200px);
  302. }
  303. #rrd-table_toggle {
  304. position: absolute;
  305. top: 0;
  306. height: 100%;
  307. width: 100%;
  308. }
  309. #rrd-table {
  310. margin-bottom: 2px;
  311. width: 100% !important;
  312. text-align: left;
  313. font-size: 12px;
  314. z-index: 100;
  315. }
  316. #rrd-table td {
  317. padding-top: 2px;
  318. padding-bottom: 2px;
  319. }
  320. #rrd-total {
  321. padding-left: 8px;
  322. margin-bottom: 10px;
  323. text-align: left;
  324. font-size: 12px;
  325. }
  326. /* Throughput graph controls */
  327. #graph_controls select {
  328. margin: 10px 20px 0;
  329. display: inline-block;
  330. width: auto;
  331. border: 1px solid grey;
  332. }
  333. /* history table */
  334. .footable-details.table {
  335. margin-bottom: 0;
  336. }
  337. #historyTable_scan > tbody > tr > td,
  338. #historyTable_scan > thead > tr > th,
  339. #historyTable_history > tbody > tr > td,
  340. #historyTable_history > thead > tr > th {
  341. padding: 4px;
  342. }
  343. #historyTable_scan > thead > tr > th,
  344. #historyTable_history > thead > tr > th {
  345. padding-right: 20px;
  346. }
  347. @media (min-width: 576px) and (max-width: 1199px) {
  348. .history-col-time {
  349. /* Avoid taking multiple lines in every row when one of rows has long ID */
  350. white-space: nowrap;
  351. }
  352. }
  353. .footable-filtering-search .dropdown-menu .sym-order-toggle {
  354. display: none;
  355. }
  356. #history_page_size {
  357. width: 6em !important;
  358. text-align: center;
  359. }
  360. .scorebar-spam {
  361. background-color: rgba(240 0 0 / 0.1) !important;
  362. }
  363. .scorebar-ham {
  364. background: rgba(100 230 80 / 0.1) !important;
  365. }
  366. .danger .icon {
  367. color: #b94a48;
  368. }
  369. .success .icon {
  370. color: #468847;
  371. }
  372. #nprogress .bar {
  373. height: 1px;
  374. }
  375. #row-main {
  376. margin-left: -17.5px;
  377. margin-right: -17.5px;
  378. }
  379. @media (min-width: 992px) {
  380. #selectors > .card {
  381. height: calc(100vh - 91px);
  382. }
  383. #row-main {
  384. /* necessary to hide collapsed sidebar */
  385. overflow-x: hidden;
  386. }
  387. #content > div {
  388. display: flex;
  389. }
  390. }
  391. #content {
  392. transition: all 0.3s ease;
  393. transition-property: flex-basis, max-width, width;
  394. }
  395. .sidebar {
  396. padding: 8px;
  397. background-color: #ffe;
  398. transition: margin 0.3s ease;
  399. }
  400. .collapsed {
  401. /* hide it for small displays */
  402. display: none;
  403. }
  404. @media (min-width: 992px) {
  405. .collapsed {
  406. display: block;
  407. }
  408. #sidebar-left.collapsed {
  409. /* same width as sidebar */
  410. margin-left: -25%;
  411. }
  412. #sidebar-right.collapsed {
  413. /* same width as sidebar */
  414. margin-right: -25%;
  415. }
  416. }
  417. .sidebar-nav {
  418. width: 20px;
  419. }
  420. .sidebar-nav .nav-link,
  421. .sidebar-nav .nav-link:hover {
  422. border: 1px solid #ddd;
  423. }
  424. #sidebar-tab-left > a,
  425. #sidebar-tab-right > a {
  426. background-color: #ffe;
  427. margin-left: 12px;
  428. margin-right: 12px;
  429. }
  430. #sidebar-tab-left {
  431. transform: rotate(180deg);
  432. }
  433. #sidebar-tab-text-left {
  434. transform: rotate(180deg);
  435. }
  436. @media (min-width: 992px) {
  437. #sidebar-left {
  438. border-bottom-left-radius: 3.5px;
  439. }
  440. #sidebar-right {
  441. border-bottom-right-radius: 3.5px;
  442. }
  443. .sidebar-nav {
  444. margin-left: -1px;
  445. margin-right: -1px;
  446. display: block;
  447. }
  448. #content {
  449. border-left: 1px solid #ddd;
  450. border-right: 1px solid #ddd;
  451. }
  452. #sidebar-tab-left {
  453. display: flex;
  454. transform: translateX(-50%) rotate(90deg) translate(50%, -50%);
  455. }
  456. #sidebar-tab-right {
  457. float: right;
  458. transform: translateX(50%) rotate(-90deg) translate(-50%, -50%);
  459. }
  460. }
  461. @media (max-width: 991.98px) {
  462. #sidebar-right {
  463. border-bottom-left-radius: 3.5px;
  464. border-bottom-right-radius: 3.5px;
  465. }
  466. .sidebar-nav {
  467. margin-top: -1px;
  468. margin-bottom: -1px;
  469. }
  470. #content {
  471. border-top: 1px solid #ddd;
  472. border-bottom: 1px solid #ddd;
  473. }
  474. #sidebar-tab-right {
  475. bottom: 0;
  476. right: 0;
  477. }
  478. }
  479. #navBar .navbar-nav .nav-link {
  480. padding: 15px;
  481. }
  482. #modalDialog > .modal-dialog {
  483. /* Center the modal vertically */
  484. top: 50%;
  485. transform: translate(0, -50%);
  486. -webkit-transform: translate(0, -50%);
  487. }
  488. .codejar-wrap,
  489. #editor.map-textarea {
  490. border-radius: 6px;
  491. max-height: calc(100vh - 178px);
  492. max-width: 100%;
  493. min-width: 100%;
  494. overflow: auto;
  495. resize: both;
  496. }
  497. #editor.map-textarea {
  498. height: calc(100vh - 178px);
  499. width: calc(100vw - 36px - 3rem);
  500. }
  501. .codejar-wrap,
  502. #editor.map-textarea,
  503. #editor.map-textarea:focus {
  504. background: rgb(0 47 79);
  505. color: silver;
  506. }
  507. .codejar-wrap {
  508. /* Fix line wrapping */
  509. scrollbar-width: thin;
  510. }
  511. .codejar-linenumbers {
  512. background: rgba(255 255 255 / 0.07) !important;
  513. bottom: unset !important;
  514. color: rgba(120 120 120 / 1) !important;
  515. height: inherit;
  516. mix-blend-mode: unset !important;
  517. text-align: right;
  518. overflow: unset !important;
  519. user-select: none;
  520. }
  521. .editor {
  522. font-family: monospace;
  523. font-size: 14px;
  524. font-weight: 400;
  525. letter-spacing: normal;
  526. margin-left: 10px;
  527. margin-right: 10px;
  528. resize: unset !important;
  529. tab-size: 4;
  530. -moz-tab-size: 4;
  531. overflow: unset !important;
  532. }
  533. /* Prism show-invisibles plugin overrides */
  534. .token.tab:not(:empty)::before {
  535. content: "\23af\27F6";
  536. }
  537. /* Temporarily remove CR and LF tokens as they overflow line width */
  538. .token.cr::before,
  539. .token.crlf::before,
  540. .token.lf::before {
  541. content: "";
  542. }
  543. /* Preloader */
  544. .blinking {
  545. animation: blinker 1.2s ease-in-out infinite;
  546. }
  547. @keyframes blinker {
  548. 50% {
  549. -webkit-filter: invert(1);
  550. filter: invert(1);
  551. }
  552. }