1
0

styles.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521
  1. /**
  2. * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
  3. * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
  4. * @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
  5. * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
  6. * @copyright Copyright (c) 2016, Joas Schilling <coding@schilljs.com>
  7. * @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
  8. * @copyright Copyright (c) 2016, Christoph Wurst <christoph@winzerhof-wurst.at>
  9. * @copyright Copyright (c) 2016, Raghu Nayyar <hey@raghunayyar.com>
  10. * @copyright Copyright (c) 2011-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
  11. *
  12. * @license GNU AGPL version 3 or any later version
  13. *
  14. */
  15. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {
  16. margin: 0;
  17. padding: 0;
  18. border: 0;
  19. outline: 0;
  20. font-weight: inherit;
  21. font-size: 100%;
  22. font-family: inherit;
  23. vertical-align: baseline;
  24. cursor: default;
  25. }
  26. html, body {
  27. height: 100%;
  28. }
  29. article, aside, dialog, figure, footer, header, hgroup, nav, section {
  30. display: block;
  31. }
  32. body {
  33. line-height: 1.5;
  34. }
  35. table {
  36. border-collapse: separate;
  37. border-spacing: 0;
  38. white-space: nowrap;
  39. }
  40. caption, th, td {
  41. text-align: left;
  42. font-weight: normal;
  43. }
  44. table, td, th {
  45. vertical-align: middle;
  46. }
  47. a {
  48. border: 0;
  49. color: $color-main-text;
  50. text-decoration: none;
  51. cursor: pointer;
  52. * {
  53. cursor: pointer;
  54. }
  55. }
  56. a.external {
  57. margin: 0 3px;
  58. text-decoration: underline;
  59. }
  60. input {
  61. cursor: pointer;
  62. * {
  63. cursor: pointer;
  64. }
  65. }
  66. select, .button span, label {
  67. cursor: pointer;
  68. }
  69. ul {
  70. list-style: none;
  71. }
  72. body {
  73. background-color: $color-main-background;
  74. font-weight: 400;
  75. font-size: .8em;
  76. line-height: 1.6em;
  77. font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
  78. color: $color-main-text;
  79. height: auto;
  80. }
  81. #body-login {
  82. text-align: center;
  83. background-color: $color-primary;
  84. background-image: url('../img/background.png?v=2');
  85. background-position: 50% 50%;
  86. background-repeat: no-repeat;
  87. background-size: cover;
  88. }
  89. .two-factor-header {
  90. text-align: center;
  91. }
  92. .two-factor-provider {
  93. text-align: center;
  94. width: 258px !important;
  95. display: inline-block;
  96. margin-bottom: 0 !important;
  97. background-color: rgba($color-main-text, 0.3) !important;
  98. border: none !important;
  99. }
  100. .two-factor-link {
  101. display: inline-block;
  102. padding: 12px;
  103. color: rgba($color-main-background, 0.75);
  104. }
  105. .float-spinner {
  106. height: 32px;
  107. display: none;
  108. }
  109. #body-login .float-spinner {
  110. margin-top: -32px;
  111. padding-top: 32px;
  112. }
  113. #nojavascript {
  114. position: fixed;
  115. top: 0;
  116. bottom: 0;
  117. height: 100%;
  118. width: 100%;
  119. z-index: 9000;
  120. text-align: center;
  121. background-color: rgba($color-main-text, 0.5);
  122. color: $color-primary-text;
  123. line-height: 125%;
  124. font-size: 24px;
  125. div {
  126. display: block;
  127. position: relative;
  128. width: 50%;
  129. top: 35%;
  130. margin: 0px auto;
  131. }
  132. a {
  133. color: $color-primary-text;
  134. border-bottom: 2px dotted $color-main-background;
  135. &:hover, &:focus {
  136. color: nc-lighten($color-main-text, 86%);
  137. }
  138. }
  139. }
  140. /* SCROLLING */
  141. ::-webkit-scrollbar {
  142. width: 5px;
  143. height: 5px;
  144. }
  145. ::-webkit-scrollbar-track-piece {
  146. background-color: transparent;
  147. }
  148. ::-webkit-scrollbar-thumb {
  149. background: nc-darken($color-main-background, 14%);
  150. border-radius: $border-radius;
  151. }
  152. /* Searchbox */
  153. .searchbox {
  154. position: relative;
  155. input[type='search'] {
  156. position: relative;
  157. font-size: 1.2em;
  158. padding: 3px;
  159. padding-left: 25px;
  160. padding-right: 20px;
  161. background: transparent url('../img/actions/search-white.svg?v=1') no-repeat center center;
  162. color: $color-primary-text;
  163. border: 0;
  164. border-radius: $border-radius;
  165. margin-top: 9px;
  166. width: 0;
  167. cursor: pointer;
  168. -webkit-transition: all 100ms;
  169. transition: all 100ms;
  170. opacity: .6;
  171. &:focus, &:active, &:valid {
  172. background-position-x: 6px;
  173. color: $color-primary-text;
  174. width: 155px;
  175. cursor: text;
  176. background-color: $color-primary !important;
  177. border: 1px solid rgba($color-primary-text, 0.5) !important;
  178. }
  179. &:hover, &:focus, &:active {
  180. opacity: 1;
  181. }
  182. & ~ .icon-close-white {
  183. display: inline;
  184. position: absolute;
  185. width: 30px;
  186. height: 100%;
  187. right: 0;
  188. top: 0;
  189. margin: 0;
  190. &, &:focus, &:active, &:hover {
  191. border: none;
  192. background-color: transparent;
  193. }
  194. }
  195. &:not(:valid) ~ .icon-close-white {
  196. display: none;
  197. }
  198. &::-webkit-search-cancel-button {
  199. -webkit-appearance: none;
  200. }
  201. }
  202. }
  203. /* CONTENT ------------------------------------------------------------------ */
  204. #controls {
  205. box-sizing: border-box;
  206. position: -webkit-sticky;
  207. position: sticky;
  208. height: 44px;
  209. padding: 0;
  210. margin: 0;
  211. background-color: rgba($color-main-background, 0.95);
  212. z-index: 60;
  213. -webkit-user-select: none;
  214. -moz-user-select: none;
  215. -ms-user-select: none;
  216. user-select: none;
  217. display: flex;
  218. top: 0;
  219. }
  220. /* position controls for apps with app-navigation */
  221. .viewer-mode #app-navigation + #app-content #controls {
  222. left: 0;
  223. }
  224. #app-navigation * {
  225. box-sizing: border-box;
  226. }
  227. #controls .actions {
  228. > div,
  229. & {
  230. > .button, button {
  231. box-sizing: border-box;
  232. display: inline-block;
  233. display: flex;
  234. height: 36px;
  235. width: 36px;
  236. align-items: center;
  237. justify-content: center;
  238. }
  239. .button.hidden {
  240. display: none;
  241. }
  242. }
  243. }
  244. #content {
  245. position: relative;
  246. height: 100%;
  247. width: 100%;
  248. .hascontrols {
  249. margin-top: 45px;
  250. }
  251. }
  252. #content-wrapper {
  253. position: absolute;
  254. height: 100%;
  255. width: 100%;
  256. overflow-x: hidden;
  257. /* prevent horizontal scrollbar */
  258. padding-top: 50px;
  259. box-sizing: border-box;
  260. }
  261. /* allow horizontal scrollbar for personal and admin settings */
  262. #body-settings:not(.snapjs-left) .app-settings {
  263. overflow-x: auto;
  264. }
  265. #emptycontent, .emptycontent {
  266. color: nc-lighten($color-main-text, 53%);
  267. text-align: center;
  268. margin-top: 30vh;
  269. width: 100%;
  270. }
  271. #app-sidebar #emptycontent, #app-sidebar .emptycontent {
  272. margin-top: 10vh;
  273. }
  274. #emptycontent.emptycontent-search, .emptycontent.emptycontent-search {
  275. position: static;
  276. }
  277. #emptycontent h2, .emptycontent h2 {
  278. margin-bottom: 10px;
  279. line-height: 150%;
  280. }
  281. #emptycontent [class^='icon-'], .emptycontent [class^='icon-'], #emptycontent [class*=' icon-'], .emptycontent [class*=' icon-'] {
  282. background-size: 64px;
  283. height: 64px;
  284. width: 64px;
  285. margin: 0 auto 15px;
  286. opacity: .4;
  287. }
  288. /* LOG IN & INSTALLATION ------------------------------------------------------------ */
  289. /* Some whitespace to the top */
  290. #body-login {
  291. #header {
  292. padding-top: 100px;
  293. }
  294. background-attachment: fixed;
  295. /* fix background gradient */
  296. height: 100%;
  297. /* fix sticky footer */
  298. p.info, form fieldset legend, #datadirContent label {
  299. text-align: center;
  300. color: $color-primary-text;
  301. }
  302. form {
  303. fieldset .warning-info, input[type='checkbox'] + label {
  304. text-align: center;
  305. color: $color-primary-text;
  306. }
  307. .warning input[type='checkbox'] {
  308. &:hover + label, &:focus + label, + label {
  309. color: $color-primary-text !important;
  310. }
  311. }
  312. }
  313. .update {
  314. h2 {
  315. margin: 0 0 20px;
  316. }
  317. a {
  318. color: $color-primary-text;
  319. border-bottom: 1px solid nc-darken($color-main-background, 27%);
  320. }
  321. }
  322. .infogroup {
  323. margin-bottom: 15px;
  324. }
  325. p#message img {
  326. vertical-align: middle;
  327. padding: 5px;
  328. }
  329. div.buttons {
  330. text-align: center;
  331. }
  332. p.info {
  333. margin: 0 auto;
  334. padding-top: 20px;
  335. -webkit-user-select: none;
  336. -moz-user-select: none;
  337. -ms-user-select: none;
  338. user-select: none;
  339. a {
  340. font-weight: 600;
  341. padding: 13px;
  342. margin: -13px;
  343. }
  344. }
  345. form {
  346. position: relative;
  347. width: 280px;
  348. margin: 16px auto;
  349. padding: 0;
  350. fieldset {
  351. margin-bottom: 20px;
  352. text-align: left;
  353. -webkit-user-select: none;
  354. -moz-user-select: none;
  355. -ms-user-select: none;
  356. user-select: none;
  357. }
  358. #sqliteInformation {
  359. margin-top: -20px;
  360. margin-bottom: 20px;
  361. }
  362. #adminaccount {
  363. margin-bottom: 15px;
  364. }
  365. fieldset legend {
  366. width: 100%;
  367. }
  368. }
  369. }
  370. /* Dark subtle label text */
  371. /* overrides another !important statement that sets this to unreadable black */
  372. #datadirContent label {
  373. width: 100%;
  374. }
  375. #body-login {
  376. #datadirContent label {
  377. display: block;
  378. margin: 0;
  379. }
  380. form #datadirField legend {
  381. margin-bottom: 15px;
  382. }
  383. #showAdvanced {
  384. padding: 13px;
  385. /* increase clickable area of Advanced dropdown */
  386. img {
  387. vertical-align: bottom;
  388. /* adjust position of Advanced dropdown arrow */
  389. margin-left: -4px;
  390. }
  391. }
  392. .icon-info-white {
  393. padding: 10px;
  394. }
  395. .strengthify-wrapper {
  396. display: inline-block;
  397. position: relative;
  398. left: 5px;
  399. top: -20px;
  400. width: 269px;
  401. border-radius: 0 0 2px 2px;
  402. overflow: hidden;
  403. height: 3px;
  404. }
  405. input {
  406. &[type='text'], &[type='password'], &[type='email'] {
  407. border: none;
  408. font-weight: 300;
  409. }
  410. }
  411. }
  412. /* strengthify wrapper */
  413. /* General new input field look */
  414. /* Nicely grouping input field sets */
  415. .grouptop, .groupmiddle, .groupbottom {
  416. position: relative;
  417. -webkit-user-select: none;
  418. -moz-user-select: none;
  419. -ms-user-select: none;
  420. user-select: none;
  421. }
  422. #body-login .grouptop input, .grouptop input {
  423. margin-bottom: 0 !important;
  424. border-bottom: 0 !important;
  425. border-bottom-left-radius: 0 !important;
  426. border-bottom-right-radius: 0 !important;
  427. }
  428. #body-login .groupmiddle input, .groupmiddle input {
  429. margin-top: 0 !important;
  430. margin-bottom: 0 !important;
  431. border-top: 0 !important;
  432. border-bottom: 0 !important;
  433. border-radius: 0 !important;
  434. box-shadow: 0 1px 0 rgba($color-main-text, 0.1) inset !important;
  435. }
  436. #body-login .groupbottom input, .groupbottom input {
  437. margin-top: 0 !important;
  438. border-top: 0 !important;
  439. border-top-right-radius: 0 !important;
  440. border-top-left-radius: 0 !important;
  441. box-shadow: 0 1px 0 rgba($color-main-text, 0.1) inset !important;
  442. }
  443. #body-login .groupbottom input[type=submit] {
  444. box-shadow: none !important;
  445. }
  446. /* keep the labels for screen readers but hide them since we use placeholders */
  447. label.infield {
  448. display: none;
  449. }
  450. #body-login {
  451. form {
  452. input[type='checkbox'] + label {
  453. position: relative;
  454. margin: 0;
  455. padding: 14px;
  456. vertical-align: middle;
  457. -webkit-user-select: none;
  458. -moz-user-select: none;
  459. -ms-user-select: none;
  460. user-select: none;
  461. }
  462. .errors {
  463. background: rgba($color-error, .35);
  464. border: 1px solid $color-error;
  465. list-style-indent: inside;
  466. margin: 0 0 2em;
  467. padding: 1em;
  468. }
  469. }
  470. .success {
  471. background: rgba($color-success, .35);
  472. border: 1px solid $color-success;
  473. width: 35%;
  474. margin: 30px auto;
  475. padding: 1em;
  476. text-align: center;
  477. }
  478. #showAdvanced > img {
  479. padding: 4px;
  480. box-sizing: border-box;
  481. }
  482. p.info a, #showAdvanced {
  483. color: $color-primary-text;
  484. }
  485. #remember_login {
  486. &:hover + label, &:focus + label {
  487. opacity: .6;
  488. }
  489. }
  490. #forgot-password {
  491. &:hover, &:focus {
  492. opacity: .6;
  493. }
  494. }
  495. p.info a {
  496. &:hover, &:focus {
  497. opacity: .6;
  498. }
  499. }
  500. }
  501. /* Show password toggle */
  502. #show, #dbpassword {
  503. position: absolute;
  504. right: 1em;
  505. top: .8em;
  506. float: right;
  507. }
  508. #show, #dbpassword, #personal-show {
  509. display: none;
  510. }
  511. #show + label, #dbpassword + label {
  512. right: 21px;
  513. top: 15px !important;
  514. margin: -14px !important;
  515. padding: 14px !important;
  516. }
  517. #show:checked + label, #dbpassword:checked + label, #personal-show:checked + label {
  518. opacity: .8;
  519. }
  520. #show + label, #dbpassword + label, #personal-show + label {
  521. position: absolute !important;
  522. height: 20px;
  523. width: 24px;
  524. background-image: url('../img/actions/toggle.svg?v=1');
  525. background-repeat: no-repeat;
  526. background-position: center;
  527. opacity: .3;
  528. }
  529. #show + label:before, #dbpassword + label:before, #personal-show + label:before {
  530. display: none;
  531. }
  532. #pass2, input[name='personal-password-clone'] {
  533. padding-right: 30px;
  534. }
  535. .personal-show-container {
  536. position: relative;
  537. display: inline-block;
  538. margin-right: 6px;
  539. }
  540. #personal-show + label {
  541. display: block;
  542. right: 0;
  543. margin-top: -36px;
  544. padding: 6px 4px;
  545. }
  546. /* Database selector */
  547. #body-login {
  548. form #selectDbType {
  549. text-align: center;
  550. white-space: nowrap;
  551. margin: 0;
  552. .info {
  553. white-space: normal;
  554. }
  555. label {
  556. position: static;
  557. margin: 0 -3px 5px;
  558. font-size: 12px;
  559. background: nc-darken($color-main-background, 3%);
  560. color: nc-lighten($color-main-text, 53%);
  561. cursor: pointer;
  562. border: 1px solid nc-darken($color-main-background, 14%);
  563. span {
  564. cursor: pointer;
  565. padding: 10px 20px;
  566. }
  567. &.ui-state-hover, &.ui-state-active {
  568. color: $color-main-text;
  569. background-color: nc-darken($color-main-background, 8%);
  570. }
  571. }
  572. }
  573. .warning, .update, .error {
  574. display: block;
  575. padding: 10px;
  576. background-color: rgba($color-main-text, 0.3);
  577. color: $color-primary-text;
  578. text-align: left;
  579. border-radius: $border-radius;
  580. cursor: default;
  581. }
  582. .update {
  583. width: inherit;
  584. text-align: center;
  585. .appList {
  586. list-style: disc;
  587. text-align: left;
  588. margin-left: 25px;
  589. margin-right: 25px;
  590. }
  591. }
  592. .v-align {
  593. width: inherit;
  594. }
  595. .update img.float-spinner {
  596. float: left;
  597. }
  598. }
  599. /* Warnings and errors are the same */
  600. #body-user .warning, #body-settings .warning {
  601. margin-top: 8px;
  602. padding: 5px;
  603. background: rgba($color-error, .15);
  604. border-radius: $border-radius;
  605. }
  606. .warning {
  607. legend, a {
  608. color: $color-primary-text !important;
  609. font-weight: 600 !important;
  610. }
  611. }
  612. .error {
  613. a {
  614. color: $color-primary-text !important;
  615. font-weight: 600 !important;
  616. &.button {
  617. color: nc-lighten($color-main-text, 33%) !important;
  618. display: inline-block;
  619. text-align: center;
  620. }
  621. }
  622. pre {
  623. white-space: pre-wrap;
  624. text-align: left;
  625. }
  626. }
  627. .error-wide {
  628. width: 700px;
  629. margin-left: -200px !important;
  630. .button {
  631. color: black !important;
  632. }
  633. }
  634. .warning-input {
  635. border-color: $color-error !important;
  636. }
  637. /* Fixes for log in page, TODO should be removed some time */
  638. #body-login {
  639. ul.error-wide {
  640. margin-top: 35px;
  641. }
  642. .warning {
  643. margin: 0 7px 5px 4px;
  644. legend {
  645. opacity: 1;
  646. }
  647. }
  648. a.warning {
  649. cursor: pointer;
  650. }
  651. .updateProgress .error {
  652. margin-top: 10px;
  653. margin-bottom: 10px;
  654. }
  655. }
  656. /* fixes for update page TODO should be fixed some time in a proper way */
  657. /* this is just for an error while updating the ownCloud instance */
  658. /* Alternative Logins */
  659. #alternative-logins {
  660. legend {
  661. margin-bottom: 10px;
  662. }
  663. li {
  664. height: 40px;
  665. display: inline-block;
  666. white-space: nowrap;
  667. }
  668. }
  669. /* Log in and install button */
  670. #body-login #submit-wrapper {
  671. position: relative; /* Make the wrapper the containing block of its
  672. absolutely positioned descendant icons */
  673. .icon-confirm-white {
  674. position: absolute;
  675. top: 23px;
  676. right: 23px;
  677. }
  678. .icon-loading-small {
  679. position: absolute;
  680. top: 22px;
  681. right: 24px;
  682. }
  683. #submit-icon {
  684. pointer-events: none; /* The submit icon is positioned on the submit
  685. button. From the user point of view the icon is
  686. part of the button, so the clicks on the icon
  687. have to be applied to the button instead. */
  688. }
  689. }
  690. #body-login input {
  691. font-size: 20px;
  692. margin: 5px;
  693. padding: 10px 10px 8px;
  694. &[type='text'], &[type='password'] {
  695. width: calc(100% - 10px); /* 5px margin */
  696. }
  697. &.login {
  698. width: 269px;
  699. background-position: right 16px center;
  700. }
  701. &[type='submit'] {
  702. padding: 10px 20px;
  703. /* larger log in and installation buttons */
  704. }
  705. }
  706. #remember_login {
  707. margin: 18px 5px 0 16px !important;
  708. }
  709. #body-login {
  710. .remember-login-container {
  711. display: inline-block;
  712. margin: 10px 0;
  713. text-align: center;
  714. width: 100%;
  715. }
  716. #forgot-password {
  717. padding: 11px;
  718. float: right;
  719. color: $color-primary-text;
  720. }
  721. .wrapper {
  722. min-height: 100%;
  723. margin: 0 auto -70px;
  724. width: 300px;
  725. }
  726. footer, .push {
  727. height: 70px;
  728. }
  729. }
  730. /* Sticky footer */
  731. /* round profile photos */
  732. .avatar, .avatardiv {
  733. border-radius: 50%;
  734. flex-shrink: 0;
  735. img {
  736. border-radius: 50%;
  737. flex-shrink: 0;
  738. }
  739. }
  740. td.avatar {
  741. border-radius: 0;
  742. }
  743. #notification-container {
  744. position: absolute;
  745. top: 0;
  746. width: 100%;
  747. text-align: center;
  748. }
  749. #notification {
  750. margin: 0 auto;
  751. max-width: 60%;
  752. z-index: 8000;
  753. background-color: $color-main-background;
  754. border: 0;
  755. padding: 1px 8px;
  756. display: none;
  757. position: relative;
  758. top: 0;
  759. border-bottom-left-radius: 3px;
  760. border-bottom-right-radius: 3px;
  761. opacity: .9;
  762. span {
  763. cursor: pointer;
  764. margin-left: 1em;
  765. }
  766. overflow-x: hidden;
  767. overflow-y: auto;
  768. max-height: 100px;
  769. .row {
  770. position: relative;
  771. .close {
  772. display: inline-block;
  773. vertical-align: middle;
  774. position: absolute;
  775. right: 0;
  776. top: 0;
  777. margin-top: 2px;
  778. }
  779. &.closeable {
  780. padding-right: 20px;
  781. }
  782. }
  783. }
  784. tr .action:not(.permanent), .selectedActions a {
  785. opacity: 0;
  786. }
  787. tr {
  788. &:hover .action, &:focus .action, .action.permanent {
  789. opacity: .5;
  790. }
  791. }
  792. .selectedActions a {
  793. opacity: .5;
  794. }
  795. tr .action {
  796. width: 16px;
  797. height: 16px;
  798. }
  799. .header-action {
  800. opacity: .8;
  801. }
  802. tr {
  803. &:hover .action:hover, &:focus .action:focus {
  804. opacity: 1;
  805. }
  806. }
  807. .selectedActions a {
  808. &:hover, &:focus {
  809. opacity: 1;
  810. }
  811. }
  812. .header-action {
  813. &:hover, &:focus {
  814. opacity: 1;
  815. }
  816. }
  817. tbody tr {
  818. &:hover, &:focus, &:active {
  819. background-color: nc-darken($color-main-background, 3%);
  820. }
  821. }
  822. code {
  823. font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
  824. }
  825. .pager {
  826. list-style: none;
  827. float: right;
  828. display: inline;
  829. margin: .7em 13em 0 0;
  830. li {
  831. display: inline-block;
  832. }
  833. }
  834. .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
  835. overflow: hidden;
  836. text-overflow: ellipsis;
  837. }
  838. .ui-icon-circle-triangle-e {
  839. background-image: url('../img/actions/play-next.svg?v=1');
  840. }
  841. .ui-icon-circle-triangle-w {
  842. background-image: url('../img/actions/play-previous.svg?v=1');
  843. }
  844. /* ---- jQuery UI datepicker ---- */
  845. .ui-widget.ui-datepicker {
  846. margin-top: 10px;
  847. padding: 4px 8px;
  848. width: auto;
  849. border-radius: $border-radius;
  850. border: none;
  851. .ui-state-default,
  852. .ui-widget-content .ui-state-default,
  853. .ui-widget-header .ui-state-default {
  854. border: 1px solid transparent;
  855. background: inherit;
  856. }
  857. .ui-widget-header {
  858. padding: 7px;
  859. font-size: 13px;
  860. border: none;
  861. background-color: $color-main-background;
  862. color: $color-main-text;
  863. .ui-datepicker-title {
  864. line-height: 1;
  865. font-weight: 300;
  866. }
  867. .ui-icon {
  868. opacity: .5;
  869. &.ui-icon-circle-triangle-e {
  870. background: url("../img/actions/arrow-right.svg") center center no-repeat;
  871. }
  872. &.ui-icon-circle-triangle-w {
  873. background: url("../img/actions/arrow-left.svg") center center no-repeat;
  874. }
  875. }
  876. .ui-state-hover .ui-icon {
  877. opacity: 1;
  878. }
  879. }
  880. .ui-datepicker-calendar {
  881. th {
  882. font-weight: normal;
  883. color: nc-lighten($color-main-text, 33%);
  884. opacity: .8;
  885. width: 26px;
  886. padding: 2px;
  887. }
  888. tr:hover {
  889. background-color: inherit;
  890. }
  891. td {
  892. &.ui-datepicker-today a:not(.ui-state-hover) {
  893. background-color: nc-lighten($color-main-text, 86%);
  894. }
  895. &.ui-datepicker-current-day a.ui-state-active,
  896. .ui-state-hover,
  897. .ui-state-focus {
  898. background-color: $color-primary;
  899. color: $color-primary-text;
  900. font-weight: bold;
  901. }
  902. &.ui-datepicker-week-end:not(.ui-state-disabled) :not(.ui-state-hover),
  903. .ui-priority-secondary:not(.ui-state-hover) {
  904. color: nc-lighten($color-main-text, 33%);
  905. opacity: .8;
  906. }
  907. }
  908. }
  909. }
  910. .ui-datepicker-prev, .ui-datepicker-next {
  911. border: nc-darken($color-main-background, 14%);
  912. background: $color-main-background;
  913. }
  914. /* ---- jQuery UI timepicker ---- */
  915. .ui-widget.ui-timepicker {
  916. margin-top: 10px !important;
  917. width: auto !important;
  918. border-radius: $border-radius;
  919. .ui-widget-content {
  920. border: none !important;
  921. }
  922. .ui-state-default,
  923. .ui-widget-content .ui-state-default,
  924. .ui-widget-header .ui-state-default {
  925. border: 1px solid transparent;
  926. background: inherit;
  927. }
  928. .ui-widget-header {
  929. padding: 7px;
  930. font-size: 13px;
  931. border: none;
  932. background-color: $color-main-background;
  933. color: $color-main-text;
  934. .ui-timepicker-title {
  935. line-height: 1;
  936. font-weight: 300;
  937. }
  938. }
  939. /* AM/PM fix */
  940. table.ui-timepicker tr .ui-timepicker-hour-cell:first-child {
  941. margin-left: 30px;
  942. }
  943. .ui-timepicker-table {
  944. th {
  945. font-weight: normal;
  946. color: nc-lighten($color-main-text, 33%);
  947. opacity: .8;
  948. &.periods {
  949. padding: 0;
  950. width: 30px;
  951. line-height: 30px;
  952. }
  953. }
  954. tr:hover {
  955. background-color: inherit;
  956. }
  957. td {
  958. &.ui-timepicker-hour-cell a.ui-state-active,
  959. &.ui-timepicker-minute-cell a.ui-state-active,
  960. .ui-state-hover,
  961. .ui-state-focus {
  962. background-color: $color-primary;
  963. color: $color-primary-text;
  964. font-weight: bold;
  965. }
  966. &.ui-timepicker-minutes:not(.ui-state-hover) {
  967. color: nc-lighten($color-main-text, 33%);
  968. }
  969. &.ui-timepicker-hours {
  970. border-right: 1px solid $color-border;
  971. }
  972. }
  973. }
  974. }
  975. /* ---- jQuery UI datepicker & timepicker global rules ---- */
  976. .ui-widget.ui-datepicker .ui-datepicker-calendar,
  977. .ui-widget.ui-timepicker table.ui-timepicker {
  978. tr {
  979. display: flex;
  980. flex-wrap: nowrap;
  981. justify-content: space-between;
  982. td {
  983. flex: 1 1 auto;
  984. margin: 0;
  985. padding: 2px;
  986. height: 26px;
  987. width: 26px;
  988. display: flex;
  989. align-items: center;
  990. justify-content: center;
  991. > * {
  992. border-radius: 50%;
  993. text-align: center;
  994. font-weight: normal;
  995. color: $color-main-text;
  996. display: block;
  997. line-height: 18px;
  998. width: 18px;
  999. height: 18px;
  1000. padding: 3px;
  1001. font-size: .9em;
  1002. }
  1003. }
  1004. }
  1005. }
  1006. /* ---- DIALOGS ---- */
  1007. #oc-dialog-filepicker-content {
  1008. .dirtree {
  1009. width: 92%;
  1010. flex-wrap: wrap;
  1011. div:first-child a {
  1012. background-image: url('../img/places/home.svg?v=1');
  1013. background-repeat: no-repeat;
  1014. background-position: left center;
  1015. }
  1016. span {
  1017. &:not(:last-child) {
  1018. cursor: pointer;
  1019. }
  1020. &:last-child {
  1021. font-weight: bold;
  1022. }
  1023. &:not(:last-child)::after {
  1024. content: '>';
  1025. padding: 3px;
  1026. }
  1027. }
  1028. }
  1029. .filelist-container {
  1030. box-sizing: border-box;
  1031. display: inline-block;
  1032. overflow-y: auto;
  1033. height: 100%;
  1034. /** overflow under the button row */
  1035. width: 100%;
  1036. }
  1037. .emptycontent {
  1038. color: nc-lighten($color-main-text, 53%);
  1039. text-align: center;
  1040. margin-top: 80px;
  1041. width: 100%;
  1042. display: none;
  1043. }
  1044. .filelist {
  1045. background-color: $color-main-background;
  1046. width: 100%;
  1047. }
  1048. #filestable.filelist {
  1049. /* prevent the filepicker to overflow */
  1050. min-width: initial;
  1051. margin-bottom: 50px;
  1052. }
  1053. .filelist {
  1054. td {
  1055. padding: 14px;
  1056. border-bottom: 1px solid $color-border;
  1057. }
  1058. tr:last-child td {
  1059. border-bottom: none;
  1060. }
  1061. .filename {
  1062. overflow: hidden;
  1063. white-space: nowrap;
  1064. text-overflow: ellipsis;
  1065. background-size: 32px;
  1066. background-repeat: no-repeat;
  1067. padding-left: 51px;
  1068. background-position: 7px 7px;
  1069. cursor: pointer;
  1070. }
  1071. .filesize, .date {
  1072. width: 80px;
  1073. }
  1074. .filesize {
  1075. text-align: right;
  1076. }
  1077. }
  1078. .filepicker_element_selected {
  1079. background-color: lightblue;
  1080. }
  1081. }
  1082. .ui-dialog {
  1083. position: fixed !important;
  1084. }
  1085. span.ui-icon {
  1086. float: left;
  1087. margin: 3px 7px 30px 0;
  1088. }
  1089. /* ---- CONTACTS MENU ---- */
  1090. #contactsmenu {
  1091. .menutoggle {
  1092. background-size: 16px 16px;
  1093. padding: 14px;
  1094. cursor: pointer;
  1095. opacity: .6;
  1096. }
  1097. }
  1098. #contactsmenu > .menu {
  1099. /* show ~4.5 entries */
  1100. height: 278px;
  1101. width: 350px;
  1102. max-width: 90%;
  1103. right: 13px;
  1104. &::after {
  1105. right: 61px;
  1106. }
  1107. .emptycontent {
  1108. margin-top: 5vh !important;
  1109. margin-bottom: 2vh;
  1110. .icon-loading,
  1111. .icon-search {
  1112. display: inline-block;
  1113. }
  1114. }
  1115. .content {
  1116. max-height: calc(100% - 50px);
  1117. height: 100%;
  1118. overflow-y: auto;
  1119. .footer {
  1120. text-align: center;
  1121. a {
  1122. display: block;
  1123. width: 100%;
  1124. padding: 12px 0;
  1125. opacity: .5;
  1126. }
  1127. }
  1128. }
  1129. .contact {
  1130. display: flex;
  1131. position: relative;
  1132. align-items: center;
  1133. padding: 3px 3px 3px 10px;
  1134. border-bottom: 1px solid $color-border;
  1135. :last-of-type {
  1136. border-bottom: none;
  1137. }
  1138. .avatar {
  1139. height: 32px;
  1140. width: 32px;
  1141. display: inline-block;
  1142. }
  1143. .body {
  1144. flex-grow: 1;
  1145. padding-left: 8px;
  1146. div {
  1147. position: relative;
  1148. width: 100%;
  1149. }
  1150. .full-name, .last-message {
  1151. /* TODO: don't use fixed width */
  1152. max-width: 204px;
  1153. overflow: hidden;
  1154. white-space: nowrap;
  1155. text-overflow: ellipsis;
  1156. }
  1157. .last-message {
  1158. opacity: .5;
  1159. }
  1160. }
  1161. .top-action, .second-action, .other-actions {
  1162. width: 16px;
  1163. height: 16px;
  1164. padding: 14px;
  1165. opacity: .5;
  1166. cursor: pointer;
  1167. :hover {
  1168. opacity: 1;
  1169. }
  1170. }
  1171. /* actions menu */
  1172. .menu {
  1173. top: 47px;
  1174. margin-right: 13px;
  1175. }
  1176. .popovermenu::after {
  1177. right: 2px;
  1178. }
  1179. }
  1180. }
  1181. #contactsmenu-search {
  1182. width: calc(100% - 16px);
  1183. margin: 8px;
  1184. height: 34px;
  1185. }
  1186. /* ---- TOOLTIPS ---- */
  1187. .extra-data {
  1188. padding-right: 5px !important;
  1189. }
  1190. /* ---- TAGS ---- */
  1191. #tagsdialog {
  1192. .content {
  1193. width: 100%;
  1194. height: 280px;
  1195. }
  1196. .scrollarea {
  1197. overflow: auto;
  1198. border: 1px solid nc-darken($color-main-background, 14%);
  1199. width: 100%;
  1200. height: 240px;
  1201. }
  1202. .bottombuttons {
  1203. width: 100%;
  1204. height: 30px;
  1205. * {
  1206. float: left;
  1207. }
  1208. }
  1209. .taglist li {
  1210. background: nc-darken($color-main-background, 3%);
  1211. padding: .3em .8em;
  1212. white-space: nowrap;
  1213. overflow: hidden;
  1214. text-overflow: ellipsis;
  1215. -webkit-transition: background-color 500ms;
  1216. transition: background-color 500ms;
  1217. &:hover, &:active {
  1218. background: nc-darken($color-main-background, 8%);
  1219. }
  1220. }
  1221. .addinput {
  1222. width: 90%;
  1223. clear: both;
  1224. }
  1225. }
  1226. /* ---- BREADCRUMB ---- */
  1227. .breadcrumb {
  1228. display: inline-flex;
  1229. }
  1230. div.crumb {
  1231. display: inline-flex;
  1232. background-image: url('../img/breadcrumb.svg?v=1');
  1233. background-repeat: no-repeat;
  1234. background-position: right center;
  1235. height: 44px;
  1236. background-size: auto 24px;
  1237. flex: 0 0 auto;
  1238. order: 1;
  1239. padding-right: 7px;
  1240. &.crumbmenu {
  1241. order: 2;
  1242. position: relative;
  1243. a {
  1244. opacity: 0.5
  1245. }
  1246. &.canDropChildren,
  1247. &.canDrop {
  1248. .popovermenu {
  1249. display: block;
  1250. }
  1251. }
  1252. // Fix because of the display flex
  1253. .popovermenu {
  1254. top: 100%;
  1255. margin-right: 3px;
  1256. ul {
  1257. max-height: 345px;
  1258. overflow-y: auto;
  1259. overflow-x: hidden;
  1260. padding-right: 5px;
  1261. li.canDrop span:first-child {
  1262. background-image: url('../img/filetypes/folder-drag-accept.svg?v=1') !important;
  1263. }
  1264. }
  1265. .in-breadcrumb {
  1266. display: none;
  1267. }
  1268. }
  1269. }
  1270. &.hidden {
  1271. display: none;
  1272. ~ .crumb {
  1273. order: 3;
  1274. }
  1275. }
  1276. > a,
  1277. > span {
  1278. position: relative;
  1279. padding: 12px;
  1280. opacity: 0.5;
  1281. text-overflow: ellipsis;
  1282. white-space: nowrap;
  1283. overflow: hidden;
  1284. flex: 0 0 auto;
  1285. &.icon-home {
  1286. // Hide home text
  1287. text-indent: -9999px;
  1288. }
  1289. }
  1290. > a[class^='icon-'] {
  1291. padding: 0;
  1292. width: 44px;
  1293. }
  1294. &:not(:first-child) a {
  1295. }
  1296. &:last-child {
  1297. font-weight: 600;
  1298. margin-right: 10px;
  1299. // Allow multiple span next to the main 'a'
  1300. a ~ span {
  1301. padding-left: 0;
  1302. }
  1303. }
  1304. &:hover, &:focus, a:focus, &:active {
  1305. > a,
  1306. > span {
  1307. opacity: .7;
  1308. }
  1309. }
  1310. }
  1311. /* some feedback for hover/tap on breadcrumbs */
  1312. .appear {
  1313. opacity: 1;
  1314. -webkit-transition: opacity 500ms ease 0s;
  1315. -moz-transition: opacity 500ms ease 0s;
  1316. -ms-transition: opacity 500ms ease 0s;
  1317. -o-transition: opacity 500ms ease 0s;
  1318. transition: opacity 500ms ease 0s;
  1319. &.transparent {
  1320. opacity: 0;
  1321. }
  1322. }
  1323. /* public footer */
  1324. #body-public footer {
  1325. position: relative;
  1326. text-align: center;
  1327. .info {
  1328. color: nc-lighten($color-main-text, 33%);
  1329. text-align: center;
  1330. margin: 0 auto;
  1331. padding: 20px 0;
  1332. a {
  1333. color: nc-lighten($color-main-text, 33%);
  1334. font-weight: 600;
  1335. padding: 13px;
  1336. margin: -13px;
  1337. }
  1338. }
  1339. }
  1340. /* LEGACY FIX only - do not use fieldsets for settings */
  1341. fieldset {
  1342. &.warning legend, &.update legend {
  1343. top: 18px;
  1344. position: relative;
  1345. }
  1346. &.warning legend + p, &.update legend + p {
  1347. margin-top: 12px;
  1348. }
  1349. }
  1350. /* for IE10 */
  1351. @-ms-viewport {
  1352. width: device-width;
  1353. }
  1354. /* hidden input type=file field */
  1355. .hiddenuploadfield {
  1356. display: none;
  1357. width: 0;
  1358. height: 0;
  1359. opacity: 0;
  1360. }