overrides.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. /*
  2. // Copyright (C) 2014 The Syncthing Authors.
  3. //
  4. // This Source Code Form is subject to the terms of the Mozilla Public
  5. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  6. // You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. body {
  9. padding-bottom: 70px;
  10. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  11. overflow-y: scroll;
  12. }
  13. h1, h2, h3, h4, h5 {
  14. font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  15. line-height: 1.25;
  16. }
  17. ul+h5 {
  18. margin-top: 1.5em;
  19. }
  20. .content {
  21. margin-bottom: 50px;
  22. }
  23. .panel-progress {
  24. height: 3px;
  25. left: 0;
  26. position: absolute;
  27. top: 0;
  28. display: block;
  29. }
  30. .checkbox {
  31. margin-top: 0px;
  32. }
  33. .checkbox input[type="checkbox"], .radio input[type="radio"] {
  34. float: none; /* issue #1197 */
  35. }
  36. #advancedAccordion input.form-control[type="checkbox"] {
  37. box-shadow: none;
  38. margin: 0;
  39. width: auto;
  40. }
  41. .popover {
  42. max-width: none;
  43. min-width: 250px;
  44. }
  45. .tooltip {
  46. word-wrap:break-word;
  47. }
  48. .text-monospace {
  49. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  50. }
  51. .table-condensed>thead>tr>th, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td {
  52. border-top: none;
  53. }
  54. .logo {
  55. margin: 0;
  56. padding: 0;
  57. top: -5px;
  58. position: relative;
  59. }
  60. .list-no-bullet {
  61. list-style-type: none;
  62. }
  63. .li-column {
  64. display: inline-block;
  65. min-width: 7em;
  66. margin-right: 1em;
  67. padding: 1px 4px;
  68. margin: 2px 2px;
  69. }
  70. .li-column span.data {
  71. margin-left: 0.5em;
  72. min-width: 10em;
  73. text-align: right;
  74. display: inline-block;
  75. }
  76. .ng-cloak {
  77. display: none !important;
  78. }
  79. .table th {
  80. white-space: nowrap;
  81. font-weight: 400;
  82. }
  83. .table td {
  84. /*padding-left: 20px !important;*/
  85. }
  86. .table td.small-data {
  87. white-space: nowrap;
  88. }
  89. /* Removing text decoration on anchor link hover pull request: #4135 */
  90. .table td.small-data span a:hover {
  91. text-decoration: none;
  92. }
  93. table.table-condensed {
  94. table-layout: fixed;
  95. }
  96. table.table-dynamic {
  97. word-wrap: break-word;
  98. word-break: break-all;
  99. }
  100. table.table-condensed td,
  101. table.table-condensed th {
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. }
  106. table.table-condensed td.no-overflow-ellipse {
  107. white-space: normal;
  108. }
  109. table.table-auto {
  110. table-layout: auto;
  111. }
  112. table.table-auto th {
  113. width: 1px;
  114. }
  115. table.table-auto td {
  116. max-width: 0px;
  117. }
  118. /* Remote Devices connection-quality indicator */
  119. .reception-0 {
  120. background: url('../../vendor/bootstrap/fonts/reception-0.svg') no-repeat;
  121. }
  122. .reception-1 {
  123. background: url('../../vendor/bootstrap/fonts/reception-1.svg') no-repeat;
  124. }
  125. .reception-2 {
  126. background: url('../../vendor/bootstrap/fonts/reception-2.svg') no-repeat;
  127. }
  128. .reception-3 {
  129. background: url('../../vendor/bootstrap/fonts/reception-3.svg') no-repeat;
  130. }
  131. .reception-4 {
  132. background: url('../../vendor/bootstrap/fonts/reception-4.svg') no-repeat;
  133. }
  134. .reception {
  135. width: 1em;
  136. height: 1em;
  137. display: inline-block;
  138. vertical-align: -20%;
  139. }
  140. .remote-devices-panel {
  141. display: inline-block;
  142. }
  143. /* Wrap long file paths to prevent text overflow. See issue #6268. */
  144. .file-path {
  145. word-break: break-all;
  146. }
  147. .folder-advanced {
  148. padding: 1rem;
  149. margin-bottom: 15px;
  150. }
  151. .folder-advanced-toggle {
  152. cursor: pointer;
  153. }
  154. .folder-advanced-toggle .collapse,
  155. .folder-advanced-toggle.collapsed .expand {
  156. display: inline-block;
  157. }
  158. .folder-advanced-toggle.collapsed .collapse,
  159. .folder-advanced-toggle .expand{
  160. display: none;
  161. }
  162. li[language-select] > .dropdown-menu {
  163. column-count: 2;
  164. column-gap: 0;
  165. width: 450px;
  166. }
  167. li[language-select] > .dropdown-menu > li > a {
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. }
  171. .nav>li{
  172. float: left;
  173. }
  174. .navbar-right {
  175. /* to align with panel */
  176. padding-right: 15px;
  177. float: right;
  178. }
  179. .panel-body .table-condensed {
  180. margin-bottom: 0;
  181. }
  182. .dl-horizontal.dl-narrow dt {
  183. width: 40px;
  184. }
  185. .dl-horizontal.dl-narrow dd {
  186. margin-left: 60px;
  187. }
  188. /**
  189. * Panel, Model and Accordion Title bars
  190. */
  191. .panel-icon {
  192. float: left;
  193. margin-right: 15px;
  194. margin-top: 0.125em;
  195. margin-bottom: 0.125em;
  196. line-height: 1;
  197. }
  198. .modal-title .panel-icon {
  199. margin-top: 0.25em;
  200. margin-bottom: 0.25em;
  201. }
  202. button.panel-heading {
  203. display: block;
  204. position: relative;
  205. width: 100%;
  206. text-align: left;
  207. border-top-width: 0;
  208. border-left-width: 0;
  209. border-right-width: 0;
  210. border-radius: 0 !important;
  211. }
  212. .panel-heading .panel-title-text {
  213. text-overflow: ellipsis;
  214. overflow: hidden;
  215. white-space: nowrap;
  216. }
  217. .panel-heading .panel-status {
  218. margin-left:15px;
  219. }
  220. identicon {
  221. width: 1em;
  222. height: 1em;
  223. line-height: 1;
  224. }
  225. .identicon {
  226. width: 1em;
  227. height: 1em;
  228. shape-rendering: crispEdges;
  229. }
  230. a.toggler {
  231. color: inherit;
  232. }
  233. a.toggler:hover {
  234. border-bottom: 1px dashed;
  235. text-decoration: none;
  236. }
  237. /**
  238. * Panel padding decrease
  239. */
  240. .panel-collapse .panel-body {
  241. padding: 5px;
  242. }
  243. /**
  244. * Progress bars with centered text
  245. */
  246. .progress {
  247. margin-bottom: 0px;
  248. position: relative;
  249. }
  250. .progress span.frontal {
  251. text-align: center;
  252. position: absolute;
  253. display: block;
  254. width: 100%;
  255. }
  256. .three-columns {
  257. -webkit-column-count: 3;
  258. -moz-column-count: 3;
  259. column-count: 3;
  260. }
  261. .two-columns {
  262. -webkit-column-count: 2;
  263. -moz-column-count: 2;
  264. column-count: 2;
  265. }
  266. ul.three-columns li, ul.two-columns li {
  267. padding-left: 0.5em;
  268. text-indent: -0.5em;
  269. }
  270. .navbar-fixed-bottom {
  271. z-index: 980;
  272. }
  273. /*
  274. * Restore Versions tweaks
  275. */
  276. #restoreTree-container {
  277. overflow-y: scroll;
  278. resize: vertical;
  279. /* Limit height to prevent vertical screen overflow. */
  280. max-height: calc(100vh - 390px);
  281. /* Always fit at least one folder with dropdown open. */
  282. min-height: 136px;
  283. }
  284. @media (min-width: 768px) {
  285. #restoreTree-container {
  286. max-height: calc(100vh - 401px);
  287. }
  288. }
  289. @media (min-width: 992px) {
  290. #restoreTree-container {
  291. max-height: calc(100vh - 333px);
  292. }
  293. }
  294. /* Ignore fixed height when manually resized. */
  295. #restoreTree-container[style*="height"] {
  296. max-height: none;
  297. }
  298. /* Remove table outline as rows have own focus style already. */
  299. #restoreTree:focus {
  300. outline: 0;
  301. }
  302. /* Align dropdown with title first line. */
  303. #restoreTree td + td {
  304. padding-top: 4px;
  305. vertical-align: top;
  306. }
  307. /* Reduce space between toggle and menu on mobile. */
  308. #restoreTree .dropdown-toggle {
  309. margin-bottom: 0;
  310. }
  311. /* Change direction to remain on screen on mobile. */
  312. #restoreTree .dropdown-menu {
  313. left: auto;
  314. right: 0;
  315. }
  316. /* Ensure maximum space for filtering and date range. */
  317. #restoreVersions .form-group,
  318. #restoreVersions .form-control {
  319. width: 100%;
  320. }
  321. /** Footer nav on small devices **/
  322. @media (max-width: 1199px) {
  323. /* Stay at the end of the page, with space reserved for the footer
  324. usually taking up two rows. */
  325. html {
  326. position: relative;
  327. min-height: 100%;
  328. }
  329. body {
  330. padding-bottom: 60px;
  331. }
  332. .navbar-fixed-bottom {
  333. position: absolute;
  334. }
  335. }
  336. @media (max-width: 768px) {
  337. /* Layout after the normal contents, as this is when the footer switches
  338. to a vertical layout. */
  339. body {
  340. padding-bottom: 0px;
  341. }
  342. .navbar-brand {
  343. margin: 3.25px -15px;
  344. }
  345. .navbar-fixed-bottom {
  346. position: relative;
  347. }
  348. .navbar-nav .open .dropdown-menu {
  349. position: absolute;
  350. left: auto;
  351. right: 0;
  352. background-color: #ffffff;
  353. border: 1px solid #cccccc;
  354. border: 1px solid rgba(0, 0, 0, 0.15);
  355. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  356. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  357. border-radius: 2px;
  358. }
  359. li[language-select] {
  360. position: static !important;
  361. }
  362. li[language-select] > .dropdown-menu {
  363. column-count: auto;
  364. margin-left: 15px;
  365. margin-right: 15px;
  366. margin-top: -12px !important;
  367. max-width: 450px;
  368. overflow-y: scroll;
  369. /* height of 5.5 elements + negative margin-top */
  370. height: 276px;
  371. }
  372. .two-columns {
  373. -webkit-column-count: 1;
  374. -moz-column-count: 1;
  375. column-count: 1;
  376. }
  377. }
  378. @media (max-width:479px) {
  379. nav .dropdown-toggle {
  380. font-size: 1em;
  381. }
  382. .navbar-nav .open .dropdown-menu > li > a {
  383. padding: 12px 15px 12px 25px;
  384. }
  385. .navbar-fixed-bottom li {
  386. width: 100%;
  387. }
  388. }
  389. .tab-content {
  390. padding-top: 10px;
  391. }
  392. @media (max-width: 419px) {
  393. /* the selectors are build to target only the content of folder and device
  394. panels as it would "destroy" e.g. out of sync or recent changes listings */
  395. div[id^='device-'].panel-collapse table,
  396. div[id^='folder-'].panel-collapse table,
  397. div[id^='device-'].panel-collapse tbody,
  398. div[id^='folder-'].panel-collapse tbody,
  399. div[id^='device-'].panel-collapse tr,
  400. div[id^='folder-'].panel-collapse tr {
  401. display: block;
  402. }
  403. div[id^='device-'].panel-collapse th,
  404. div[id^='folder-'].panel-collapse th,
  405. div[id^='device-'].panel-collapse td,
  406. div[id^='folder-'].panel-collapse td {
  407. display: block;
  408. max-width: 100%;
  409. width: 100%;
  410. }
  411. /* All buttons, except panel headings, get bottom margin, as they
  412. won't fit beside each other anymore. Reduce footer padding to
  413. compensate for the margin. */
  414. .btn:not(.panel-heading),
  415. .btn:not(.panel-heading) + .btn:not(.panel-heading) {
  416. margin-bottom: 10px;
  417. }
  418. .panel-footer {
  419. padding-bottom: 0;
  420. }
  421. .modal-footer {
  422. padding-bottom: 5px;
  423. }
  424. table.table-auto td,
  425. table.table-auto th,
  426. table.table-condensed td,
  427. table.table-condensed th {
  428. /* for mobile phones to allow linebreaks in long repro folder/shared with
  429. * columns. */
  430. white-space: normal;
  431. }
  432. }
  433. .form-horizontal .form-group {
  434. margin-bottom: 5px;
  435. }
  436. .form-horizontal {
  437. margin-bottom: 10px;
  438. }
  439. /* Use the same style as Bootstrap uses for disabled <select>. */
  440. .form-control option[disabled] {
  441. background-color: #eeeeee;
  442. opacity: 1;
  443. }
  444. /* Make a "well" look more like a readonly text input when grouped with a button */
  445. .input-group .well-sm {
  446. padding-top: 6px;
  447. padding-bottom: 6px;
  448. }
  449. /* CJK languages don't use italic at all, hence don't force it on them. */
  450. html[lang|="zh"] i,
  451. html[lang="ja"] i,
  452. html[lang|="ko"] i {
  453. font-style: normal;
  454. }
  455. .select-on-click {
  456. user-select: all;
  457. }