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.

styles.scss 28KB

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