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 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  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. a {
  22. outline: none;
  23. }
  24. textarea {
  25. font-family: "Courier New", Courier, monospace;
  26. resize: vertical;
  27. }
  28. /* local overrides */
  29. .disconnect {
  30. margin: 9px 0 0;
  31. padding-bottom: 5px;
  32. font-size: 11px;
  33. color: #777;
  34. -moz-text-shadow: 0 1px 0 #fff;
  35. -webkit-text-shadow: 0 1px 0 #fff;
  36. -o-text-shadow: 0 1px 0 #fff;
  37. -ms-text-shadow: 0 1px 0 #fff;
  38. text-shadow: 0 1px 0 #fff;
  39. }
  40. .chart-content {
  41. text-align: center;
  42. }
  43. .chart {
  44. height: 400px;
  45. margin: 0 auto;
  46. text-align: center;
  47. background: #fff;
  48. display: flex;
  49. justify-content: center;
  50. }
  51. .chart svg {
  52. flex: none;
  53. }
  54. .notice {
  55. display: none;
  56. }
  57. #js .notice {
  58. display: inline;
  59. }
  60. input.form-control[type="number"] {
  61. width: 4em;
  62. padding: 2px 0;
  63. text-align: center;
  64. }
  65. input.action-scores {
  66. margin: 5px -7em 5px 0;
  67. }
  68. table#symbolsTable input[type="number"] {
  69. width: 6em;
  70. font-size: 11px;
  71. }
  72. .notification-area {
  73. position: fixed;
  74. z-index: 1050;
  75. top: 44px;
  76. left: 0;
  77. right: 0;
  78. padding: 8px;
  79. }
  80. .alert {
  81. position: relative;
  82. padding: 8px 0 8px;
  83. margin: 0 0 4px;
  84. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  85. background-color: #fcf8e3;
  86. border-bottom: 1px solid #fbeed5;
  87. }
  88. .alert.alert-modal {
  89. top: 0;
  90. }
  91. .alert strong {
  92. display: inline-block;
  93. padding-left: 35px;
  94. }
  95. .alert,
  96. .alert h4 {
  97. color: #c09853;
  98. }
  99. .alert h4 {
  100. margin: 0;
  101. }
  102. .alert .close {
  103. position: relative;
  104. top: 0;
  105. right: 9px;
  106. line-height: 20px;
  107. }
  108. .alert-block {
  109. position: static;
  110. padding: 8px 14px;
  111. border: 1px solid #fbeed5;
  112. -webkit-border-radius: 4px;
  113. -moz-border-radius: 4px;
  114. border-radius: 4px;
  115. -moz-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  116. -webkit-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  117. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  118. }
  119. .alert-success {
  120. color: #468847;
  121. background: #dff0d8;
  122. border-color: #d6e9c6;
  123. }
  124. .alert-success h4 {
  125. color: #468847;
  126. }
  127. .alert-danger,
  128. .alert-error {
  129. color: #b94a48;
  130. background: #f2dede;
  131. border-color: #eed3d7;
  132. }
  133. .alert-danger h4,
  134. .alert-error h4 {
  135. color: #b94a48;
  136. }
  137. .alert-info {
  138. color: #3a87ad;
  139. background: #d9edf7;
  140. border-color: #bce8f1;
  141. }
  142. .alert-info h4 {
  143. color: #3a87ad;
  144. }
  145. .alert-block .close {
  146. right: -1px;
  147. }
  148. .alert-block h4 {
  149. margin: 5px 0 10px;
  150. }
  151. .alert-block > p,
  152. .alert-block > ul {
  153. margin-bottom: 0;
  154. }
  155. .alert-block p + p {
  156. margin-top: 10px;
  157. }
  158. .alert-block code {
  159. display: block;
  160. white-space: normal;
  161. }
  162. .pager li > a,
  163. .pager li > span {
  164. display: inline-block;
  165. padding: 5px 14px;
  166. background-color: #fff;
  167. border: 1px solid #ddd;
  168. -webkit-border-radius: 0;
  169. -moz-border-radius: 0;
  170. border-radius: 0;
  171. }
  172. /* widget */
  173. .widget-box {
  174. background: none repeat scroll 0 0 #f9f9f9;
  175. border-top: 1px solid #cdcdcd;
  176. border-left: 1px solid #cdcdcd;
  177. border-right: 1px solid #cdcdcd;
  178. clear: both;
  179. margin-top: 16px;
  180. margin-bottom: 16px;
  181. position: relative;
  182. }
  183. .widget-box.widget-calendar,
  184. .widget-box.widget-chat {
  185. overflow: hidden !important;
  186. }
  187. .accordion .widget-box {
  188. margin-top: -2px;
  189. margin-bottom: 0;
  190. border-radius: 0;
  191. }
  192. .widget-box.widget-plain {
  193. background: transparent;
  194. border: none;
  195. margin-top: 0;
  196. margin-bottom: 0;
  197. }
  198. .widget-title,
  199. .modal-header {
  200. background-color: #efefef;
  201. background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#fdfdfd), to(#eaeaea));
  202. background-image: -webkit-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
  203. background-image: -moz-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
  204. background-image: -ms-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
  205. background-image: -o-linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
  206. background-image: -linear-gradient(top, #fdfdfd 0%, #eaeaea 100%);
  207. /* stylelint-disable-next-line function-name-case */
  208. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdfdfd', endColorstr='#eaeaea', GradientType=0); /* IE6-9 */
  209. border-bottom: 1px solid #cdcdcd;
  210. height: 36px;
  211. }
  212. .widget-title span.icon {
  213. border-right: 1px solid #cdcdcd;
  214. padding: 9px 10px 7px 11px;
  215. float: left;
  216. opacity: .7;
  217. }
  218. .widget-title h5 {
  219. color: #666666;
  220. text-shadow: 0 1px 0 #ffffff;
  221. /* float:left; */
  222. display: block;
  223. font-size: 12px;
  224. font-weight: bold;
  225. padding: 12px;
  226. line-height: 12px;
  227. margin: 0 0 0 36px;
  228. }
  229. .widget-title .buttons {
  230. padding: 2px 2px 0 0;
  231. }
  232. .widget-title .label {
  233. padding: 3px 5px 2px;
  234. float: right;
  235. margin: 9px 15px 0 0;
  236. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset, 0 1px 0 #ffffff;
  237. }
  238. .widget-content {
  239. padding: 12px 15px;
  240. border-bottom: 1px solid #cdcdcd;
  241. -moz-box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.2);
  242. box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.2);
  243. }
  244. .widget-inner {
  245. padding: 12px 15px;
  246. }
  247. .stats-plain {
  248. width: 100%;
  249. }
  250. .stat-boxes,
  251. .quick-actions,
  252. .quick-actions-horizontal,
  253. .stats-plain {
  254. display: block;
  255. list-style: none outside none;
  256. margin: 0;
  257. }
  258. .stat-box {
  259. background-color: #f6f6f6;
  260. background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#f9f9f9), to(#ededed));
  261. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
  262. background-image: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
  263. background-image: -ms-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
  264. background-image: -o-linear-gradient(top, #f9f9f9 0%, #ededed 100%);
  265. background-image: linear-gradient(to bottom, #f9f9f9 0%, #ededed 100%);
  266. border: 1px solid #d5d5d5;
  267. border-radius: 4px 4px 4px 4px;
  268. box-shadow: 0 1px 0 0 #ffffff inset, 0 1px 0 rgba(255, 255, 255, 0.4);
  269. display: inline-block;
  270. line-height: 18px;
  271. margin: 0 10px 10px 0;
  272. padding: 0 10px;
  273. }
  274. .stat-box:not(.pull-right) {
  275. min-width: 90px;
  276. }
  277. /*
  278. .stat-boxes .stat-box: first-child {
  279. margin-right: 0;
  280. }
  281. */
  282. .stat-box .widget {
  283. overflow: hidden;
  284. margin: 0 12px;
  285. padding: 10px 0 6px;
  286. font-size: 10px;
  287. font-weight: bold;
  288. text-align: center;
  289. text-transform: capitalize;
  290. text-shadow: 0 1px 0 white;
  291. color: #666;
  292. }
  293. .stat-box .left,
  294. .stat-box .right {
  295. float: left;
  296. }
  297. .stat-box .left {
  298. border-right: 1px solid gainsboro;
  299. box-shadow: 1px 0 0 0 white;
  300. margin-right: 14px;
  301. padding-right: 18px;
  302. font-size: 10px;
  303. font-weight: bold;
  304. }
  305. .stat-box .right {
  306. padding-left: 4px;
  307. }
  308. .stat-box .widget span,
  309. .stat-box .widget strong {
  310. display: block;
  311. }
  312. .stat-box .widget strong {
  313. font-size: 26px;
  314. margin-bottom: 3px;
  315. margin-top: 6px;
  316. }
  317. .nomargin {
  318. margin: 0 !important;
  319. }
  320. .nopadding {
  321. padding: 0 !important;
  322. }
  323. .modal-header {
  324. height: auto;
  325. padding: 8px 15px 5px;
  326. }
  327. .modal-header h3 {
  328. margin: 7px;
  329. font-size: 12px;
  330. text-shadow: 0 1px 0 #ffffff;
  331. }
  332. .table-log {
  333. table-layout: fixed;
  334. border: 0 !important;
  335. }
  336. .table-log .col1 {
  337. width: 130px;
  338. }
  339. .table-log .col2,
  340. .table-log .col6 {
  341. width: 100%;
  342. }
  343. .table-log .col3,
  344. .table-log .col4,
  345. .table-log .col5 {
  346. width: 100px;
  347. }
  348. .table-log .col7,
  349. .table-log .col8,
  350. .table-log .col9 {
  351. width: 50px;
  352. }
  353. .table-log th {
  354. padding: 4px 10px;
  355. font-size: 10px;
  356. color: #666666;
  357. white-space: nowrap;
  358. background-color: #efefef;
  359. border-bottom: 1px solid #ddd;
  360. border-left: 1px solid #cdcdcd;
  361. }
  362. .table-log td,
  363. .table-log td .label {
  364. font-family: "Trebuchet MS", Helvetica, sans-serif;
  365. font-size: 11px;
  366. }
  367. .table-log thead th,
  368. .table-log tbody td {
  369. text-align: left;
  370. line-height: 16px;
  371. vertical-align: top;
  372. }
  373. .table-log th:first-child,
  374. .table-log td:first-child {
  375. border-left: 0;
  376. }
  377. .table-log .cell-overflow {
  378. white-space: nowrap;
  379. overflow: hidden;
  380. -o-text-overflow: ellipsis;
  381. text-overflow: ellipsis;
  382. }
  383. .table-log th.header {
  384. cursor: pointer;
  385. }
  386. .table-log th:first-child {
  387. border-left: 0;
  388. }
  389. .table-log th.headerSortUp,
  390. .table-log th.headerSortDown {
  391. background-color: #fefefe;
  392. background-position: 100% 12px;
  393. background-repeat: no-repeat;
  394. }
  395. .table-log th.headerSortUp {
  396. background-image: url('../img/asc.png');
  397. }
  398. .table-log th.headerSortDown {
  399. background-image: url('../img/desc.png');
  400. }
  401. /* Symbols coloring */
  402. .symbol-default {
  403. border-radius: 2px;
  404. padding-left: 2px;
  405. padding-right: 2px;
  406. }
  407. .symbol-default:hover {
  408. background-color: #e6e6e6;
  409. }
  410. .symbol-negative {
  411. background-color: #eef9e7;
  412. }
  413. .symbol-positive {
  414. background-color: #fbe9e5;
  415. }
  416. .symbol-special {
  417. background-color: #e2e9fe;
  418. }
  419. .symbol-negative:hover {
  420. background-color: #dcf9d3;
  421. }
  422. .symbol-positive:hover {
  423. background-color: #fbd6d1;
  424. }
  425. .symbol-special:hover {
  426. background-color: #cddbff;
  427. }
  428. .stat-boxes {
  429. padding-left: 0;
  430. margin-right: -10px !important;
  431. }
  432. .list-textarea {
  433. width: 100%;
  434. height: 360px;
  435. }
  436. .align-right {
  437. text-align: right !important;
  438. }
  439. td.maps-cell {
  440. vertical-align: middle;
  441. }
  442. .map-link {
  443. display: block;
  444. color: #0088cc;
  445. cursor: pointer;
  446. }
  447. .map-link:hover,
  448. .map-link:focus {
  449. color: #005580;
  450. text-decoration: underline;
  451. }
  452. /* Glyphicons animated spinners */
  453. .loading .glyphicon-spin {
  454. animation: spin 1000ms infinite linear;
  455. }
  456. @keyframes spin {
  457. 0% {
  458. transform: rotate(0deg);
  459. }
  460. 100% {
  461. transform: rotate(359deg);
  462. }
  463. }
  464. /* Some spacing tweaks */
  465. .notification-area div > button:not(.close) {
  466. margin-right: 9px;
  467. }
  468. #throughput div.widget-content {
  469. text-align: center;
  470. }
  471. #throughput div.widget-content > div {
  472. display: inline-block;
  473. }
  474. #throughput div.widget-content div.row {
  475. background: #fff;
  476. }
  477. /* RRD summary */
  478. #summary-row {
  479. padding-left: 80px;
  480. padding-right: 80px;
  481. }
  482. .col-fixed,
  483. .col-fluid {
  484. position: relative;
  485. float: left;
  486. }
  487. .col-fixed {
  488. width: 200px;
  489. min-height: 1px; /* make an empty div take space */
  490. }
  491. .col-fluid {
  492. width: calc(100% - 200px);
  493. }
  494. #rrd-table_toggle {
  495. position: absolute;
  496. top: 0;
  497. height: 100%;
  498. width: 100%;
  499. }
  500. #rrd-table {
  501. margin-bottom: 2px;
  502. width: 100% !important;
  503. text-align: left;
  504. font-size: 12px;
  505. z-index: 100;
  506. }
  507. #rrd-table td {
  508. padding-top: 2px;
  509. padding-bottom: 2px;
  510. }
  511. #rrd-total {
  512. padding-left: 8px;
  513. margin-bottom: 10px;
  514. text-align: left;
  515. font-size: 12px;
  516. }
  517. /* Throughput graph controls */
  518. #graph_controls select {
  519. margin: 10px 20px 0;
  520. display: inline-block;
  521. width: auto;
  522. border: 1px solid grey;
  523. }
  524. /* history table */
  525. #historyTable > tbody > tr > td,
  526. #historyTable > thead > tr > th {
  527. padding: 4px;
  528. }
  529. #historyTable > thead > tr > th {
  530. padding-right: 20px;
  531. }
  532. #selSymOrder {
  533. height: auto;
  534. }
  535. .widget-title-form label {
  536. font-size: 12px;
  537. font-weight: normal;
  538. }
  539. #history_page_size {
  540. width: 6em !important;
  541. text-align: center;
  542. }
  543. .scorebar-spam {
  544. background-color: rgba(240, 0, 0, 0.1);
  545. }
  546. .scorebar-ham {
  547. background: rgba(100, 230, 80, 0.1);
  548. }
  549. /* btn-file for upload file button */
  550. .btn-file {
  551. position: relative;
  552. overflow: hidden;
  553. }
  554. .btn-file input[type=file] {
  555. position: absolute;
  556. top: 0;
  557. right: 0;
  558. min-width: 100%;
  559. min-height: 100%;
  560. font-size: 100px;
  561. text-align: right;
  562. filter: alpha(opacity=0);
  563. opacity: 0;
  564. outline: none;
  565. background: white;
  566. cursor: inherit;
  567. display: block;
  568. }
  569. input.radio {
  570. margin: 0 !important;
  571. height: initial;
  572. -webkit-box-shadow: none !important;
  573. box-shadow: none !important;
  574. }
  575. .glyphicon-ok-circle {
  576. color: #468847;
  577. }
  578. .glyphicon-remove-circle {
  579. color: #b94a48;
  580. }
  581. #clusterTable .col1 {
  582. width: 40px;
  583. }
  584. #clusterTable .col4 {
  585. width: 50px;
  586. text-align: center;
  587. }
  588. #clusterTable .col5 {
  589. width: 100px;
  590. }
  591. #clusterTable .col2 {
  592. width: 30%;
  593. }
  594. #clusterTable .col3 {
  595. width: 50%;
  596. }
  597. #nprogress .bar {
  598. height: 1px;
  599. }