2017-01-11 12:55:56 +00:00
|
|
|
/**
|
2017-09-19 16:01:49 +00:00
|
|
|
* @copyright Copyright (c) 2016-2017, John Molakvoæ <skjnldsv@protonmail.com>
|
2017-01-25 13:13:28 +00:00
|
|
|
* @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
|
|
|
|
* @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
|
|
|
|
* @copyright Copyright (c) 2016, pgys <info@pexlab.space>
|
|
|
|
* @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
* @copyright Copyright (c) 2016, Stefan Weil <sw@weilnetz.de>
|
|
|
|
* @copyright Copyright (c) 2016, Roeland Jago Douma <rullzer@owncloud.com>
|
|
|
|
* @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
|
|
|
|
* @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
|
|
|
|
* @copyright Copyright (c) 2015, Thomas Müller <thomas.mueller@tmit.eu>
|
|
|
|
* @copyright Copyright (c) 2015, Vincent Petry <pvince81@owncloud.com>
|
2017-03-27 09:23:33 +00:00
|
|
|
* @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
|
2017-01-11 12:55:56 +00:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* BASE STYLING ------------------------------------------------------------ */
|
2017-01-11 12:44:36 +00:00
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 300;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
line-height: 140%;
|
|
|
|
}
|
2017-03-30 11:07:26 +00:00
|
|
|
|
2017-01-11 12:44:36 +00:00
|
|
|
h3 {
|
|
|
|
font-size: 15px;
|
|
|
|
font-weight: 300;
|
|
|
|
margin: 12px 0;
|
|
|
|
}
|
2017-03-30 11:07:26 +00:00
|
|
|
|
2017-01-11 12:44:36 +00:00
|
|
|
/* do not use italic typeface style, instead lighter color */
|
|
|
|
em {
|
|
|
|
font-style: normal;
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
2017-03-30 11:07:26 +00:00
|
|
|
dl {
|
|
|
|
padding: 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dt,
|
|
|
|
dd {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 12px;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dt {
|
|
|
|
width: 130px;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
padding: 4px 10px;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
|
2018-06-03 08:47:07 +00:00
|
|
|
border-radius: var(--border-radius);
|
2017-03-30 11:07:26 +00:00
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* APP STYLING ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
#content[class*='app-'] * {
|
|
|
|
box-sizing: border-box;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* APP-NAVIGATION ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
/* Navigation: folder like structure */
|
|
|
|
#app-navigation {
|
2018-07-12 16:25:53 +00:00
|
|
|
width: $navigation-width;
|
2018-07-23 18:14:19 +00:00
|
|
|
position: fixed;
|
2018-07-21 11:28:23 +00:00
|
|
|
top: $header-height;
|
|
|
|
left: 0;
|
2018-08-02 20:40:52 +00:00
|
|
|
z-index: 500;
|
2018-07-21 11:28:23 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
2018-07-23 18:14:19 +00:00
|
|
|
// Do not use vh because of mobile headers
|
|
|
|
// are included in the calculation
|
|
|
|
height: calc(100% - #{$header-height});
|
2016-12-22 10:16:32 +00:00
|
|
|
box-sizing: border-box;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2016-12-22 10:16:32 +00:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2018-06-03 08:47:07 +00:00
|
|
|
border-right: 1px solid var(--color-border);
|
2017-01-25 14:34:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-07-12 16:25:53 +00:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2017-12-21 11:06:18 +00:00
|
|
|
|
|
|
|
/* 'New' button */
|
|
|
|
.app-navigation-new {
|
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
|
|
|
button {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
padding-left: 34px;
|
|
|
|
background-position: 10px center;
|
|
|
|
text-align: left;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-19 13:49:28 +00:00
|
|
|
li {
|
|
|
|
position: relative;
|
|
|
|
}
|
2017-09-07 07:35:44 +00:00
|
|
|
> ul {
|
2016-12-22 10:16:32 +00:00
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
width: inherit;
|
2017-09-10 13:38:36 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2016-12-22 10:16:32 +00:00
|
|
|
box-sizing: border-box;
|
2017-09-16 15:33:25 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2017-01-26 19:35:22 +00:00
|
|
|
> li {
|
2017-09-07 08:14:53 +00:00
|
|
|
display: inline-flex;
|
2017-09-07 12:46:53 +00:00
|
|
|
flex-wrap: wrap;
|
2017-09-17 10:40:19 +00:00
|
|
|
order: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
/* Pinned-to-bottom entries */
|
|
|
|
&.pinned {
|
|
|
|
order: 2;
|
2017-09-17 16:12:15 +00:00
|
|
|
&.first-pinned {
|
|
|
|
margin-top: auto !important;
|
|
|
|
}
|
2017-09-17 10:40:19 +00:00
|
|
|
}
|
2017-09-14 14:07:36 +00:00
|
|
|
|
2017-09-14 17:27:43 +00:00
|
|
|
> .app-navigation-entry-deleted {
|
2017-09-14 14:07:36 +00:00
|
|
|
/* Ugly hack for overriding the main entry link */
|
|
|
|
padding-left: 44px !important;
|
|
|
|
}
|
2017-09-14 17:27:43 +00:00
|
|
|
> .app-navigation-entry-edit {
|
|
|
|
/* Ugly hack for overriding the main entry link */
|
|
|
|
/* align the input correctly with the link text
|
|
|
|
44px-6px padding for the input */
|
2017-09-19 13:49:28 +00:00
|
|
|
padding-left: 38px !important;
|
2017-09-14 17:27:43 +00:00
|
|
|
}
|
2017-09-14 14:07:36 +00:00
|
|
|
|
2017-01-26 19:35:22 +00:00
|
|
|
&.active,
|
2018-07-11 08:41:09 +00:00
|
|
|
a:hover,
|
|
|
|
a:focus,
|
|
|
|
a:active,
|
2018-07-12 07:56:46 +00:00
|
|
|
a.selected ,
|
|
|
|
a.active {
|
2017-01-26 19:35:22 +00:00
|
|
|
&,
|
|
|
|
> a {
|
|
|
|
opacity: 1;
|
2018-06-03 08:47:07 +00:00
|
|
|
box-shadow: inset 4px 0 var(--color-primary);
|
2017-01-26 19:35:22 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-14 09:58:13 +00:00
|
|
|
|
|
|
|
/* align loader */
|
|
|
|
&.icon-loading-small:after {
|
|
|
|
left: 22px;
|
2017-09-14 14:50:23 +00:00
|
|
|
top: 22px;
|
2017-09-14 09:58:13 +00:00
|
|
|
}
|
|
|
|
|
2017-09-12 14:43:28 +00:00
|
|
|
/* hide and animate deletion/collapse of subitems */
|
|
|
|
&.deleted,
|
|
|
|
&.collapsible:not(.open) {
|
2017-09-12 14:22:06 +00:00
|
|
|
> ul {
|
|
|
|
opacity: 0;
|
|
|
|
max-height: 0;
|
2018-07-23 18:14:19 +00:00
|
|
|
overflow-y: hidden;
|
2017-09-13 12:19:08 +00:00
|
|
|
/* bezier override the hide/slow effect due to the 2000 max-height */
|
2017-09-13 14:10:20 +00:00
|
|
|
transition: max-height 1000ms cubic-bezier(0, 1, 0, 1),
|
2017-09-13 12:19:08 +00:00
|
|
|
opacity 250ms ease-in-out;
|
2017-09-12 14:22:06 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-14 09:58:13 +00:00
|
|
|
|
2018-06-15 05:54:46 +00:00
|
|
|
&.app-navigation-caption {
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 44px;
|
|
|
|
padding: 0 44px;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
// !important to overwrite specific hover and focus
|
|
|
|
opacity: .7;
|
|
|
|
box-shadow: none !important;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events:none;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-07 12:46:53 +00:00
|
|
|
/* Second level nesting for lists */
|
|
|
|
> ul {
|
2018-01-31 13:51:27 +00:00
|
|
|
flex: 0 1 auto;
|
|
|
|
width: 100%;
|
2017-09-13 14:10:20 +00:00
|
|
|
transition: max-height 2000ms ease-in-out,
|
2017-09-12 14:22:06 +00:00
|
|
|
opacity 250ms ease-in-out;
|
2017-09-13 14:10:20 +00:00
|
|
|
max-height: 9999px;
|
2017-09-12 14:43:28 +00:00
|
|
|
opacity: 1;
|
2018-01-31 13:51:27 +00:00
|
|
|
position: relative;
|
2017-09-07 12:46:53 +00:00
|
|
|
> li {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: wrap;
|
2018-03-19 16:03:31 +00:00
|
|
|
padding-left: 44px;
|
2017-09-07 15:01:04 +00:00
|
|
|
&:hover,
|
2018-06-21 12:35:22 +00:00
|
|
|
&:focus,
|
2017-09-07 15:01:04 +00:00
|
|
|
&.active,
|
|
|
|
a.selected {
|
|
|
|
&,
|
|
|
|
> a {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2017-09-14 09:58:13 +00:00
|
|
|
|
2018-03-19 16:03:31 +00:00
|
|
|
&.active {
|
2018-06-03 08:47:07 +00:00
|
|
|
box-shadow: inset 4px 0 var(--color-primary);
|
2018-03-19 16:03:31 +00:00
|
|
|
}
|
|
|
|
|
2017-09-14 09:58:13 +00:00
|
|
|
/* align loader */
|
|
|
|
&.icon-loading-small:after {
|
2018-01-31 13:51:27 +00:00
|
|
|
left: 22px; /* 44px / 2 */
|
2017-09-12 03:44:46 +00:00
|
|
|
}
|
2018-03-19 16:03:31 +00:00
|
|
|
|
2018-03-22 10:24:13 +00:00
|
|
|
> .app-navigation-entry-deleted {
|
2018-03-19 16:03:31 +00:00
|
|
|
/* margin to keep active indicator visible */
|
|
|
|
margin-left: 4px;
|
|
|
|
padding-left: 84px;
|
|
|
|
}
|
2018-03-22 10:24:13 +00:00
|
|
|
|
|
|
|
> .app-navigation-entry-edit {
|
|
|
|
/* margin to keep active indicator visible */
|
|
|
|
margin-left: 4px;
|
|
|
|
/* align the input correctly with the link text
|
|
|
|
44px+44px-4px-6px padding for the input */
|
|
|
|
padding-left: 78px !important;
|
|
|
|
}
|
2017-09-07 12:46:53 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-10 14:50:35 +00:00
|
|
|
}
|
2017-09-10 15:07:19 +00:00
|
|
|
/* Menu and submenu */
|
|
|
|
> li,
|
|
|
|
> li > ul > li {
|
2017-09-10 14:50:35 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2017-09-14 09:58:13 +00:00
|
|
|
/* hide icons if loading */
|
2017-09-14 09:02:16 +00:00
|
|
|
&.icon-loading-small {
|
|
|
|
> a,
|
|
|
|
> .app-navigation-entry-bullet {
|
2018-01-31 13:51:27 +00:00
|
|
|
/* hide icon or bullet if loading state*/
|
2018-03-12 08:32:19 +00:00
|
|
|
background: transparent !important;
|
2017-09-14 09:02:16 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-14 08:03:27 +00:00
|
|
|
/* Main entry link */
|
2017-09-10 14:21:49 +00:00
|
|
|
> a {
|
|
|
|
background-size: 16px 16px;
|
|
|
|
background-position: 14px center;
|
|
|
|
background-repeat: no-repeat;
|
2017-09-08 14:23:28 +00:00
|
|
|
display: block;
|
2017-09-10 14:21:49 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
line-height: 44px;
|
|
|
|
min-height: 44px;
|
2018-01-31 13:51:27 +00:00
|
|
|
padding: 0 12px 0 44px;
|
2017-09-10 14:21:49 +00:00
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2018-06-05 14:06:01 +00:00
|
|
|
color: var(--color-main-text);
|
2017-09-10 14:21:49 +00:00
|
|
|
opacity: .57;
|
2018-02-28 09:11:10 +00:00
|
|
|
flex: 1 1 0px;
|
2018-01-31 13:51:27 +00:00
|
|
|
z-index: 100; /* above the bullet to allow click*/
|
2017-09-10 14:50:35 +00:00
|
|
|
/* TODO: forbid using img as icon in menu? */
|
2017-09-10 14:21:49 +00:00
|
|
|
&:first-child img {
|
|
|
|
margin-right: 11px;
|
|
|
|
width: 16px;
|
2018-01-10 08:51:48 +00:00
|
|
|
height: 16px;
|
2017-09-23 10:06:18 +00:00
|
|
|
margin-left: -30px;
|
2017-09-10 14:21:49 +00:00
|
|
|
}
|
|
|
|
|
2017-09-10 15:07:19 +00:00
|
|
|
/* counter can also be inside the link */
|
2017-09-10 14:21:49 +00:00
|
|
|
> .app-navigation-entry-utils {
|
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
.app-navigation-entry-utils-counter {
|
|
|
|
padding-right: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
2017-09-08 14:23:28 +00:00
|
|
|
}
|
2017-09-14 08:03:27 +00:00
|
|
|
/* Bullet icon */
|
|
|
|
> .app-navigation-entry-bullet {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
margin: 16px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 50%;
|
2017-09-19 13:49:28 +00:00
|
|
|
cursor: pointer;
|
2018-03-12 08:32:19 +00:00
|
|
|
transition: background 100ms ease-in-out;
|
|
|
|
|
|
|
|
+ a {
|
|
|
|
/* hide icon if bullet, can't have both */
|
|
|
|
background: transparent !important;
|
|
|
|
}
|
2017-09-14 08:03:27 +00:00
|
|
|
}
|
|
|
|
|
2017-09-10 15:07:19 +00:00
|
|
|
/* popover fix the flex positionning of the li parent */
|
2017-09-10 14:21:49 +00:00
|
|
|
> .app-navigation-entry-menu {
|
|
|
|
top: 44px;
|
2017-09-07 08:14:53 +00:00
|
|
|
}
|
2017-09-10 13:55:45 +00:00
|
|
|
|
2017-09-10 15:07:19 +00:00
|
|
|
/* show edit/undo field if editing/deleted */
|
2017-09-14 17:27:43 +00:00
|
|
|
&.editing .app-navigation-entry-edit {
|
|
|
|
opacity: 1;
|
2017-09-19 16:01:49 +00:00
|
|
|
z-index: 250;
|
2017-09-14 17:27:43 +00:00
|
|
|
}
|
2017-09-14 08:03:27 +00:00
|
|
|
&.deleted .app-navigation-entry-deleted {
|
|
|
|
transform: translateX(0);
|
2017-09-19 16:01:49 +00:00
|
|
|
z-index: 250;
|
2017-09-10 03:56:27 +00:00
|
|
|
}
|
2017-09-10 13:26:20 +00:00
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-05-19 18:03:54 +00:00
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-09-08 16:54:45 +00:00
|
|
|
|
2017-09-08 19:33:53 +00:00
|
|
|
/**
|
|
|
|
* Button styling for menu, edit and undo
|
|
|
|
*/
|
|
|
|
.app-navigation-entry-utils .app-navigation-entry-utils-menu-button > button,
|
|
|
|
.app-navigation-entry-deleted .app-navigation-entry-deleted-button {
|
|
|
|
border: 0;
|
|
|
|
opacity: 0.5;
|
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
2017-09-10 03:56:27 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: transparent;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-09-08 19:33:53 +00:00
|
|
|
}
|
|
|
|
|
2017-09-08 16:54:45 +00:00
|
|
|
/**
|
|
|
|
* Collapsible menus
|
|
|
|
*/
|
2016-12-22 10:16:32 +00:00
|
|
|
.collapsible {
|
2017-09-12 15:59:01 +00:00
|
|
|
/* Fallback for old collapse button.
|
|
|
|
TODO: to be removed. Leaved here for retro compatibility */
|
|
|
|
.collapse {
|
2017-09-23 11:29:22 +00:00
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
margin: 0;
|
|
|
|
z-index: 110;
|
2017-09-12 15:59:01 +00:00
|
|
|
}
|
2018-03-12 08:32:19 +00:00
|
|
|
&:before {
|
2016-12-22 10:16:32 +00:00
|
|
|
position: absolute;
|
|
|
|
height: 44px;
|
|
|
|
width: 44px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
2018-08-20 20:06:27 +00:00
|
|
|
@include icon-color('triangle-s', 'actions', $color-black, 1, true);
|
2016-12-22 10:16:32 +00:00
|
|
|
background-size: 16px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
outline: none !important;
|
|
|
|
box-shadow: none;
|
2017-09-12 14:22:06 +00:00
|
|
|
content: ' ';
|
|
|
|
opacity: 0;
|
|
|
|
-webkit-transform: rotate(-90deg);
|
|
|
|
-ms-transform: rotate(-90deg);
|
|
|
|
transform: rotate(-90deg);
|
2018-03-12 08:32:19 +00:00
|
|
|
z-index: 50;
|
2017-09-12 14:43:28 +00:00
|
|
|
}
|
2017-09-12 14:22:06 +00:00
|
|
|
|
2017-09-12 14:46:39 +00:00
|
|
|
/* force padding on link no matter if 'a' has an icon class */
|
2017-09-12 14:43:28 +00:00
|
|
|
> a:first-child {
|
|
|
|
padding-left: 44px;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2018-03-12 08:32:19 +00:00
|
|
|
&:before,
|
2017-09-12 14:22:06 +00:00
|
|
|
> a {
|
2018-07-25 10:29:57 +00:00
|
|
|
transition: background-position 100ms ease-in-out,
|
2017-09-12 14:22:06 +00:00
|
|
|
transform 250ms ease-in-out,
|
|
|
|
opacity 100ms ease-in-out;
|
|
|
|
}
|
2017-01-11 13:03:24 +00:00
|
|
|
&:hover > a,
|
|
|
|
&:focus > a {
|
2017-09-12 14:22:06 +00:00
|
|
|
background-position-x: -50px;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-01-11 13:03:24 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-03-12 08:32:19 +00:00
|
|
|
&:before {
|
2017-09-12 14:22:06 +00:00
|
|
|
opacity: 1;
|
2017-01-11 13:03:24 +00:00
|
|
|
}
|
2018-03-12 08:32:19 +00:00
|
|
|
.app-navigation-entry-bullet {
|
|
|
|
background: transparent !important;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
&.open {
|
2018-03-12 08:32:19 +00:00
|
|
|
&:before {
|
2016-12-22 10:16:32 +00:00
|
|
|
-webkit-transform: rotate(0);
|
|
|
|
-ms-transform: rotate(0);
|
|
|
|
transform: rotate(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* App navigation utils, buttons and counters for drop down menu
|
|
|
|
*/
|
2016-12-22 10:16:32 +00:00
|
|
|
.app-navigation-entry-utils {
|
2017-09-07 12:46:53 +00:00
|
|
|
flex: 0 1 auto;
|
2016-12-22 10:16:32 +00:00
|
|
|
ul {
|
2017-01-11 20:01:54 +00:00
|
|
|
display: flex !important;
|
2017-01-13 14:31:42 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
li {
|
|
|
|
width: 44px !important;
|
|
|
|
height: 44px;
|
|
|
|
}
|
|
|
|
button {
|
2017-09-07 08:48:38 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
box-shadow: none;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-09-07 08:48:38 +00:00
|
|
|
.app-navigation-entry-utils-menu-button {
|
2017-09-10 03:56:27 +00:00
|
|
|
/* Prevent bg img override if an icon class is set */
|
|
|
|
button:not([class^='icon-']):not([class*=' icon-']) {
|
2017-09-07 08:48:38 +00:00
|
|
|
background-image: url('../img/actions/more.svg?v=1');
|
|
|
|
}
|
|
|
|
&:hover button,
|
|
|
|
&:focus button {
|
|
|
|
background-color: transparent;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.app-navigation-entry-utils-counter {
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: right;
|
|
|
|
font-size: 9pt;
|
|
|
|
line-height: 44px;
|
|
|
|
padding: 0 12px; /* Same padding as all li > a in the app-navigation */
|
2018-05-02 12:57:57 +00:00
|
|
|
|
2018-05-03 09:00:04 +00:00
|
|
|
&.highlighted {
|
2018-05-03 15:38:03 +00:00
|
|
|
padding: 0;
|
2018-05-03 09:00:04 +00:00
|
|
|
text-align: center;
|
|
|
|
span {
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 10px;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: var(--color-primary-text);
|
2018-05-03 09:00:04 +00:00
|
|
|
}
|
2018-05-02 12:57:57 +00:00
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-19 00:49:54 +00:00
|
|
|
|
2017-09-08 16:54:45 +00:00
|
|
|
/**
|
|
|
|
* Editable entries
|
|
|
|
*/
|
2017-01-11 12:44:36 +00:00
|
|
|
.app-navigation-entry-edit {
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
2017-09-10 13:26:20 +00:00
|
|
|
display: block;
|
|
|
|
width: calc(100% - 1px); /* Avoid border overlapping */
|
2017-09-14 17:27:43 +00:00
|
|
|
transition: opacity 250ms ease-in-out;
|
|
|
|
opacity: 0;
|
2017-09-10 13:26:20 +00:00
|
|
|
position: absolute;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2017-09-19 16:01:49 +00:00
|
|
|
z-index: -1;
|
2017-10-11 19:08:21 +00:00
|
|
|
form,
|
|
|
|
div {
|
2017-09-10 03:56:27 +00:00
|
|
|
display: inline-flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
input {
|
|
|
|
padding: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
height: 38px;
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-09-14 19:03:18 +00:00
|
|
|
/* overlapp borders */
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
}
|
2017-09-10 03:56:27 +00:00
|
|
|
input[type='text'] {
|
|
|
|
width: 100%;
|
2017-09-19 16:13:20 +00:00
|
|
|
min-width: 0; /* firefox hack: override auto */
|
2017-09-10 14:50:35 +00:00
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
2017-09-10 03:56:27 +00:00
|
|
|
}
|
2017-01-11 13:03:24 +00:00
|
|
|
button,
|
2017-09-10 14:50:35 +00:00
|
|
|
input:not([type='text']) {
|
2017-01-11 12:44:36 +00:00
|
|
|
width: 36px;
|
|
|
|
height: 38px;
|
2017-09-19 16:13:20 +00:00
|
|
|
flex: 0 0 36px;
|
2017-09-10 14:50:35 +00:00
|
|
|
&:not(:last-child) {
|
2018-03-12 08:32:19 +00:00
|
|
|
border-radius: 0 !important;
|
2017-09-14 19:03:18 +00:00
|
|
|
}
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: -1px;
|
2017-09-10 14:50:35 +00:00
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-08 16:54:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Deleted entries with undo button
|
|
|
|
*/
|
|
|
|
.app-navigation-entry-deleted {
|
2017-09-10 03:56:27 +00:00
|
|
|
display: inline-flex;
|
2018-01-31 13:51:27 +00:00
|
|
|
padding-left: 44px;
|
2018-07-23 18:14:19 +00:00
|
|
|
transform: translateX(#{$navigation-width});
|
2017-09-08 16:54:45 +00:00
|
|
|
.app-navigation-entry-deleted-description {
|
|
|
|
position: relative;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2018-02-28 09:11:10 +00:00
|
|
|
flex: 1 1 0px;
|
2017-09-08 16:54:45 +00:00
|
|
|
line-height: 44px;
|
|
|
|
}
|
|
|
|
.app-navigation-entry-deleted-button {
|
|
|
|
margin: 0;
|
|
|
|
height: 44px;
|
|
|
|
width: 44px;
|
|
|
|
line-height: 44px;
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-09-08 16:54:45 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-10 13:38:36 +00:00
|
|
|
/**
|
|
|
|
* Common rules for animation of undo and edit entries
|
|
|
|
*/
|
|
|
|
.app-navigation-entry-edit,
|
|
|
|
.app-navigation-entry-deleted {
|
|
|
|
width: calc(100% - 1px); /* Avoid border overlapping */
|
2017-09-14 17:27:43 +00:00
|
|
|
transition: transform 250ms ease-in-out,
|
2017-09-19 16:01:49 +00:00
|
|
|
opacity 250ms ease-in-out,
|
|
|
|
z-index 250ms ease-in-out;
|
2017-09-10 13:38:36 +00:00
|
|
|
position: absolute;
|
2018-02-28 09:11:10 +00:00
|
|
|
left: 0;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2017-09-23 13:12:22 +00:00
|
|
|
box-sizing: border-box;
|
2017-09-10 13:38:36 +00:00
|
|
|
}
|
|
|
|
|
2017-09-08 16:54:45 +00:00
|
|
|
/**
|
|
|
|
* drag and drop
|
|
|
|
*/
|
|
|
|
.drag-and-drop {
|
|
|
|
-webkit-transition: padding-bottom 500ms ease 0s;
|
|
|
|
transition: padding-bottom 500ms ease 0s;
|
|
|
|
padding-bottom: 40px;
|
|
|
|
}
|
2017-09-19 13:49:28 +00:00
|
|
|
|
2017-09-08 16:54:45 +00:00
|
|
|
.error {
|
2018-06-03 08:47:07 +00:00
|
|
|
color: var(--color-error);
|
2017-09-08 16:54:45 +00:00
|
|
|
}
|
2017-09-19 13:49:28 +00:00
|
|
|
|
2017-09-08 16:54:45 +00:00
|
|
|
.app-navigation-entry-utils ul,
|
|
|
|
.app-navigation-entry-menu ul {
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
|
|
|
|
/* CONTENT --------------------------------------------------------- */
|
|
|
|
#content {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
2018-07-12 16:25:53 +00:00
|
|
|
display: flex;
|
2018-07-27 16:41:34 +00:00
|
|
|
// padding is included in height
|
|
|
|
padding-top: $header-height;
|
2018-07-24 08:29:46 +00:00
|
|
|
min-height: 100%;
|
2018-06-26 14:47:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* APP-CONTENT AND WRAPPER ------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
/* Part where the content will be loaded into */
|
|
|
|
#app-content {
|
2018-08-02 20:40:52 +00:00
|
|
|
z-index: 1000;
|
2018-06-25 07:26:43 +00:00
|
|
|
background-color: var(--color-main-background);
|
2016-12-22 10:16:32 +00:00
|
|
|
position: relative;
|
2018-07-12 16:25:53 +00:00
|
|
|
flex-basis: 100vw;
|
2018-07-27 17:43:47 +00:00
|
|
|
min-height: 100%;
|
2018-07-24 08:29:46 +00:00
|
|
|
/* margin if navigation element is here */
|
2018-08-01 09:31:37 +00:00
|
|
|
#app-navigation:not(.hidden) + & {
|
2018-07-24 08:29:46 +00:00
|
|
|
margin-left: $navigation-width;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
/* no top border for first settings item */
|
|
|
|
> .section:first-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
2018-06-26 14:47:16 +00:00
|
|
|
|
|
|
|
/* if app-content-list is present */
|
|
|
|
#app-content-wrapper {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2018-07-27 16:40:41 +00:00
|
|
|
align-items: stretch;
|
2018-08-03 10:02:23 +00:00
|
|
|
/* make sure we have at least full height for loaders or such
|
|
|
|
no need for list/details since we have a flex stretch */
|
|
|
|
min-height: 100%;
|
2018-06-26 14:47:16 +00:00
|
|
|
|
|
|
|
/* CONTENT DETAILS AFTER LIST*/
|
2018-07-30 10:02:45 +00:00
|
|
|
.app-content-details {
|
2018-06-26 14:47:16 +00:00
|
|
|
/* grow full width */
|
|
|
|
flex-grow: 1;
|
|
|
|
#app-navigation-toggle-back {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* APP-SIDEBAR ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
/*
|
2018-06-26 14:47:16 +00:00
|
|
|
Sidebar: a sidebar to be used within #content
|
|
|
|
#app-content will be shrinked properly
|
2016-12-22 10:16:32 +00:00
|
|
|
*/
|
|
|
|
#app-sidebar {
|
2018-06-26 14:47:16 +00:00
|
|
|
width: 27vw;
|
2018-07-17 09:24:21 +00:00
|
|
|
min-width: $sidebar-min-width;
|
|
|
|
max-width: $sidebar-max-width;
|
2016-12-22 10:16:32 +00:00
|
|
|
display: block;
|
2018-08-19 09:54:37 +00:00
|
|
|
@include position('sticky');
|
2018-07-21 11:28:23 +00:00
|
|
|
top: $header-height;
|
|
|
|
right:0;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
z-index: 1500;
|
|
|
|
height: calc(100vh - #{$header-height});
|
2018-06-03 08:47:07 +00:00
|
|
|
background: var(--color-main-background);
|
|
|
|
border-left: 1px solid var(--color-border);
|
2018-07-12 16:25:53 +00:00
|
|
|
flex-shrink: 0;
|
2018-07-21 11:28:23 +00:00
|
|
|
// no animations possible, use OC.Apps.showAppSidebar
|
2017-01-11 12:44:36 +00:00
|
|
|
&.disappear {
|
2018-07-21 11:28:23 +00:00
|
|
|
display: none;
|
2017-01-11 12:44:36 +00:00
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2018-07-12 16:25:53 +00:00
|
|
|
|
2016-12-22 10:16:32 +00:00
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* APP-SETTINGS ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
/* settings area */
|
|
|
|
#app-settings {
|
2018-06-24 17:40:57 +00:00
|
|
|
// To the bottom w/ flex
|
|
|
|
margin-top: auto;
|
2017-09-21 17:08:49 +00:00
|
|
|
&.open,
|
|
|
|
&.opened {
|
|
|
|
#app-settings-content {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#app-settings-content {
|
|
|
|
display: none;
|
|
|
|
padding: 10px;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2016-12-22 10:16:32 +00:00
|
|
|
/* restrict height of settings and make scrollable */
|
|
|
|
max-height: 300px;
|
|
|
|
overflow-y: auto;
|
|
|
|
box-sizing: border-box;
|
2017-01-11 12:44:36 +00:00
|
|
|
|
|
|
|
/* display input fields at full width */
|
|
|
|
input[type='text'] {
|
|
|
|
width: 93%;
|
|
|
|
}
|
2017-02-15 18:17:55 +00:00
|
|
|
|
|
|
|
.info-text {
|
|
|
|
padding: 5px 0 7px 22px;
|
2018-06-05 14:06:01 +00:00
|
|
|
color: var(--color-text-lighter);
|
2017-02-15 18:17:55 +00:00
|
|
|
}
|
2017-09-28 17:15:04 +00:00
|
|
|
input {
|
|
|
|
&[type='checkbox'],
|
|
|
|
&[type='radio'] {
|
|
|
|
&.radio,
|
|
|
|
&.checkbox {
|
|
|
|
+ label {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#app-settings-header {
|
|
|
|
box-sizing: border-box;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 18:29:43 +00:00
|
|
|
|
2016-12-22 10:16:32 +00:00
|
|
|
.settings-button {
|
|
|
|
display: block;
|
|
|
|
height: 44px;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2018-07-09 09:34:48 +00:00
|
|
|
@include icon-color('settings-dark', 'actions', $color-black, 1, true);
|
2016-12-22 10:16:32 +00:00
|
|
|
background-position: 14px center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
text-align: left;
|
|
|
|
padding-left: 42px;
|
2017-04-19 02:38:49 +00:00
|
|
|
font-weight: 400;
|
2017-09-21 17:08:49 +00:00
|
|
|
|
|
|
|
/* like app-navigation a */
|
2018-06-03 08:47:07 +00:00
|
|
|
color: var(--color-main-text);
|
2017-09-21 17:08:49 +00:00
|
|
|
opacity: .57;
|
|
|
|
|
|
|
|
&.opened,
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
2017-09-21 17:08:49 +00:00
|
|
|
opacity: 1;
|
2018-06-03 08:47:07 +00:00
|
|
|
box-shadow: inset 4px 0 var(--color-primary);
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* GENERAL SECTION ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
.section {
|
|
|
|
display: block;
|
|
|
|
padding: 30px;
|
2018-06-03 19:06:27 +00:00
|
|
|
color: var(--color-text-lighter);
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 24px;
|
|
|
|
&.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2017-01-11 13:03:24 +00:00
|
|
|
/* slight position correction of checkboxes and radio buttons */
|
|
|
|
input {
|
|
|
|
&[type='checkbox'],
|
|
|
|
&[type='radio'] {
|
|
|
|
vertical-align: -2px;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
.sub-section {
|
|
|
|
position: relative;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-left: 27px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.appear {
|
|
|
|
opacity: 1;
|
|
|
|
-webkit-transition: opacity 500ms ease 0s;
|
|
|
|
-moz-transition: opacity 500ms ease 0s;
|
|
|
|
-ms-transition: opacity 500ms ease 0s;
|
|
|
|
-o-transition: opacity 500ms ease 0s;
|
|
|
|
transition: opacity 500ms ease 0s;
|
|
|
|
&.transparent {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* TABS ------------------------------------------------------------ */
|
2016-12-22 10:16:32 +00:00
|
|
|
.tabHeaders {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 15px;
|
|
|
|
.tabHeader {
|
|
|
|
float: left;
|
2018-06-25 07:29:29 +00:00
|
|
|
padding: 12px;
|
2016-12-22 10:16:32 +00:00
|
|
|
cursor: pointer;
|
2018-06-03 19:06:27 +00:00
|
|
|
color: var(--color-text-lighter);
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 1px;
|
|
|
|
a {
|
2018-06-03 19:06:27 +00:00
|
|
|
color: var(--color-text-lighter);
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
&.selected {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2018-06-21 12:35:22 +00:00
|
|
|
&.selected,
|
2018-06-25 07:29:29 +00:00
|
|
|
&:hover,
|
2018-06-21 12:35:22 +00:00
|
|
|
&:focus {
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 0px;
|
2018-06-03 08:47:07 +00:00
|
|
|
color: var(--color-main-text);
|
2018-06-25 07:29:29 +00:00
|
|
|
border-bottom: 1px solid var(--color-text-lighter);
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tabsContainer {
|
|
|
|
clear: left;
|
|
|
|
.tab {
|
|
|
|
padding: 0 15px 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* POPOVER MENU ------------------------------------------------------------ */
|
2018-03-07 13:57:07 +00:00
|
|
|
$popoveritem-height: 38px;
|
|
|
|
$popovericon-size: 16px;
|
|
|
|
|
2017-01-11 10:59:37 +00:00
|
|
|
.ie,
|
|
|
|
.edge {
|
|
|
|
.bubble, .bubble:after,
|
|
|
|
.popovermenu, .popovermenu:after,
|
|
|
|
#app-navigation .app-navigation-entry-menu,
|
|
|
|
#app-navigation .app-navigation-entry-menu:after {
|
2018-06-03 08:47:07 +00:00
|
|
|
border: 1px solid var(--color-border);
|
2017-01-11 10:59:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble,
|
|
|
|
.app-navigation-entry-menu,
|
2016-12-22 10:16:32 +00:00
|
|
|
.popovermenu {
|
2017-01-11 10:59:37 +00:00
|
|
|
position: absolute;
|
2018-06-03 08:47:07 +00:00
|
|
|
background-color: var(--color-main-background);
|
|
|
|
color: var(--color-main-text);
|
|
|
|
border-radius: var(--border-radius);
|
2018-08-06 08:45:23 +00:00
|
|
|
border: 1px solid transparent;
|
2017-01-11 10:59:37 +00:00
|
|
|
z-index: 110;
|
|
|
|
margin: 5px;
|
|
|
|
margin-top: -5px;
|
|
|
|
right: 0;
|
2018-06-03 08:47:07 +00:00
|
|
|
filter: drop-shadow(0 1px 3px var(--color-box-shadow));
|
2017-01-11 10:59:37 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
bottom: 100%;
|
2018-08-06 08:45:23 +00:00
|
|
|
// Required right-distance is half menu icon size + right padding
|
|
|
|
// = 16px/2 + 14px = 22px
|
|
|
|
// popover right margin is 5px, arrow width is 9px to center and border is 1px
|
|
|
|
// 22px - 9px - 5px - 1px = 7px
|
|
|
|
right: 7px;
|
2017-01-11 10:59:37 +00:00
|
|
|
/* change this to adjust the arrow position */
|
|
|
|
border: solid transparent;
|
|
|
|
content: ' ';
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
2018-06-03 08:47:07 +00:00
|
|
|
border-bottom-color: var(--color-main-background);
|
2018-08-06 08:45:23 +00:00
|
|
|
border-width: 9px;
|
2017-01-11 10:59:37 +00:00
|
|
|
}
|
|
|
|
/* Center the popover */
|
2017-01-13 14:31:42 +00:00
|
|
|
&.menu-center {
|
2017-01-11 10:59:37 +00:00
|
|
|
transform: translateX(50%);
|
|
|
|
right: 50%;
|
|
|
|
margin-right: 0;
|
|
|
|
&:after {
|
|
|
|
right: 50%;
|
|
|
|
transform: translateX(50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Align the popover to the left */
|
2017-01-13 14:31:42 +00:00
|
|
|
&.menu-left {
|
2017-01-11 10:59:37 +00:00
|
|
|
right: auto;
|
|
|
|
left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
&:after {
|
|
|
|
left: 6px;
|
|
|
|
right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open {
|
|
|
|
display: block;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
|
2018-08-09 10:46:08 +00:00
|
|
|
&.contactsmenu-popover {
|
2018-08-09 10:42:59 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2017-01-11 10:59:37 +00:00
|
|
|
ul {
|
2017-01-11 12:44:36 +00:00
|
|
|
/* Overwrite #app-navigation > ul ul */
|
|
|
|
display: flex !important;
|
2017-01-11 10:59:37 +00:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
display: flex;
|
2017-11-08 12:39:39 +00:00
|
|
|
flex: 0 0 auto;
|
2018-07-21 11:28:23 +00:00
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-01-11 10:59:37 +00:00
|
|
|
> button,
|
2017-01-17 09:11:08 +00:00
|
|
|
> a,
|
2018-02-28 11:55:33 +00:00
|
|
|
> .menuitem {
|
2016-12-22 10:16:32 +00:00
|
|
|
cursor: pointer;
|
2018-03-07 13:57:07 +00:00
|
|
|
line-height: $popoveritem-height;
|
2017-01-11 10:59:37 +00:00
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
display: flex;
|
2018-03-07 13:57:07 +00:00
|
|
|
align-items: flex-start;
|
2017-01-11 10:59:37 +00:00
|
|
|
height: auto;
|
2017-01-11 17:37:59 +00:00
|
|
|
margin: 0;
|
2017-04-07 18:31:26 +00:00
|
|
|
font-weight: 300;
|
2017-01-22 16:30:38 +00:00
|
|
|
box-shadow: none;
|
2017-09-07 16:43:31 +00:00
|
|
|
width: 100%;
|
2018-06-03 08:47:07 +00:00
|
|
|
color: var(--color-main-text);
|
2018-07-21 11:28:23 +00:00
|
|
|
white-space: nowrap;
|
2017-09-07 16:43:31 +00:00
|
|
|
/* Override the app-navigation li opacity */
|
|
|
|
opacity: .7 !important;
|
2018-02-28 11:55:33 +00:00
|
|
|
span[class^='icon-'],
|
|
|
|
span[class*=' icon-'],
|
2017-11-04 14:36:45 +00:00
|
|
|
&[class^='icon-'],
|
|
|
|
&[class*=' icon-'] {
|
|
|
|
min-width: 0; /* Overwrite icons*/
|
|
|
|
min-height: 0;
|
2018-03-07 13:57:07 +00:00
|
|
|
background-position: #{($popoveritem-height - $popovericon-size) / 2} center;
|
|
|
|
background-size: $popovericon-size;
|
2017-11-04 14:36:45 +00:00
|
|
|
}
|
2018-02-28 11:55:33 +00:00
|
|
|
span[class^='icon-'],
|
|
|
|
span[class*=' icon-'] {
|
2017-11-04 12:12:18 +00:00
|
|
|
/* Keep padding to define the width to
|
|
|
|
assure correct position of a possible text */
|
2018-03-07 13:57:07 +00:00
|
|
|
padding: #{$popoveritem-height / 2} 0 #{$popoveritem-height / 2} $popoveritem-height;
|
2017-11-04 12:12:18 +00:00
|
|
|
}
|
2018-03-07 12:16:19 +00:00
|
|
|
// If no icons set, force left margin to align
|
|
|
|
&:not([class^='icon-']):not([class*='icon-']) {
|
|
|
|
> span,
|
|
|
|
> input,
|
|
|
|
> form {
|
2018-03-07 13:57:07 +00:00
|
|
|
&:not([class^='icon-']):not([class*='icon-']):first-child {
|
|
|
|
margin-left: $popoveritem-height;
|
2018-03-07 12:16:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-04 12:12:18 +00:00
|
|
|
&[class^='icon-'],
|
|
|
|
&[class*=' icon-'] {
|
2018-03-07 13:57:07 +00:00
|
|
|
padding: 0 #{($popoveritem-height - $popovericon-size) / 2} 0 $popoveritem-height !important;
|
2017-11-04 12:12:18 +00:00
|
|
|
}
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&.active {
|
2017-09-07 16:43:31 +00:00
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
2017-01-11 10:59:37 +00:00
|
|
|
/* prevent .action class to break the design */
|
|
|
|
&.action {
|
|
|
|
padding: inherit !important;
|
|
|
|
}
|
|
|
|
> span {
|
|
|
|
cursor: pointer;
|
2017-01-21 18:02:48 +00:00
|
|
|
white-space: nowrap;
|
2017-01-11 10:59:37 +00:00
|
|
|
}
|
|
|
|
> p {
|
|
|
|
width: 150px;
|
|
|
|
line-height: 1.6em;
|
|
|
|
padding: 8px 0;
|
2018-07-21 11:28:23 +00:00
|
|
|
white-space: normal;
|
2017-01-11 10:59:37 +00:00
|
|
|
}
|
2018-02-22 14:41:40 +00:00
|
|
|
> select {
|
|
|
|
margin: 0;
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
2017-01-11 10:59:37 +00:00
|
|
|
/* Add padding if contains icon+text */
|
|
|
|
&:not(:empty) {
|
|
|
|
padding-right: 10px !important;
|
|
|
|
}
|
2018-03-07 13:57:07 +00:00
|
|
|
/* DEPRECATED! old img in popover fallback
|
|
|
|
* TODO: to remove */
|
2017-01-11 10:59:37 +00:00
|
|
|
> img {
|
2018-03-07 13:57:07 +00:00
|
|
|
width: $popovericon-size;
|
|
|
|
padding: #{($popoveritem-height - $popovericon-size) / 2};
|
2017-01-11 10:59:37 +00:00
|
|
|
}
|
2018-02-22 11:13:35 +00:00
|
|
|
/* checkbox/radio fixes */
|
|
|
|
> input.radio + label,
|
2017-10-26 15:54:44 +00:00
|
|
|
> input.checkbox + label {
|
|
|
|
padding: 0 !important;
|
2018-02-22 11:13:35 +00:00
|
|
|
width: 100%;
|
2017-10-26 15:54:44 +00:00
|
|
|
}
|
2018-02-22 11:13:35 +00:00
|
|
|
> input.checkbox + label::before {
|
2018-03-07 14:17:54 +00:00
|
|
|
margin: -2px 13px 0;
|
2018-02-22 11:13:35 +00:00
|
|
|
}
|
|
|
|
> input.radio + label::before {
|
2018-03-07 14:17:54 +00:00
|
|
|
margin: -2px 12px 0;
|
2017-11-04 14:47:54 +00:00
|
|
|
}
|
2017-12-21 11:06:18 +00:00
|
|
|
> input:not([type=radio]):not([type=checkbox]):not([type=image]) {
|
|
|
|
width: 150px;
|
|
|
|
}
|
2018-02-28 12:09:11 +00:00
|
|
|
form {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 auto;
|
2018-03-07 13:57:07 +00:00
|
|
|
/* put a small space between text and form
|
|
|
|
if there is an element before */
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* no margin if hidden span before */
|
|
|
|
> span.hidden + form,
|
|
|
|
> span[style*='display:none'] + form {
|
|
|
|
margin-left: 0;
|
2018-02-28 12:09:11 +00:00
|
|
|
}
|
|
|
|
/* Inputs inside popover supports text, submit & reset */
|
2018-02-28 11:55:33 +00:00
|
|
|
input {
|
2018-03-07 13:57:07 +00:00
|
|
|
min-width: #{$popoveritem-height - 4px}; /* twice the margin */
|
|
|
|
max-height: #{$popoveritem-height - 4px}; /* twice the margin */
|
2018-02-28 11:55:33 +00:00
|
|
|
margin: 2px 0;
|
2018-02-28 12:09:11 +00:00
|
|
|
flex: 1 1 auto;
|
2018-03-07 13:57:07 +00:00
|
|
|
&:not(:first-child) {
|
2018-02-28 11:55:33 +00:00
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2018-03-07 11:42:26 +00:00
|
|
|
/* css hack, only first not hidden*/
|
2018-03-07 13:57:07 +00:00
|
|
|
&:not(.hidden):not([style*='display:none']) {
|
|
|
|
&:first-of-type {
|
|
|
|
> button, > a, > .menuitem {
|
|
|
|
> form, > input {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
}
|
2018-03-07 11:42:26 +00:00
|
|
|
}
|
2018-03-07 13:57:07 +00:00
|
|
|
&:last-of-type {
|
|
|
|
> button, > a, > .menuitem {
|
|
|
|
> form, > input {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
2018-03-07 11:42:26 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-04 12:12:18 +00:00
|
|
|
> button {
|
|
|
|
padding: 0;
|
|
|
|
span {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-11-04 12:12:18 +00:00
|
|
|
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-01-11 12:55:56 +00:00
|
|
|
}
|
2018-07-17 09:24:21 +00:00
|
|
|
|
2018-09-04 20:21:22 +00:00
|
|
|
/* "app-*" descendants use border-box sizing, so the height of the icon must be
|
|
|
|
* set to the height of the item (as well as its width to make it squared). */
|
|
|
|
#content[class*='app-'] {
|
|
|
|
.bubble,
|
|
|
|
.app-navigation-entry-menu,
|
|
|
|
.popovermenu {
|
|
|
|
li {
|
|
|
|
> button,
|
|
|
|
> a,
|
|
|
|
> .menuitem {
|
|
|
|
/* DEPRECATED! old img in popover fallback
|
|
|
|
* TODO: to remove */
|
|
|
|
> img {
|
|
|
|
width: $popoveritem-height;
|
|
|
|
height: $popoveritem-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-26 14:47:16 +00:00
|
|
|
/* CONTENT LIST ------------------------------------------------------------ */
|
2017-11-16 15:28:25 +00:00
|
|
|
.app-content-list {
|
|
|
|
width: 300px;
|
2018-08-19 09:54:37 +00:00
|
|
|
@include position('sticky');
|
2018-07-27 16:40:41 +00:00
|
|
|
top: $header-height;
|
2018-06-03 19:06:27 +00:00
|
|
|
border-right: 1px solid var(--color-border);
|
2017-11-16 15:28:25 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
transition: transform 250ms ease-in-out;
|
2018-07-27 16:40:41 +00:00
|
|
|
min-height: calc(100vh - #{$header-height});
|
|
|
|
max-height: calc(100vh - #{$header-height});
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
flex: 0 0 300px;
|
2017-11-16 15:28:25 +00:00
|
|
|
|
2017-11-16 18:18:57 +00:00
|
|
|
/* Default item */
|
2017-11-16 15:28:25 +00:00
|
|
|
.app-content-list-item {
|
|
|
|
position: relative;
|
|
|
|
height: 68px;
|
2018-06-03 19:06:27 +00:00
|
|
|
border-top: 1px solid var(--color-border);
|
2017-11-16 15:28:25 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding: 10px 7px;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
2017-12-08 17:08:56 +00:00
|
|
|
flex: 0 0 auto;
|
2017-11-16 15:28:25 +00:00
|
|
|
|
2017-12-08 06:38:53 +00:00
|
|
|
/* Icon fixes */
|
|
|
|
&,
|
|
|
|
> .app-content-list-item-menu {
|
|
|
|
> [class^='icon-'],
|
|
|
|
> [class*=' icon-'] {
|
|
|
|
order: 4;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2018-08-31 07:17:54 +00:00
|
|
|
margin: -7px; // right padding of item
|
2017-12-08 06:38:53 +00:00
|
|
|
padding: 22px;
|
|
|
|
opacity: .3;
|
2018-08-31 07:17:54 +00:00
|
|
|
cursor: pointer;
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-12-08 06:38:53 +00:00
|
|
|
opacity: .7;
|
|
|
|
}
|
|
|
|
&[class^='icon-star'],
|
|
|
|
&[class*=' icon-star'] {
|
|
|
|
opacity: .7;
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-12-08 06:38:53 +00:00
|
|
|
opacity: 1 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
&.icon-starred {
|
|
|
|
opacity: 1 ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-21 12:35:22 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
2017-11-16 15:28:25 +00:00
|
|
|
&.active {
|
2018-06-03 19:06:27 +00:00
|
|
|
background-color: var(--color-background-dark);
|
2018-08-01 08:52:01 +00:00
|
|
|
// display checkbox on hover/focus/active
|
|
|
|
.app-content-list-item-checkbox.checkbox + label {
|
|
|
|
display: flex;
|
|
|
|
}
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|
|
|
|
|
2017-11-16 18:18:57 +00:00
|
|
|
.app-content-list-item-checkbox.checkbox + label,
|
|
|
|
.app-content-list-item-star {
|
2017-11-16 15:28:25 +00:00
|
|
|
position: absolute;
|
2017-11-17 08:05:28 +00:00
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
2017-11-16 18:18:57 +00:00
|
|
|
z-index: 50;
|
|
|
|
}
|
|
|
|
|
2018-07-30 11:20:37 +00:00
|
|
|
.app-content-list-item-checkbox.checkbox {
|
2018-08-01 08:52:01 +00:00
|
|
|
&:checked,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&.active {
|
|
|
|
+ label {
|
|
|
|
// display checkbox if checked
|
|
|
|
display: flex;
|
|
|
|
// if checked, lower the opacity of the avatar
|
|
|
|
+ .app-content-list-item-icon {
|
|
|
|
opacity: .7;
|
|
|
|
}
|
2018-07-30 11:20:37 +00:00
|
|
|
}
|
2017-11-16 18:18:57 +00:00
|
|
|
}
|
2018-07-30 11:20:37 +00:00
|
|
|
+ label {
|
|
|
|
top: 14px;
|
|
|
|
left: 7px;
|
2018-08-01 08:52:01 +00:00
|
|
|
// hidden by default, only chown on hover-focus or if checked
|
|
|
|
display: none;
|
2018-07-30 11:20:37 +00:00
|
|
|
&::before {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
/* Hide the star, priority to the checkbox */
|
|
|
|
~ .app-content-list-item-star {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-11-16 18:18:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-17 08:05:28 +00:00
|
|
|
.app-content-list-item-star {
|
2018-08-01 08:52:01 +00:00
|
|
|
display: flex;
|
2017-11-17 08:05:28 +00:00
|
|
|
top: 10px;
|
2017-11-20 12:59:53 +00:00
|
|
|
left: 32px;
|
2017-11-17 08:05:28 +00:00
|
|
|
background-size: 16px;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2017-11-20 13:10:04 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-11-17 08:05:28 +00:00
|
|
|
}
|
|
|
|
|
2017-11-16 18:18:57 +00:00
|
|
|
.app-content-list-item-icon {
|
|
|
|
position: absolute;
|
2017-11-16 15:28:25 +00:00
|
|
|
display: inline-block;
|
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
|
|
|
line-height: 40px;
|
|
|
|
border-radius: 50%;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 10px;
|
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.5em;
|
|
|
|
text-transform: capitalize;
|
|
|
|
object-fit: cover;
|
|
|
|
user-select: none;
|
2017-12-08 06:38:53 +00:00
|
|
|
cursor: pointer;
|
2018-02-28 09:26:36 +00:00
|
|
|
top: 50%;
|
|
|
|
margin-top: -20px;
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-content-list-item-line-one,
|
|
|
|
.app-content-list-item-line-two {
|
|
|
|
display: block;
|
|
|
|
padding-left: 50px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
order: 1;
|
2018-02-28 09:11:10 +00:00
|
|
|
flex: 1 1 0px;
|
2017-11-16 15:28:25 +00:00
|
|
|
padding-right: 10px;
|
2017-12-08 06:38:53 +00:00
|
|
|
cursor: pointer;
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-content-list-item-line-two {
|
|
|
|
opacity: .5;
|
|
|
|
order: 3;
|
2018-02-28 09:26:36 +00:00
|
|
|
flex: 1 0;
|
2018-08-31 07:17:54 +00:00
|
|
|
flex-basis: calc(100% - 44px);
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-content-list-item-details {
|
|
|
|
order: 2;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 100px;
|
2017-11-20 12:57:49 +00:00
|
|
|
opacity: .5;
|
|
|
|
font-size: 80%;
|
2017-11-16 15:28:25 +00:00
|
|
|
user-select: none;
|
|
|
|
}
|
2017-12-08 06:38:53 +00:00
|
|
|
|
|
|
|
.app-content-list-item-menu {
|
|
|
|
order: 4;
|
|
|
|
position: relative;
|
|
|
|
.popovermenu {
|
|
|
|
margin: 0;
|
|
|
|
right: -5px;
|
|
|
|
}
|
|
|
|
}
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|
2018-08-02 08:31:36 +00:00
|
|
|
&.selection .app-content-list-item-checkbox.checkbox + label {
|
|
|
|
display: flex;
|
|
|
|
}
|
2017-11-16 15:28:25 +00:00
|
|
|
}
|