server/core/css/header.css

283 lines
5.9 KiB
CSS
Raw Normal View History

2014-06-04 13:46:36 +00:00
/* prevent ugly selection effect on accidental selection */
#header,
#navigation,
#expanddiv {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
/* HEADERS ------------------------------------------------------------------ */
#body-user #header,
#body-settings #header,
#body-public #header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
height: 45px;
line-height: 2.5em;
background-color: #1d2d44;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
2014-06-04 13:46:36 +00:00
/* LOGO and APP NAME -------------------------------------------------------- */
#owncloud {
position: absolute;
top: 0;
left: 0;
padding: 6px;
padding-bottom: 0;
height: 45px; /* header height */
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#header .logo {
background-image: url(../img/logo.svg);
background-repeat: no-repeat;
width: 250px;
height: 118px;
margin: 0 auto;
}
#header .logo-wide {
background-image: url(../img/logo-wide.svg);
background-repeat: no-repeat;
width: 147px;
height: 32px;
}
#header .logo-icon {
/* display logo so appname can be shown next to it */
display: inline-block;
background-image: url(../img/logo-icon.svg);
background-repeat: no-repeat;
width: 60px;
height: 32px;
}
2014-06-04 11:17:47 +00:00
#header .menutoggle {
display: inline-block;
position: absolute;
left: 70px;
height: 27px;
padding-top: 18px;
padding-right: 10px;
2014-06-04 11:17:47 +00:00
}
/* show appname next to logo */
.header-appname {
display: inline-block;
position: relative;
color: #fff;
font-size: 16px;
margin: 0;
margin-top: -24px;
padding: 7px 0 7px 5px;
vertical-align: middle;
}
/* show caret indicator next to logo to make clear it is tappable */
#header .icon-caret {
display: inline-block;
width: 12px;
height: 12px;
margin: 0;
margin-top: -21px;
padding: 0;
vertical-align: middle;
}
.header-appname,
#header .icon-caret {
2014-05-28 09:33:52 +00:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
filter: alpha(opacity=75);
opacity: .75;
}
/* do not show menu toggle on public share links as there is no menu */
#body-public #header .icon-caret {
display: none;
}
2014-06-04 13:46:36 +00:00
/* NAVIGATION --------------------------------------------------------------- */
#content-wrapper {
padding-left: 0;
}
#navigation {
2014-06-04 13:46:36 +00:00
position: fixed;
top: 45px;
width: 265px;
max-height: 85%;
margin-top: 0;
background-color: rgba(36, 40, 47, .97);
border-bottom-right-radius: 7px;
box-shadow: 0 0 7px rgba(29,45,68,.97);
display: none;
2014-06-04 13:46:36 +00:00
overflow-y: auto;
overflow-x: hidden;
z-index: 150;
}
#navigation, #navigation * {
2014-06-04 13:46:36 +00:00
-moz-box-sizing:border-box;
box-sizing:border-box;
}
#navigation li {
display: inline-block;
}
#navigation a {
position: relative;
width: 80px;
height: 80px;
display: inline-block;
text-align: center;
padding: 20px 0;
}
#navigation a span {
display: inline-block;
font-size: 13px;
padding-bottom: 0;
padding-left: 0;
width: 80px;
2014-06-04 13:46:36 +00:00
text-align: center;
color: #fff;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
/* icon opacity and hover effect */
#navigation a img,
#navigation a span {
/* 50% opacity when inactive */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=50);
opacity: .5;
}
#navigation a:hover img, #navigation a:focus img,
#navigation a:hover span, #navigation a:focus span {
/* 80% opacity when hovered or focused */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
filter: alpha(opacity=80);
opacity: .8;
}
#navigation a.active img,
#navigation a.active span {
/* full opacity for the active app */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}
#navigation .app-icon {
margin: 0 auto;
padding: 0;
}
2014-06-04 13:46:36 +00:00
/* Apps management */
#apps-management {
2014-06-04 13:46:36 +00:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
filter: alpha(opacity=60);
opacity: .6;
min-height: initial;
height: initial;
2014-06-04 13:46:36 +00:00
margin: 0;
}
/* loading feedback for apps */
#navigation .app-loading .icon-loading-dark {
display: inline !important;
position: absolute;
top: 20px;
left: 24px;
width: 32px;
height: 32px;
background-color: rgba(0, 0, 0, .2);
border-radius: 50%;
}
2014-06-04 13:46:36 +00:00
#navigation .app-loading .app-icon {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
filter: alpha(opacity=20);
opacity: .2;
}
2014-06-04 13:46:36 +00:00
/* USER MENU -----------------------------------------------------------------*/
/* info part on the right, used e.g. for info on who shared something */
.header-right {
position: absolute;
right: 0;
padding: 7px 5px;
color: #fff;
height: 100%;
max-width: 40%;
white-space: nowrap;
}
/* Profile picture in header */
#header .avatardiv {
float: left;
display: inline-block;
margin-right: 5px;
}
#header .avatardiv img {
opacity: 1;
}
2014-06-04 13:46:36 +00:00
#settings {
float: right;
color: #bbb;
}
#expand {
display: block;
padding: 7px 12px 6px 7px;
cursor: pointer;
}
#expand:hover, #expand:focus, #expand:active { color:#fff; }
#expand img { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; filter:alpha(opacity=70); opacity:.7; margin-bottom:-2px; }
#expand:hover img, #expand:focus img, #expand:active img { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
#expanddiv {
position: absolute;
right: 0;
top: 45px;
z-index: 150;
display: none;
background-color: #383c43;
border-bottom-left-radius:7px; border-bottom:1px #333 solid; border-left:1px #333 solid;
box-shadow:0 0 7px rgb(29,45,68);
-moz-box-sizing: border-box; box-sizing: border-box;
}
#expanddiv a {
display: block;
height: 40px;
color: #fff;
padding: 4px 12px 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
filter: alpha(opacity=70);
opacity: .7;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#expanddiv a img {
margin-bottom: -3px;
margin-right: 6px;
}
#expanddiv a:hover, #expanddiv a:focus, #expanddiv a:active {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}