Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

apps.css 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. /* APP STYLING -------------------------------------------------------------- */
  2. #app {
  3. height: 100%;
  4. width: 100%;
  5. }
  6. #app * {
  7. box-sizing: border-box;
  8. }
  9. /* APP-NAVIGATION ------------------------------------------------------------*/
  10. /* Navigation: folder like structure */
  11. #app-navigation {
  12. width: 250px;
  13. height: 100%;
  14. float: left;
  15. box-sizing: border-box;
  16. background-color: #fff;
  17. padding-bottom: 44px;
  18. -webkit-user-select: none;
  19. -moz-user-select: none;
  20. -ms-user-select: none;
  21. user-select: none;
  22. border-right: 1px solid #eee;
  23. }
  24. #app-navigation > ul {
  25. position: relative;
  26. height: 100%;
  27. width: inherit;
  28. overflow: auto;
  29. box-sizing: border-box;
  30. }
  31. #app-navigation li {
  32. position: relative;
  33. width: 100%;
  34. box-sizing: border-box;
  35. }
  36. #app-navigation .active.with-menu > a,
  37. #app-navigation .with-counter > a {
  38. padding-right: 50px;
  39. }
  40. #app-navigation .active.with-menu.with-counter > a {
  41. padding-right: 90px;
  42. }
  43. #app-navigation .with-icon a,
  44. #app-navigation .app-navigation-entry-loading a {
  45. padding-left: 44px;
  46. background-size: 16px 16px;
  47. background-position: 14px center;
  48. background-repeat: no-repeat;
  49. }
  50. #app-navigation li > a {
  51. display: block;
  52. width: 100%;
  53. line-height: 44px;
  54. min-height: 44px;
  55. padding: 0 12px;
  56. overflow: hidden;
  57. box-sizing: border-box;
  58. white-space: nowrap;
  59. text-overflow: ellipsis;
  60. color: #000;
  61. opacity: .57;
  62. }
  63. #app-navigation .active,
  64. #app-navigation .active a,
  65. #app-navigation li:hover > a,
  66. #app-navigation li:focus > a,
  67. #app-navigation a:focus,
  68. #app-navigation .selected,
  69. #app-navigation .selected a {
  70. opacity: 1;
  71. }
  72. #app-navigation .collapse {
  73. display: none; /* hide collapse button initially */
  74. }
  75. #app-navigation .collapsible > .collapse {
  76. position: absolute;
  77. height: 44px;
  78. width: 44px;
  79. margin: 0;
  80. padding: 0;
  81. background: none; background-image: url('../img/actions/triangle-s.svg');
  82. background-size: 16px; background-repeat: no-repeat; background-position: center;
  83. border: none;
  84. border-radius: 0;
  85. outline: none !important;
  86. box-shadow: none;
  87. }
  88. #app-navigation .collapsible:hover > a,
  89. #app-navigation .collapsible:focus > a {
  90. background-image: none;
  91. }
  92. #app-navigation .collapsible:hover > .collapse,
  93. #app-navigation .collapsible:focus > .collapse {
  94. display: block;
  95. }
  96. #app-navigation .collapsible .collapse {
  97. -webkit-transform: rotate(-90deg);
  98. -ms-transform:rotate(-90deg);
  99. transform: rotate(-90deg);
  100. }
  101. #app-navigation .collapsible.open .collapse {
  102. -webkit-transform: rotate(0);
  103. -ms-transform:rotate(0);
  104. transform: rotate(0);
  105. }
  106. /* Second level nesting for lists */
  107. #app-navigation > ul ul {
  108. display: none;
  109. }
  110. #app-navigation > ul ul li > a {
  111. padding-left: 32px;
  112. }
  113. #app-navigation > .with-icon ul li > a,
  114. #app-navigation > .with-icon ul li.app-navigation-entry-loading > a {
  115. padding-left: 68px;
  116. background-position: 44px center;
  117. }
  118. #app-navigation .collapsible.open {
  119. background-image: linear-gradient(top, rgb(238,238,238) 0%, rgb(245,245,245) 100%);
  120. background-image: -webkit-linear-gradient(top, rgb(238,238,238) 0%, rgb(245,245,245) 100%);
  121. background-image: -ms-linear-gradient(top, rgb(238,238,238) 0%, rgb(245,245,245) 100%);
  122. }
  123. #app-navigation > ul .collapsible.open:hover,
  124. #app-navigation > ul .collapsible.open:focus {
  125. box-shadow: inset 0 0 3px #ddd;
  126. }
  127. #app-navigation > ul .collapsible.open ul {
  128. display: block;
  129. }
  130. /* Deleted entries with undo button */
  131. #app-navigation .app-navigation-entry-deleted {
  132. display: inline-block;
  133. height: 44px;
  134. width: 100%;
  135. }
  136. #app-navigation .app-navigation-entry-deleted-description {
  137. padding-left: 12px;
  138. position: relative;
  139. white-space: nowrap;
  140. text-overflow: ellipsis;
  141. overflow: hidden;
  142. display: inline-block;
  143. width: calc(100% - 49px);
  144. line-height: 44px;
  145. float: left;
  146. }
  147. #app-navigation .app-navigation-entry-deleted-button {
  148. margin: 0;
  149. height: 44px;
  150. width: 44px;
  151. line-height: 44px;
  152. border: 0;
  153. display: inline-block;
  154. background-color: transparent;
  155. opacity: .5;
  156. }
  157. #app-navigation .app-navigation-entry-deleted-button:hover,
  158. #app-navigation .app-navigation-entry-deleted-button:focus {
  159. opacity: 1;
  160. }
  161. /* counter and actions, legacy code */
  162. #app-navigation .utils {
  163. position: absolute;
  164. padding: 7px 7px 0 0;
  165. right: 0;
  166. top: 0;
  167. bottom: 0;
  168. font-size: 12px;
  169. }
  170. #app-navigation .utils button,
  171. #app-navigation .utils .counter {
  172. width: 44px;
  173. height: 44px;
  174. padding-top: 12px;
  175. }
  176. /* drag and drop */
  177. #app-navigation .drag-and-drop {
  178. -webkit-transition: padding-bottom 500ms ease 0s;
  179. transition: padding-bottom 500ms ease 0s;
  180. padding-bottom: 40px;
  181. }
  182. #app-navigation .error {
  183. color: #dd1144;
  184. }
  185. #app-navigation .app-navigation-separator {
  186. border-bottom: 1px solid #ddd;
  187. }
  188. /**
  189. * App navigation utils, buttons and counters for drop down menu
  190. */
  191. #app-navigation .app-navigation-entry-utils {
  192. position: absolute;
  193. top: 0;
  194. right: 0;
  195. z-index: 105;
  196. }
  197. #app-navigation .app-navigation-entry-utils ul {
  198. display: block !important;
  199. }
  200. #app-navigation .app-navigation-entry-utils li {
  201. float: left;
  202. width: 44px !important;
  203. height: 44px;
  204. line-height: 44px;
  205. }
  206. #app-navigation .active > .app-navigation-entry-utils li {
  207. display: inline-block;
  208. }
  209. #app-navigation .app-navigation-entry-utils button {
  210. height: 38px;
  211. width: 38px;
  212. line-height: 38px;
  213. float: left;
  214. }
  215. #app-navigation .app-navigation-entry-utils-menu-button {
  216. display: none;
  217. }
  218. #app-navigation .app-navigation-entry-utils-menu-button button {
  219. border: 0;
  220. opacity: .5;
  221. background-color: transparent;
  222. background-repeat: no-repeat;
  223. background-position: center;
  224. background-image: url('../img/actions/more.svg');
  225. }
  226. #app-navigation .app-navigation-entry-utils-menu-button:hover button,
  227. #app-navigation .app-navigation-entry-utils-menu-button:focus button {
  228. background-color: transparent;
  229. opacity: 1;
  230. }
  231. #app-navigation .app-navigation-entry-utils-counter {
  232. overflow: hidden;
  233. text-overflow: hidden;
  234. text-align: right;
  235. font-size: 9pt;
  236. width: 38px;
  237. line-height: 44px;
  238. padding: 0 10px;
  239. }
  240. #app-navigation .app-navigation-entry-utils ul,
  241. #app-navigation .app-navigation-entry-menu ul {
  242. list-style-type: none;
  243. }
  244. /* menu bubble / popover */
  245. .bubble,
  246. #app-navigation .app-navigation-entry-menu {
  247. position: absolute;
  248. background-color: #fff;
  249. color: #333;
  250. border-radius: 3px;
  251. border-top-right-radius: 0;
  252. z-index: 110;
  253. margin: -5px 14px 5px 10px;
  254. right: 0;
  255. -webkit-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75));
  256. -moz-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75));
  257. -ms-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75));
  258. -o-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75));
  259. filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75));
  260. }
  261. .ie .bubble,
  262. .ie #app-navigation .app-navigation-entry-menu,
  263. .ie .bubble:after,
  264. .ie #app-navigation .app-navigation-entry-menu:after,
  265. .edge .bubble,
  266. .edge #app-navigation .app-navigation-entry-menu,
  267. .edge .bubble:after,
  268. .edge #app-navigation .app-navigation-entry-menu:after {
  269. border: 1px solid #eee;
  270. }
  271. /* miraculous border arrow stuff */
  272. .bubble:after,
  273. #app-navigation .app-navigation-entry-menu:after {
  274. bottom: 100%;
  275. right: 0; /* change this to adjust the arrow position */
  276. border: solid transparent;
  277. content: " ";
  278. height: 0;
  279. width: 0;
  280. position: absolute;
  281. pointer-events: none;
  282. }
  283. .bubble:after,
  284. #app-navigation .app-navigation-entry-menu:after {
  285. border-color: rgba(238, 238, 238, 0);
  286. border-bottom-color: #fff;
  287. border-width: 10px;
  288. margin-left: -10px;
  289. }
  290. .bubble .action {
  291. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)" !important;
  292. filter: alpha(opacity=50) !important;
  293. opacity: .5 !important;
  294. }
  295. .bubble .action:hover,
  296. .bubble .action:focus {
  297. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;
  298. filter: alpha(opacity=100) !important;
  299. opacity: 1 !important;
  300. }
  301. #app-navigation .app-navigation-entry-menu {
  302. display: none;
  303. }
  304. #app-navigation .app-navigation-entry-menu.open {
  305. display: block;
  306. }
  307. /* list of options for an entry */
  308. #app-navigation .app-navigation-entry-menu ul {
  309. display: block !important;
  310. }
  311. #app-navigation .app-navigation-entry-menu li {
  312. float: left;
  313. width: 38px !important;
  314. }
  315. #app-navigation .app-navigation-entry-menu li button {
  316. float: right;
  317. width: 36px !important;
  318. height: 36px;
  319. line-height: 36px;
  320. border: 0;
  321. opacity: .5;
  322. background-color: transparent;
  323. }
  324. #app-navigation .app-navigation-entry-menu li button:hover,
  325. #app-navigation .app-navigation-entry-menu li button:focus {
  326. opacity: 1;
  327. background-color: transparent;
  328. }
  329. /* editing an entry */
  330. #app-navigation .app-navigation-entry-edit {
  331. padding-left: 5px;
  332. padding-right: 5px;
  333. display: inline-block;
  334. height: 39px;
  335. width: 100%;
  336. }
  337. #app-navigation .app-navigation-entry-edit input {
  338. border-bottom-right-radius: 0;
  339. border-top-right-radius: 0;
  340. width: calc(100% - 36px);
  341. padding: 5px;
  342. margin-right: 0;
  343. height: 38px;
  344. float: left;
  345. border: 1px solid rgba(190,190,190,.9);
  346. }
  347. #app-navigation .app-navigation-entry-edit button,
  348. #app-navigation .app-navigation-entry-edit input[type="submit"] {
  349. width: 36px;
  350. height: 38px;
  351. float: left;
  352. }
  353. #app-navigation .app-navigation-entry-edit .icon-checkmark {
  354. border-bottom-left-radius: 0;
  355. border-top-left-radius: 0;
  356. border-left: 0;
  357. margin-right: 0;
  358. }
  359. /* APP-CONTENT ---------------------------------------------------------------*/
  360. /* Part where the content will be loaded into */
  361. #app-content {
  362. position: relative;
  363. height: 100%;
  364. overflow-y: auto;
  365. }
  366. #app-content-wrapper {
  367. min-width: 100%;
  368. min-height: 100%;
  369. }
  370. /* APP-SIDEBAR ----------------------------------------------------------------*/
  371. /*
  372. Sidebar: a sidebar to be used within #app-content
  373. have it as first element within app-content in order to shrink other
  374. sibling containers properly. Compare Files app for example.
  375. */
  376. #app-sidebar {
  377. position: fixed;
  378. top: 45px;
  379. right: 0;
  380. left: auto;
  381. bottom: 0;
  382. width: 27%;
  383. min-width: 300px;
  384. display: block;
  385. background: #fff;
  386. border-left: 1px solid #eee;
  387. -webkit-transition: margin-right 300ms;
  388. transition: margin-right 300ms;
  389. overflow-x: hidden;
  390. overflow-y: auto;
  391. visibility: visible;
  392. z-index: 500;
  393. }
  394. #app-content.with-app-sidebar {
  395. margin-right: 27%;
  396. }
  397. #app-sidebar.disappear {
  398. visibility: hidden;
  399. }
  400. /* APP-SETTINGS ---------------------------------------------------------------*/
  401. /* settings area */
  402. #app-settings {
  403. position: fixed;
  404. width: 250px; /* change to 100% when layout positions are absolute */
  405. bottom: 0;
  406. z-index: 140;
  407. }
  408. #app-settings.opened #app-settings-content {
  409. display: block;
  410. }
  411. #app-settings-content {
  412. display: none;
  413. padding: 10px;
  414. background-color: #fff;
  415. }
  416. #app-settings.open #app-settings-content {
  417. display: block;
  418. /* restrict height of settings and make scrollable */
  419. max-height: 300px;
  420. overflow-y: auto;
  421. }
  422. #app-settings-content,
  423. #app-settings-header {
  424. border-right: 1px solid #eee;
  425. }
  426. /* display input fields at full width */
  427. #app-settings-content input[type='text'] {
  428. width: 93%;
  429. }
  430. .settings-button {
  431. display: block;
  432. height: 44px;
  433. width: 100%;
  434. padding: 0;
  435. margin: 0;
  436. background-color: #fff;
  437. background-image: url('../img/actions/settings.svg');
  438. background-position: 14px center;
  439. background-repeat: no-repeat;
  440. box-shadow: none;
  441. border: 0;
  442. border-radius: 0;
  443. text-align: left;
  444. padding-left: 42px;
  445. font-weight: normal;
  446. }
  447. .settings-button:hover,
  448. .settings-button:focus {
  449. background-color: #fff;
  450. }
  451. .settings-button.opened:hover,
  452. .settings-button.opened:focus {
  453. background-color: #fff;
  454. }
  455. /* buttons */
  456. button.loading {
  457. background-image: url('../img/loading.gif');
  458. background-position: right 10px center; background-repeat: no-repeat;
  459. background-size: 16px;
  460. padding-right: 30px;
  461. }
  462. /* general styles for the content area */
  463. .section {
  464. display: block;
  465. padding: 30px;
  466. color: #555;
  467. margin-bottom: 24px;
  468. }
  469. .section.hidden {
  470. display: none !important;
  471. }
  472. .sub-section {
  473. position: relative;
  474. margin-top: 10px;
  475. margin-left: 27px;
  476. margin-bottom: 10px;
  477. }
  478. /* no top border for first settings item */
  479. #app-content > .section:first-child {
  480. border-top: none;
  481. }
  482. /* heading styles */
  483. h2 {
  484. font-size: 20px;
  485. font-weight: 300;
  486. margin-bottom: 12px;
  487. }
  488. h3 {
  489. font-size: 15px;
  490. font-weight: 300;
  491. margin: 12px 0;
  492. }
  493. /* slight position correction of checkboxes and radio buttons */
  494. .section input[type="checkbox"],
  495. .section input[type="radio"] {
  496. vertical-align: -2px;
  497. margin-right: 4px;
  498. }
  499. .appear {
  500. opacity: 1;
  501. -webkit-transition: opacity 500ms ease 0s;
  502. -moz-transition: opacity 500ms ease 0s;
  503. -ms-transition: opacity 500ms ease 0s;
  504. -o-transition: opacity 500ms ease 0s;
  505. transition: opacity 500ms ease 0s;
  506. }
  507. .appear.transparent {
  508. opacity: 0;
  509. }
  510. /* do not use italic typeface style, instead lighter color */
  511. em {
  512. font-style: normal;
  513. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  514. opacity: .5;
  515. }
  516. /* generic dropdown style */
  517. .dropdown {
  518. background:#eee;
  519. border-bottom-left-radius: 5px;
  520. border-bottom-right-radius: 5px;
  521. box-shadow:0 1px 1px #777;
  522. display:block;
  523. margin-right: 0;
  524. position:absolute;
  525. right:0;
  526. width:420px;
  527. z-index:500;
  528. padding:16px;
  529. }
  530. /* generic tab styles */
  531. .tabHeaders {
  532. margin: 15px;
  533. }
  534. .tabHeaders .tabHeader {
  535. float: left;
  536. padding: 5px;
  537. cursor: pointer;
  538. }
  539. .tabHeaders .tabHeader, .tabHeaders .tabHeader a {
  540. color: #888;
  541. }
  542. .tabHeaders .tabHeader.selected {
  543. font-weight: 600;
  544. }
  545. .tabHeaders .tabHeader.selected,
  546. .tabHeaders .tabHeader:hover {
  547. border-bottom: 1px solid #333;
  548. }
  549. .tabHeaders .tabHeader.selected,
  550. .tabHeaders .tabHeader.selected a,
  551. .tabHeaders .tabHeader:hover,
  552. .tabHeaders .tabHeader:hover a {
  553. color: #000;
  554. }
  555. .tabsContainer {
  556. clear: left;
  557. }
  558. .tabsContainer .tab {
  559. padding: 15px;
  560. }
  561. /* popover menu styles (use together with "bubble" class) */
  562. .popovermenu .menuitem,
  563. .popovermenu .menuitem>span {
  564. cursor: pointer;
  565. vertical-align: middle;
  566. }
  567. .popovermenu .menuitem {
  568. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  569. filter: alpha(opacity=50);
  570. opacity: .5;
  571. }
  572. .popovermenu .menuitem:hover,
  573. .popovermenu .menuitem:focus {
  574. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  575. filter: alpha(opacity=100);
  576. opacity: 1;
  577. }
  578. .popovermenu {
  579. padding: 4px 12px;
  580. }
  581. .popovermenu li {
  582. padding: 5px 0;
  583. }
  584. .popovermenu .menuitem img {
  585. padding: initial;
  586. }
  587. .popovermenu a.menuitem,
  588. .popovermenu label.menuitem,
  589. .popovermenu .menuitem {
  590. padding: 10px;
  591. margin: -10px;
  592. }
  593. .popovermenu.hidden {
  594. display: none;
  595. }
  596. .popovermenu .menuitem {
  597. display: block;
  598. line-height: 30px;
  599. padding-left: 5px;
  600. color: #000;
  601. padding: 0;
  602. }
  603. .popovermenu .menuitem .icon,
  604. .popovermenu .menuitem .no-icon {
  605. display: inline-block;
  606. width: 16px;
  607. height: 16px;
  608. margin-right: 10px;
  609. vertical-align: middle;
  610. }
  611. .popovermenu .menuitem {
  612. opacity: 0.5;
  613. }
  614. .popovermenu li:hover .menuitem {
  615. opacity: 1;
  616. }