overrides.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. }
  12. h1, h2, h3, h4, h5 {
  13. 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";
  14. line-height: 1.25;
  15. }
  16. ul+h5 {
  17. margin-top: 1.5em;
  18. }
  19. .content {
  20. margin-bottom: 50px;
  21. }
  22. .panel-progress {
  23. height: 3px;
  24. left: 0;
  25. position: absolute;
  26. top: 0;
  27. display: block;
  28. }
  29. .checkbox {
  30. margin-top: 0px;
  31. }
  32. .checkbox input[type="checkbox"], .radio input[type="radio"] {
  33. float: none; /* issue #1197 */
  34. }
  35. #advancedAccordion input.form-control[type="checkbox"] {
  36. box-shadow: none;
  37. margin: 0;
  38. width: auto;
  39. }
  40. .popover {
  41. max-width: none;
  42. min-width: 250px;
  43. }
  44. .tooltip {
  45. word-wrap:break-word;
  46. }
  47. .text-monospace {
  48. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  49. }
  50. .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 {
  51. border-top: none;
  52. }
  53. .logo {
  54. margin: 0;
  55. padding: 0;
  56. top: -5px;
  57. position: relative;
  58. }
  59. .list-no-bullet {
  60. list-style-type: none;
  61. }
  62. .li-column {
  63. display: inline-block;
  64. min-width: 7em;
  65. margin-right: 1em;
  66. padding: 1px 4px;
  67. margin: 2px 2px;
  68. }
  69. .li-column span.data {
  70. margin-left: 0.5em;
  71. min-width: 10em;
  72. text-align: right;
  73. display: inline-block;
  74. }
  75. .ng-cloak {
  76. display: none !important;
  77. }
  78. .table th {
  79. white-space: nowrap;
  80. font-weight: 400;
  81. }
  82. .table td {
  83. /*padding-left: 20px !important;*/
  84. }
  85. .table td.small-data {
  86. white-space: nowrap;
  87. }
  88. /* Removing text decoration on anchor link hover pull request: #4135 */
  89. .table td.small-data span a:hover {
  90. text-decoration: none;
  91. }
  92. table.table-condensed {
  93. table-layout: fixed;
  94. }
  95. table.table-dynamic {
  96. word-wrap: break-word;
  97. word-break: break-all;
  98. }
  99. table.table-condensed td,
  100. table.table-condensed th {
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. table.table-condensed td.no-overflow-ellipse {
  106. white-space: normal;
  107. }
  108. table.table-auto {
  109. table-layout: auto;
  110. }
  111. table.table-auto th {
  112. width: 1px;
  113. }
  114. table.table-auto td {
  115. max-width: 0px;
  116. }
  117. /* Wrap long file paths to prevent text overflow. See issue #6268. */
  118. .file-path {
  119. word-break: break-all;
  120. }
  121. .folder-advanced {
  122. padding: 1rem;
  123. margin-bottom: 15px;
  124. }
  125. .folder-advanced-toggle {
  126. cursor: pointer;
  127. }
  128. .folder-advanced-toggle .collapse,
  129. .folder-advanced-toggle.collapsed .expand {
  130. display: inline-block;
  131. }
  132. .folder-advanced-toggle.collapsed .collapse,
  133. .folder-advanced-toggle .expand{
  134. display: none;
  135. }
  136. *[language-select] > .dropdown-menu {
  137. width: 450px;
  138. }
  139. *[language-select] > .dropdown-menu > li {
  140. float: left;
  141. width: 50%;
  142. }
  143. *[language-select] > .dropdown-menu > li > a {
  144. overflow: hidden;
  145. text-overflow: ellipsis;
  146. }
  147. .nav>li{
  148. float: left;
  149. }
  150. .navbar-right {
  151. /* to align with panel */
  152. padding-right: 15px;
  153. float: right;
  154. }
  155. .panel-body .table-condensed {
  156. margin-bottom: 0;
  157. }
  158. .dl-horizontal.dl-narrow dt {
  159. width: 40px;
  160. }
  161. .dl-horizontal.dl-narrow dd {
  162. margin-left: 60px;
  163. }
  164. /**
  165. * Panel, Model and Accordion Title bars
  166. */
  167. .panel-icon {
  168. float: left;
  169. margin-right: 15px;
  170. margin-top: 0.125em;
  171. margin-bottom: 0.125em;
  172. line-height: 1;
  173. }
  174. .modal-title .panel-icon {
  175. margin-top: 0.25em;
  176. margin-bottom: 0.25em;
  177. }
  178. button.panel-heading {
  179. display: block;
  180. position: relative;
  181. width: 100%;
  182. text-align: left;
  183. border-top-width: 0;
  184. border-left-width: 0;
  185. border-right-width: 0;
  186. border-radius: 0 !important;
  187. }
  188. .panel-heading .panel-title-text {
  189. text-overflow: ellipsis;
  190. overflow: hidden;
  191. white-space: nowrap;
  192. }
  193. .panel-heading .panel-status {
  194. margin-left:15px;
  195. }
  196. identicon {
  197. width: 1em;
  198. height: 1em;
  199. line-height: 1;
  200. }
  201. .identicon {
  202. width: 1em;
  203. height: 1em;
  204. shape-rendering: crispEdges;
  205. }
  206. a.toggler {
  207. color: inherit;
  208. }
  209. a.toggler:hover {
  210. border-bottom: 1px dashed;
  211. text-decoration: none;
  212. }
  213. /**
  214. * Panel padding decrease
  215. */
  216. .panel-collapse .panel-body {
  217. padding: 5px;
  218. }
  219. /**
  220. * Progress bars with centered text
  221. */
  222. .progress {
  223. margin-bottom: 0px;
  224. position: relative;
  225. }
  226. .progress span.frontal {
  227. text-align: center;
  228. position: absolute;
  229. display: block;
  230. width: 100%;
  231. }
  232. .three-columns {
  233. -webkit-column-count: 3;
  234. -moz-column-count: 3;
  235. column-count: 3;
  236. }
  237. .two-columns {
  238. -webkit-column-count: 2;
  239. -moz-column-count: 2;
  240. column-count: 2;
  241. }
  242. ul.three-columns li, ul.two-columns li {
  243. padding-left: 0.5em;
  244. text-indent: -0.5em;
  245. }
  246. .navbar-fixed-bottom {
  247. z-index: 980;
  248. }
  249. /** Footer nav on small devices **/
  250. @media (max-width: 1199px) {
  251. /* Stay at the end of the page, with space reserved for the footer
  252. usually taking up two rows. */
  253. html {
  254. position: relative;
  255. min-height: 100%;
  256. }
  257. body {
  258. padding-bottom: 60px;
  259. }
  260. .navbar-fixed-bottom {
  261. position: absolute;
  262. }
  263. }
  264. @media (max-width: 768px) {
  265. /* Layout after the normal contents, as this is when the footer switches
  266. to a vertical layout. */
  267. body {
  268. padding-bottom: 0px;
  269. }
  270. .navbar-brand {
  271. margin: 3.25px -15px;
  272. }
  273. .navbar-fixed-bottom {
  274. position: relative;
  275. }
  276. .navbar-nav .open .dropdown-menu {
  277. position: absolute;
  278. left: auto;
  279. right: 0;
  280. background-color: #ffffff;
  281. border: 1px solid #cccccc;
  282. border: 1px solid rgba(0, 0, 0, 0.15);
  283. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  284. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  285. border-radius: 2px;
  286. }
  287. *[language-select] {
  288. position: static !important;
  289. }
  290. *[language-select] > .dropdown-menu {
  291. margin-left: 15px;
  292. margin-right: 15px;
  293. margin-top: -12px !important;
  294. max-width: 450px;
  295. height: 265px;
  296. overflow-y: scroll;
  297. }
  298. table.table-condensed td,
  299. table.table-condensed th {
  300. /* for mobile phones to allow linebreaks in long repro folder/shared with
  301. * columns. */
  302. white-space: normal;
  303. }
  304. .two-columns {
  305. -webkit-column-count: 1;
  306. -moz-column-count: 1;
  307. column-count: 1;
  308. }
  309. }
  310. @media (max-width:479px) {
  311. nav .dropdown-toggle {
  312. font-size: 1em;
  313. }
  314. .navbar-nav .open .dropdown-menu > li > a {
  315. padding: 12px 15px 12px 25px;
  316. }
  317. .navbar-fixed-bottom li {
  318. width: 100%;
  319. }
  320. }
  321. .tab-content {
  322. padding-top: 10px;
  323. }
  324. .fancytree-ext-table {
  325. width: 100% !important;
  326. }
  327. @media (max-width: 419px) {
  328. /* the selectors are build to target only the content of folder and device
  329. panels as it would "destroy" e.g. out of sync or recent changes listings */
  330. div[id^='device-'].panel-collapse table,
  331. div[id^='folder-'].panel-collapse table,
  332. div[id^='device-'].panel-collapse tbody,
  333. div[id^='folder-'].panel-collapse tbody,
  334. div[id^='device-'].panel-collapse tr,
  335. div[id^='folder-'].panel-collapse tr {
  336. display: block;
  337. }
  338. div[id^='device-'].panel-collapse th,
  339. div[id^='folder-'].panel-collapse th,
  340. div[id^='device-'].panel-collapse td,
  341. div[id^='folder-'].panel-collapse td {
  342. display: block;
  343. max-width: 100%;
  344. width: 100%;
  345. }
  346. /* all buttons, except panel headings, get bottom margin, as they won't fit
  347. beside each other anymore */
  348. .btn:not(.panel-heading),
  349. /* this "+"-selector is needed to override some bootstrap defaults */
  350. .btn:not(.panel-heading) + .btn:not(.panel-heading) {
  351. margin-bottom: 1rem;
  352. }
  353. }
  354. .form-horizontal .form-group {
  355. margin-bottom: 5px;
  356. }
  357. .form-horizontal {
  358. margin-bottom: 10px;
  359. }
  360. /* Use the same style as Bootstrap uses for disabled <select>. */
  361. .form-control option[disabled] {
  362. background-color: #eeeeee;
  363. opacity: 1;
  364. }
  365. /* Make a "well" look more like a readonly text input when grouped with a button */
  366. .input-group .well-sm {
  367. padding-top: 6px;
  368. padding-bottom: 6px;
  369. }