forked from extern/egroupware
limit height of img in link_portlet to 64px, differenciating by src*=thumbnail does not work, as thumbnail is always used
This commit is contained in:
parent
f93097c515
commit
8c125c8dfa
@ -89,9 +89,7 @@ div.calendar_favorite_portlet.et2_portlet.ui-widget-content > div:last-of-type {
|
|||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
max-height: 64px;
|
||||||
.et2_portlet.home_link_portlet > div:last-of-type img:first-of-type:not([src*="thumbnail.php"]) {
|
|
||||||
max-width: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Favorite / nextmatch
|
/* Favorite / nextmatch
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
@import "../default/app.css";
|
|
||||||
/**
|
/**
|
||||||
* EGroupware: CSS with less preprocessor
|
* EGroupware: CSS with less preprocessor
|
||||||
*
|
*
|
||||||
@ -10,3 +9,121 @@
|
|||||||
* @package home
|
* @package home
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Home CSS
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Basic layout and structural CSS
|
||||||
|
*/
|
||||||
|
#home-index_home-index {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#home-index_portlets {
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
#portlets {
|
||||||
|
border: 1px solid silver;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 100px;
|
||||||
|
min-height: 100px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.home .et2_portlet > .ui-widget-header {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.et2_portlet.ui-widget-content > div:last-of-type {
|
||||||
|
/* Allow space for header, as the whole portlet is sized by auto-generated css */
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
top: 20px;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.et2_portlet .et2_container {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
/* give not automatic sizing old calendar views a scrollbar, if necessary */
|
||||||
|
div.calendar_favorite_portlet.et2_portlet.ui-widget-content > div:last-of-type {
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
/* Gridster */
|
||||||
|
#portlets {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.home .et2_portlet {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.home .et2_portlet.dragging {
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
.preview-holder {
|
||||||
|
margin: 5px;
|
||||||
|
list-style: none;
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
border: 1px solid silver;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Portlet styling (cosmetic)
|
||||||
|
*/
|
||||||
|
.et2_portlet.ui-widget-content > div:last-of-type > div {
|
||||||
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 10%, rgba(255, 255, 255, 0.75) 90%) /* W3C */;
|
||||||
|
}
|
||||||
|
/* Single entry */
|
||||||
|
.et2_portlet.home_link_portlet > .ui-widget-header {
|
||||||
|
display: none;
|
||||||
|
position: relative;
|
||||||
|
top: -20px;
|
||||||
|
}
|
||||||
|
.et2_portlet.home_link_portlet:hover > .ui-widget-header {
|
||||||
|
display: block;
|
||||||
|
z-index: 90;
|
||||||
|
}
|
||||||
|
.et2_portlet.home_link_portlet.ui-widget-content > div:last-of-type {
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
.et2_portlet.home_link_portlet > div:last-of-type > div {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
/* Thumbnail / icon */
|
||||||
|
.et2_portlet.home_link_portlet > div:last-of-type img:first-of-type {
|
||||||
|
float: left;
|
||||||
|
margin-right: 8px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 64px;
|
||||||
|
}
|
||||||
|
/* Favorite / nextmatch
|
||||||
|
* NB: using class attribute contains as favorites have an app-specific prefix
|
||||||
|
*/
|
||||||
|
[class*="favorite_portlet"].et2_portlet .ui-widget-header > .et2_button {
|
||||||
|
float: left;
|
||||||
|
padding: 0px !important;
|
||||||
|
margin-top: 3px;
|
||||||
|
height: 12px;
|
||||||
|
width: 12px;
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
[class*="favorite_portlet"].et2_portlet .ui-widget-header > button.et2_button_with_image.closed {
|
||||||
|
background-position: 0 0 !important;
|
||||||
|
}
|
||||||
|
[class*="favorite_portlet"].et2_portlet .ui-widget-header > button.et2_button_with_image.opened {
|
||||||
|
background-position: -10px 0 !important;
|
||||||
|
}
|
||||||
|
/* We can't just set display:none for the header as that changes the column spacing */
|
||||||
|
[class*="favorite_portlet"].et2_portlet .et2_nextmatch.header_hidden {
|
||||||
|
padding-top: 0px;
|
||||||
|
}
|
||||||
|
[class*="favorite_portlet"].et2_portlet .et2_nextmatch.header_hidden .egwGridView_outer thead:first-of-type th,
|
||||||
|
[class*="favorite_portlet"].et2_portlet .et2_nextmatch.header_hidden .egwGridView_outer thead:first-of-type div.innerContainer,
|
||||||
|
[class*="favorite_portlet"].et2_portlet .et2_nextmatch.header_hidden .egwGridView_outer thead:first-of-type th.optcol span.selectcols {
|
||||||
|
height: 0px;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
line-height: 0px;
|
||||||
|
}
|
||||||
|
[class*="favorite_portlet"].et2_portlet .et2_nextmatch.header_hidden .egwGridView_outer thead:first-of-type th {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
@ -13,4 +13,4 @@
|
|||||||
@import (reference) "../../../pixelegg/less/def_buttons.less";
|
@import (reference) "../../../pixelegg/less/def_buttons.less";
|
||||||
@import (reference) "../../../pixelegg/less/def_design_pattern_color_font_shadow.less";
|
@import (reference) "../../../pixelegg/less/def_design_pattern_color_font_shadow.less";
|
||||||
|
|
||||||
@import (reference) "../default/app.css";
|
@import (less) "../default/app.css";
|
Loading…
Reference in New Issue
Block a user