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.
203 lines
3.6 KiB
203 lines
3.6 KiB
/*
|
|
* # Semantic - Image
|
|
* http://github.com/jlukic/semantic-ui/
|
|
*
|
|
*
|
|
* Copyright 2013 Contributors
|
|
* Released under the MIT license
|
|
* http://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*******************************
|
|
Theme
|
|
*******************************/
|
|
|
|
@type : 'element';
|
|
@element : 'image';
|
|
|
|
@import '../semantic.config';
|
|
|
|
|
|
/*******************************
|
|
Image
|
|
*******************************/
|
|
|
|
.ui.image {
|
|
position: relative;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
max-width: 100%;
|
|
background-color: @placeholderColor;
|
|
}
|
|
img.ui.image {
|
|
display: block;
|
|
background: none;
|
|
}
|
|
.ui.image img {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/*******************************
|
|
States
|
|
*******************************/
|
|
|
|
|
|
.ui.disabled.image {
|
|
cursor: default;
|
|
opacity: @disabledOpacity;
|
|
}
|
|
|
|
|
|
/*******************************
|
|
Variations
|
|
*******************************/
|
|
|
|
/*--------------
|
|
Rounded
|
|
---------------*/
|
|
|
|
.ui.rounded.images .image,
|
|
.ui.rounded.images img,
|
|
.ui.rounded.image img,
|
|
.ui.rounded.image {
|
|
border-radius: @roundedBorderRadius;
|
|
}
|
|
|
|
/*--------------
|
|
Circular
|
|
---------------*/
|
|
|
|
.ui.circular.images .image,
|
|
.ui.circular.images img,
|
|
.ui.circular.image img,
|
|
.ui.circular.image {
|
|
-webkit-border-radius: @circularRadius;
|
|
-moz-border-radius: @circularRadius;
|
|
border-radius: @circularRadius;
|
|
}
|
|
|
|
/*--------------
|
|
Fluid
|
|
---------------*/
|
|
|
|
.ui.fluid.images,
|
|
.ui.fluid.image,
|
|
.ui.fluid.images img,
|
|
.ui.fluid.image img {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
/*--------------
|
|
Avatar
|
|
---------------*/
|
|
|
|
.ui.avatar.images .image,
|
|
.ui.avatar.images img,
|
|
.ui.avatar.image img,
|
|
.ui.avatar.image {
|
|
margin-left: @imageSpacing;
|
|
|
|
display: inline-block;
|
|
width: @avatarSize;
|
|
height: @avatarSize;
|
|
|
|
-webkit-border-radius: @circularRadius;
|
|
-moz-border-radius: @circularRadius;
|
|
border-radius: @circularRadius;
|
|
}
|
|
|
|
|
|
|
|
/*-------------------
|
|
Floated
|
|
--------------------*/
|
|
|
|
.ui.floated.image,
|
|
.ui.floated.images {
|
|
float: right;
|
|
margin-left: @floatedHorizontalMargin;
|
|
margin-bottom: @floatedVerticalMargin;
|
|
}
|
|
.ui.right.floated.images,
|
|
.ui.right.floated.image {
|
|
float: left;
|
|
margin-bottom: @floatedVerticalMargin;
|
|
margin-right: @floatedHorizontalMargin;
|
|
}
|
|
|
|
|
|
/*--------------
|
|
Sizes
|
|
---------------*/
|
|
|
|
.ui.mini.images .image,
|
|
.ui.mini.images img,
|
|
.ui.mini.image {
|
|
width: @miniWidth;
|
|
font-size: @mini;
|
|
}
|
|
.ui.tiny.images .image,
|
|
.ui.tiny.images img,
|
|
.ui.tiny.image {
|
|
width: @tinyWidth;
|
|
font-size: @tiny;
|
|
}
|
|
.ui.small.images .image,
|
|
.ui.small.images img,
|
|
.ui.small.image {
|
|
width: @smallWidth;
|
|
font-size: @small;
|
|
}
|
|
.ui.medium.images .image,
|
|
.ui.medium.images img,
|
|
.ui.medium.image {
|
|
width: @mediumWidth;
|
|
font-size: @medium;
|
|
}
|
|
.ui.large.images .image,
|
|
.ui.large.images img,
|
|
.ui.large.image {
|
|
width: @largeWidth;
|
|
font-size: @large;
|
|
}
|
|
.ui.big.images .image,
|
|
.ui.big.images img,
|
|
.ui.big.image {
|
|
width: @bigWidth;
|
|
font-size: @big;
|
|
}
|
|
.ui.huge.images .image,
|
|
.ui.huge.images img,
|
|
.ui.huge.image {
|
|
width: @hugeWidth;
|
|
font-size: @huge;
|
|
}
|
|
.ui.massive.images .image,
|
|
.ui.massive.images img,
|
|
.ui.massive.image {
|
|
width: @massiveWidth;
|
|
font-size: @massive;
|
|
}
|
|
|
|
/*******************************
|
|
Groups
|
|
*******************************/
|
|
|
|
.ui.images {
|
|
font-size: 0em;
|
|
margin: 0em -@imageSpacing 0rem;
|
|
}
|
|
|
|
.ui.images .image,
|
|
.ui.images img {
|
|
display: inline-block;
|
|
margin: 0em @imageSpacing (@imageSpacing * 2);
|
|
}
|