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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-03-30 11:07:26 +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);
|
|
|
|
border-radius: 3px;
|
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-22 10:16:32 +00:00
|
|
|
/* APP STYLING -------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#app {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* APP-NAVIGATION ------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/* Navigation: folder like structure */
|
|
|
|
|
|
|
|
#app-navigation {
|
|
|
|
width: 250px;
|
|
|
|
height: 100%;
|
|
|
|
float: left;
|
|
|
|
box-sizing: border-box;
|
2017-02-19 18:48:51 +00:00
|
|
|
background-color: $color-main-background;
|
2016-12-22 10:16:32 +00:00
|
|
|
padding-bottom: 44px;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2017-09-05 16:50:33 +00:00
|
|
|
border-right: 1px solid $color-border;
|
2017-01-25 14:34:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
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:13:40 +00:00
|
|
|
> a,
|
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
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
a.selected {
|
|
|
|
&,
|
|
|
|
> a {
|
|
|
|
opacity: 1;
|
2017-02-19 18:48:51 +00:00
|
|
|
box-shadow: inset 2px 0 $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;
|
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
|
|
|
|
2017-09-07 12:46:53 +00:00
|
|
|
/* Second level nesting for lists */
|
|
|
|
> ul {
|
|
|
|
flex: 1 0 100%;
|
2017-09-14 14:07:36 +00:00
|
|
|
padding-left: 62px;
|
2017-09-07 15:01:04 +00:00
|
|
|
width: inherit;
|
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;
|
2017-09-07 12:46:53 +00:00
|
|
|
> li {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: wrap;
|
2017-09-07 15:01:04 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&.active,
|
|
|
|
a.selected {
|
|
|
|
&,
|
|
|
|
> a {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2017-09-14 09:58:13 +00:00
|
|
|
|
|
|
|
/* align loader */
|
|
|
|
&.icon-loading-small:after {
|
|
|
|
left: -10px;
|
|
|
|
}
|
|
|
|
|
2017-09-12 03:44:46 +00:00
|
|
|
/* Submenu fix for icon */
|
2017-09-14 08:03:27 +00:00
|
|
|
> a[class*='icon-'],
|
2017-09-14 10:02:25 +00:00
|
|
|
> a[style*='background-image'],
|
2017-09-14 08:03:27 +00:00
|
|
|
.app-navigation-entry-bullet {
|
|
|
|
margin-left: -32px; /* 44px padding - 12px padding */
|
|
|
|
}
|
2017-09-14 09:58:13 +00:00
|
|
|
|
2017-09-14 08:03:27 +00:00
|
|
|
/* Submenu fix for bullet */
|
|
|
|
> .app-navigation-entry-bullet {
|
|
|
|
left: -32px;/* 44px padding - 12px padding */
|
2017-09-12 03:44:46 +00:00
|
|
|
}
|
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 {
|
|
|
|
background: none !important;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
padding: 0 12px;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
color: $color-main-text;
|
|
|
|
opacity: .57;
|
|
|
|
flex: 1 1 0;
|
2017-09-14 08:03:27 +00:00
|
|
|
z-index: 100; /* above the bullet */
|
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;
|
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;
|
2017-09-14 08:03:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* padding in case of icon or bullet */
|
|
|
|
> a[class*='icon-'],
|
2017-09-14 10:02:25 +00:00
|
|
|
> a[style*='background-image'] {
|
2017-09-14 08:03:27 +00:00
|
|
|
padding-left: 44px;
|
|
|
|
}
|
2017-09-10 14:50:35 +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;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
&.without-app-settings {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
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
|
|
|
}
|
2017-09-12 14:22:06 +00:00
|
|
|
&:after {
|
2016-12-22 10:16:32 +00:00
|
|
|
position: absolute;
|
|
|
|
height: 44px;
|
|
|
|
width: 44px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
background-image: url('../img/actions/triangle-s.svg?v=1');
|
|
|
|
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);
|
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
|
|
|
}
|
2017-09-12 14:22:06 +00:00
|
|
|
&:after,
|
|
|
|
> a {
|
|
|
|
transition: background 100ms ease-in-out,
|
|
|
|
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 {
|
2017-09-12 14:22:06 +00:00
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
2017-01-11 13:03:24 +00:00
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
&.open {
|
2017-09-12 14:22:06 +00:00
|
|
|
&:after {
|
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 */
|
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;
|
|
|
|
background-color: $color-main-background;
|
2017-09-19 16:01:49 +00:00
|
|
|
z-index: -1;
|
2017-09-10 03:56:27 +00:00
|
|
|
form {
|
|
|
|
display: inline-flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-01-11 12:44:36 +00:00
|
|
|
input {
|
|
|
|
padding: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
height: 38px;
|
2017-09-10 13:26:20 +00:00
|
|
|
border: 1px solid nc-darken($color-main-background, 8%);
|
2017-09-14 19:03:18 +00:00
|
|
|
&:hover {
|
|
|
|
/* 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) {
|
|
|
|
border-radius: 0;
|
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;
|
2017-09-14 17:13:40 +00:00
|
|
|
padding-left: 12px;
|
2017-09-14 17:27:43 +00:00
|
|
|
transform: translateX(250px);
|
2017-09-08 16:54:45 +00:00
|
|
|
.app-navigation-entry-deleted-description {
|
|
|
|
position: relative;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2017-09-10 03:56:27 +00:00
|
|
|
flex: 1 1 0;
|
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;
|
|
|
|
&:hover, &:focus {
|
|
|
|
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;
|
|
|
|
background-color: $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 {
|
|
|
|
color: $color-error;
|
|
|
|
}
|
|
|
|
.app-navigation-separator {
|
|
|
|
border-bottom: 1px solid nc-lighten($color-main-text, 86%);
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
/* APP-CONTENT ---------------------------------------------------------------*/
|
|
|
|
/* Part where the content will be loaded into */
|
|
|
|
#app-content {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
overflow-y: auto;
|
2017-01-11 12:44:36 +00:00
|
|
|
/* no top border for first settings item */
|
|
|
|
> .section:first-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
&.with-app-sidebar {
|
|
|
|
margin-right: 27%;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#app-content-wrapper {
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* APP-SIDEBAR ----------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
Sidebar: a sidebar to be used within #app-content
|
|
|
|
have it as first element within app-content in order to shrink other
|
|
|
|
sibling containers properly. Compare Files app for example.
|
|
|
|
*/
|
|
|
|
#app-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 45px;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
bottom: 0;
|
|
|
|
width: 27%;
|
|
|
|
min-width: 300px;
|
|
|
|
display: block;
|
2017-02-19 18:48:51 +00:00
|
|
|
background: $color-main-background;
|
2017-09-05 16:50:33 +00:00
|
|
|
border-left: 1px solid $color-border;
|
2016-12-22 10:16:32 +00:00
|
|
|
-webkit-transition: margin-right 300ms;
|
|
|
|
transition: margin-right 300ms;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
visibility: visible;
|
|
|
|
z-index: 500;
|
2017-01-11 12:44:36 +00:00
|
|
|
&.disappear {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* APP-SETTINGS ---------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/* settings area */
|
|
|
|
#app-settings {
|
|
|
|
position: fixed;
|
|
|
|
width: 250px;
|
|
|
|
/* change to 100% when layout positions are absolute */
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 140;
|
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;
|
2017-02-19 18:48:51 +00:00
|
|
|
background-color: $color-main-background;
|
2016-12-22 10:16:32 +00:00
|
|
|
/* restrict height of settings and make scrollable */
|
|
|
|
max-height: 300px;
|
|
|
|
overflow-y: auto;
|
2017-09-05 16:50:33 +00:00
|
|
|
border-right: 1px solid $color-border;
|
2016-12-22 10:16:32 +00:00
|
|
|
width: 250px;
|
|
|
|
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;
|
2017-02-19 18:48:51 +00:00
|
|
|
color: rgba($color-main-text, .4);
|
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 {
|
2017-09-05 16:50:33 +00:00
|
|
|
border-right: 1px solid $color-border;
|
2016-12-22 10:16:32 +00:00
|
|
|
width: 250px;
|
|
|
|
box-sizing: border-box;
|
2017-09-28 14:23:28 +00:00
|
|
|
background-color: $color-main-background;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.settings-button {
|
|
|
|
display: block;
|
|
|
|
height: 44px;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2017-02-19 18:48:51 +00:00
|
|
|
background-color: $color-main-background;
|
2017-09-21 17:08:49 +00:00
|
|
|
background-image: url('../img/actions/settings-dark.svg?v=1');
|
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 */
|
|
|
|
color: $color-main-text;
|
|
|
|
opacity: .57;
|
|
|
|
|
|
|
|
&.opened,
|
|
|
|
&:hover {
|
2017-02-19 18:48:51 +00:00
|
|
|
background-color: $color-main-background;
|
2017-09-21 17:08:49 +00:00
|
|
|
opacity: 1;
|
|
|
|
box-shadow: inset 2px 0 $color-primary;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-11 13:03:24 +00:00
|
|
|
/* GENERAL SECTION ---------------------------------------------------------- */
|
2016-12-22 10:16:32 +00:00
|
|
|
.section {
|
|
|
|
display: block;
|
|
|
|
padding: 30px;
|
2017-03-05 21:38:59 +00:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-11 13:03:24 +00:00
|
|
|
/* DROPDOWN ----------------------------------------------------------------- */
|
2016-12-22 10:16:32 +00:00
|
|
|
.dropdown {
|
2017-03-05 21:38:59 +00:00
|
|
|
background: nc-darken($color-main-background, 8%);
|
2016-12-22 10:16:32 +00:00
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
2017-02-21 16:19:23 +00:00
|
|
|
box-shadow: 0 1px 1px $color-box-shadow;
|
2016-12-22 10:16:32 +00:00
|
|
|
display: block;
|
|
|
|
margin-right: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
width: 420px;
|
|
|
|
z-index: 500;
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
2017-01-11 13:03:24 +00:00
|
|
|
/* TABS --------------------------------------------------------------------- */
|
2016-12-22 10:16:32 +00:00
|
|
|
.tabHeaders {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 15px;
|
|
|
|
.tabHeader {
|
|
|
|
float: left;
|
|
|
|
padding: 5px;
|
|
|
|
cursor: pointer;
|
2017-03-05 21:38:59 +00:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 1px;
|
|
|
|
a {
|
2017-03-05 21:38:59 +00:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2016-12-22 10:16:32 +00:00
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
&.selected {
|
|
|
|
font-weight: 600;
|
2017-03-05 21:38:59 +00:00
|
|
|
border-bottom: 1px solid nc-lighten($color-main-text, 20%);
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
&:hover {
|
2017-03-05 21:38:59 +00:00
|
|
|
border-bottom: 1px solid nc-lighten($color-main-text, 20%);
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
&.selected, &:hover {
|
|
|
|
margin-bottom: 0px;
|
2017-02-19 18:48:51 +00:00
|
|
|
color: $color-main-text;
|
2016-12-22 10:16:32 +00:00
|
|
|
a {
|
|
|
|
margin-bottom: 0px;
|
2017-02-19 18:48:51 +00:00
|
|
|
color: $color-main-text;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tabsContainer {
|
|
|
|
clear: left;
|
|
|
|
.tab {
|
|
|
|
padding: 0 15px 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-11 12:44:36 +00:00
|
|
|
/* POPOVER MENU ------------------------------------------------------------- */
|
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 {
|
2017-09-05 16:50:33 +00:00
|
|
|
border: 1px solid $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;
|
2017-02-19 18:48:51 +00:00
|
|
|
background-color: $color-main-background;
|
2017-08-21 10:06:19 +00:00
|
|
|
color: $color-main-text;
|
2017-01-11 10:59:37 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
z-index: 110;
|
|
|
|
margin: 5px;
|
|
|
|
margin-top: -5px;
|
|
|
|
right: 0;
|
2017-09-27 15:05:30 +00:00
|
|
|
filter: drop-shadow(0 1px 3px $color-box-shadow);
|
2017-01-11 10:59:37 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
bottom: 100%;
|
2017-01-11 20:01:54 +00:00
|
|
|
/* Min-width of popover is 36px and arrow width is 20px
|
|
|
|
wich leaves us 8px right and 8px left */
|
|
|
|
right: 8px;
|
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;
|
2017-02-19 18:48:51 +00:00
|
|
|
border-bottom-color: $color-main-background;
|
2017-01-11 10:59:37 +00:00
|
|
|
border-width: 10px;
|
|
|
|
}
|
|
|
|
/* 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
|
|
|
|
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;
|
|
|
|
> button,
|
2017-01-17 09:11:08 +00:00
|
|
|
> a,
|
|
|
|
> .menuitem {
|
2016-12-22 10:16:32 +00:00
|
|
|
cursor: pointer;
|
2017-01-11 10:59:37 +00:00
|
|
|
line-height: 36px;
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: auto;
|
|
|
|
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%;
|
|
|
|
/* Override the app-navigation li opacity */
|
|
|
|
opacity: .7 !important;
|
|
|
|
&:hover, &:focus, &.active {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
/* Add padding if contains icon+text */
|
|
|
|
&:not(:empty) {
|
2017-01-11 17:37:59 +00:00
|
|
|
padding: 0 !important;
|
2017-01-11 10:59:37 +00:00
|
|
|
padding-right: 10px !important;
|
|
|
|
}
|
|
|
|
> img {
|
|
|
|
width: 16px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
2017-01-11 11:02:41 +00:00
|
|
|
[class^='icon-'],
|
|
|
|
[class*=' icon-']{
|
2017-01-11 10:59:37 +00:00
|
|
|
/* Keep padding to define the width to
|
|
|
|
assure correct position of a possible text */
|
|
|
|
padding: 18px 0 18px 36px;
|
|
|
|
min-width: 0; /* Overwrite icons*/
|
|
|
|
min-height: 0;
|
2017-01-25 14:22:51 +00:00
|
|
|
background-position: 10px center;
|
2016-12-22 10:16:32 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-11 12:55:56 +00:00
|
|
|
}
|