You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

591 lines
10 KiB

/*
* # Semantic - Item
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Theme
*******************************/
@type : 'view';
@element : 'item';
@import '../../semantic.config';
/*******************************
Standard
*******************************/
/*--------------
Items
---------------*/
.ui.items {
margin: @groupMargin;
}
.ui.items:first-child {
margin-top: 0em;
}
.ui.items:last-child {
margin-bottom: 0em;
}
/* Clearing */
.ui.items:after {
display: block;
content: ' ';
height: 0px;
clear: both;
overflow: hidden;
visibility: hidden;
}
/*--------------
Item
---------------*/
.ui.items > .row > .item,
.ui.items > .item {
position: relative;
display: @display;
float: @float;
width: @width;
min-height: @minHeight;
margin: @margin;
background: @background;
padding: @padding;
border: @border;
border-radius: @borderRadius;
box-shadow: @boxShadow;
z-index: @zIndex;
}
.ui.items a.item,
.ui.items .item a {
cursor: pointer;
}
/*--------------
Images
---------------*/
.ui.items .item > .image {
display: block;
position: relative;
padding: @imagePadding;
background: @imageBackground;
}
.ui.items .item > .image > img {
display: block;
width: 100%;
height: auto;
border-radius: @imageBorderRadius;
}
/*--------------
Floated
---------------*/
.ui.items .item .left {
float: left;
}
.ui.items .item .right {
float: right;
}
/*--------------
Content
---------------*/
.ui.items .item > .content {
margin: @contentMargin;
padding: @contentPadding;
box-shadow: @contentBoxShadow;
font-size: @contentFontSize;
border: @contentBorder;
border-radius: @contentBorderRadius;
}
.ui.items .item > .content > .header {
display: block;
margin: @titleMargin;
font-family: @titleFont;
font-weight: @titleFontWeight;
font-size: @titleFontSize;
color: @titleColor;
}
.ui.items .item > .content > .meta + .description,
.ui.items .item > .content > .header + .description {
margin-top: @descriptionDistance;
}
/*--------------
Image
---------------*/
.ui.items .item .content img {
display: inline-block;
vertical-align: @contentImageVerticalAlign;
width: @contentImageWidth;
}
/*--------------
Description
---------------*/
.ui.items .item > .content > .description {
clear: both;
color: @descriptionColor;
}
/*--------------
Paragraph
---------------*/
.ui.items .item > .content p {
margin: 0em 0em @paragraphDistance;
}
.ui.items .item > .content p:last-child {
margin-bottom: 0em;
}
/*--------------
Meta
---------------*/
.ui.items .item .meta {
color: @metaColor;
}
/*--------------
Labels
---------------*/
/*-----Star----- */
/* hover */
.ui.items .item .star.label:hover::after {
border-right-color: #F6EFC3;
}
.ui.items .item .star.label:hover::after {
border-top-color: #F6EFC3;
}
.ui.items .item .star.label:hover .icon {
color: #AC9400
}
/* active */
.ui.items .item .star.label.active::after {
border-right-color: #F6EFC3;
}
.ui.items .item .star.label.active::after {
border-top-color: #F6EFC3;
}
.ui.items .item .star.label.active .icon {
color: #AC9400
}
/*-----Like----- */
/* hover */
.ui.items .item .like.label:hover::after {
border-right-color: #F5E1E2;
}
.ui.items .item .like.label.active::after {
border-top-color: #F5E1E2;
}
.ui.items .item .like.label:hover .icon {
color: #EF404A
}
/* active */
.ui.items .item .like.label.active::after {
border-right-color: #F5E1E2;
}
.ui.items .item .like.label.active::after {
border-top-color: #F5E1E2;
}
.ui.items .item .like.label.active .icon {
color: #EF404A
}
/*--------------
Extra Content
---------------*/
.ui.items .item .extra {
position: @extraDisplay;
width: @extraWidth;
padding: @extraPadding;
top: @extraTop;
left: @extraLeft;
color: @extraColor;
transition: @extraTransition;
}
/*******************************
States
*******************************/
.ui.items .item:hover {
cursor: @hoverCursor;
z-index: @hoverZIndex;
border: @hoverBorder;
box-shadow: @hoverBoxShadow;
}
/*******************************
Variations
*******************************/
/*--------------
Connected
---------------*/
.ui.connected.items {
display: table;
width: 100%;
margin-left: 0em !important;
margin-right: 0em !important;
}
.ui.connected.items > .row > .item,
.ui.connected.items > .item {
float: none;
display: table-cell;
vertical-align: top;
height: auto;
border-radius: 0px;
margin: 0em;
width: 33.33%;
}
.ui.connected.items > .row {
display: table;
margin: 0.5em 0em;
}
.ui.connected.items > .row:first-child {
margin-top: 0em;
}
/* Borders */
.ui.connected.items > .item,
.ui.connected.items > .row:last-child > .item {
border-bottom: 0.2em solid rgba(0, 0, 0, 0.2);
}
.ui.connected.items > .row:last-child > .item:first-child,
.ui.connected.items > .item:first-child {
border-radius: 0em 0em 0em 0.33em;
}
.ui.connected.items > .row:last-child > .item:last-child,
.ui.connected.items > .item:last-child {
border-radius: 0em 0em 0.33em 0em;
}
/* Hover */
.ui.connected.items .item:hover {
border-bottom-width: 0.2em;
}
/* Item Count */
.ui.one.connected.items > .row > .item,
.ui.one.connected.items > .item {
width: @oneColumn;
}
.ui.two.connected.items > .row > .item,
.ui.two.connected.items > .item {
width: @twoColumn;
}
.ui.three.connected.items > .row > .item,
.ui.three.connected.items > .item {
width: @threeColumn;
}
.ui.four.connected.items > .row > .item,
.ui.four.connected.items > .item {
width: @fourColumn;
}
.ui.five.connected.items > .row > .item,
.ui.five.connected.items > .item {
width: @fiveColumn;
}
.ui.six.connected.items > .row > .item,
.ui.six.connected.items > .item {
width: @sixColumn;
}
.ui.seven.connected.items > .row > .item,
.ui.seven.connected.items > .item {
width: @sevenColumn;
}
.ui.eight.connected.items > .row > .item,
.ui.eight.connected.items > .item {
width: @eightColumn;
}
.ui.nine.connected.items > .row > .item,
.ui.nine.connected.items > .item {
width: @nineColumn;
}
.ui.ten.connected.items > .row > .item,
.ui.ten.connected.items > .item {
width: @tenColumn;
}
.ui.eleven.connected.items > .row > .item,
.ui.eleven.connected.items > .item {
width: @elevenColumn;
}
.ui.twelve.connected.items > .row > .item,
.ui.twelve.connected.items > .item {
width: @twelveColumn;
}
/*-------------------
Responsive
--------------------*/
@media only screen and (max-width : 768px) {
.ui.stackable.items {
display: block !important;
}
.ui.stackable.items > .item,
.ui.stackable.items > .row > .item {
display: block !important;
height: auto !important;
width: auto !important;
padding: 0% !important;
}
}
/*--------------------
Horizontal
---------------------*/
.ui.horizontal.items > .item,
.ui.items > .horizontal.item {
display: table;
}
.ui.horizontal.items > .item > .image,
.ui.items > .horizontal.item > .image {
display: table-cell;
width: 50%;
}
.ui.horizontal.items > .item > .image + .content,
.ui.items > .horizontal.item > .image + .content {
width: 50%;
display: table-cell;
}
.ui.horizontal.items > .item > .content,
.ui.items > .horizontal.item > .content {
padding: 1% 1.7% 11% 3%;
vertical-align: top;
}
.ui.horizontal.items > .item > .meta,
.ui.items > .horizontal.item > .meta {
position: absolute;
padding: 0%;
bottom: 7%;
left: 3%;
width: 94%;
}
.ui.horizontal.items > .item > .image + .content + .meta,
.ui.items > .horizontal.item > .image + .content + .meta {
bottom: 7%;
left: 53%;
width: 44%;
}
.ui.horizontal.items > .item .avatar,
.ui.items > .horizontal.item .avatar {
width: 11.5%;
}
.ui.items > .item .avatar {
max-width: 25px;
}
/*--------------
Item Count
---------------*/
.ui.one.items {
margin-left: -2%;
margin-right: -2%;
}
.ui.one.items > .item {
width: 100%;
margin-left: 2%;
margin-right: 2%;
}
.ui.two.items {
margin-left: -1%;
margin-right: -1%;
}
.ui.two.items > .item {
width: 48%;
margin-left: 1%;
margin-right: 1%;
}
.ui.two.items > .item:nth-child(2n+1) {
clear: left;
}
.ui.three.items {
margin-left: -1%;
margin-right: -1%;
}
.ui.three.items > .item {
width: 31.333%;
margin-left: 1%;
margin-right: 1%;
}
.ui.three.items > .item:nth-child(3n+1) {
clear: left;
}
.ui.four.items {
margin-left: -0.5%;
margin-right: -0.5%;
}
.ui.four.items > .item {
width: 24%;
margin-left: 0.5%;
margin-right: 0.5%;
}
.ui.four.items > .item:nth-child(4n+1) {
clear: left;
}
.ui.five.items {
margin-left: -0.5%;
margin-right: -0.5%;
}
.ui.five.items > .item {
width: 19%;
margin-left: 0.5%;
margin-right: 0.5%;
}
.ui.five.items > .item:nth-child(5n+1) {
clear: left;
}
.ui.six.items {
margin-left: -0.5%;
margin-right: -0.5%;
}
.ui.six.items > .item {
width: 15.66%;
margin-left: 0.5%;
margin-right: 0.5%;
}
.ui.six.items > .item:nth-child(6n+1) {
clear: left;
}
.ui.seven.items {
margin-left: -0.5%;
margin-right: -0.5%;
}
.ui.seven.items > .item {
width: 13.28%;
margin-left: 0.5%;
margin-right: 0.5%;
font-size: 11px;
}
.ui.seven.items > .item:nth-child(7n+1) {
clear: left;
}
.ui.eight.items {
margin-left: -0.25%;
margin-right: -0.25%;
}
.ui.eight.items > .item {
width: 12.0%;
margin-left: 0.25%;
margin-right: 0.25%;
font-size: 11px;
}
.ui.eight.items > .item:nth-child(8n+1) {
clear: left;
}
.ui.nine.items {
margin-left: -0.25%;
margin-right: -0.25%;
}
.ui.nine.items > .item {
width: 10.61%;
margin-left: 0.25%;
margin-right: 0.25%;
font-size: 10px;
}
.ui.nine.items > .item:nth-child(9n+1) {
clear: left;
}
.ui.ten.items {
margin-left: -0.2%;
margin-right: -0.2%;
}
.ui.ten.items > .item {
width: 9.6%;
margin-left: 0.2%;
margin-right: 0.2%;
font-size: 10px;
}
.ui.ten.items > .item:nth-child(10n+1) {
clear: left;
}
.ui.eleven.items {
margin-left: -0.2%;
margin-right: -0.2%;
}
.ui.eleven.items > .item {
width: 8.69%;
margin-left: 0.2%;
margin-right: 0.2%;
font-size: 9px;
}
.ui.eleven.items > .item:nth-child(11n+1) {
clear: left;
}
.ui.twelve.items {
margin-left: -0.1%;
margin-right: -0.1%;
}
.ui.twelve.items > .item {
width: 8.1333%;
margin-left: 0.1%;
margin-right: 0.1%;
font-size: 9px;
}
.ui.twelve.items > .item:nth-child(12n+1) {
clear: left;
}
/*--------------
Items
---------------*/
.ui.items > .row > .item,
.ui.items > .item {
font-size: @medium;
}