overrides.css 7.6 KB

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