Browse Source

Continuing to expand on examples for list/item/card

pull/1063/head
jlukic 10 years ago
parent
commit
76b8899a46
18 changed files with 435 additions and 165 deletions
  1. 98
      server/documents/modules/rating.html.eco
  2. 213
      server/documents/views/card.html.eco
  3. 204
      server/documents/views/item.html.eco
  4. 0
      server/files/images/animals/poneys.jpg
  5. BIN
      server/files/images/animals/test.jpg
  6. BIN
      server/files/images/avatar/large/helen.jpg
  7. 0
      server/files/images/avatar/large/veronika.jpg
  8. 0
      server/files/images/avatar/small/veronika.jpg
  9. BIN
      server/files/images/logos/arrowhead.png
  10. BIN
      server/files/images/logos/big-buck.png
  11. BIN
      server/files/images/logos/sunset.png
  12. 4
      server/files/javascript/rating.js
  13. 11
      server/files/stylesheets/semantic.css
  14. 15
      src/definitions/modules/rating.less
  15. 27
      src/definitions/views/item.less
  16. 3
      src/themes/packages/basic/views/card.variables
  17. 14
      src/themes/packages/default/modules/rating.variables
  18. 11
      src/themes/packages/default/views/item.variables

98
server/documents/modules/rating.html.eco

@ -42,8 +42,18 @@ themes : ['Default']
<h4 class="ui header">Star</h4>
<p>A rating can use a set of star icons</p>
<div>
Average rating:
<div class="ui compact segment">
Rating
<div class="ui star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<div class="ui header">
Rating
<div class="ui star rating">
<i class="icon"></i>
<i class="icon"></i>
@ -71,44 +81,62 @@ themes : ['Default']
<div class="example">
<h4 class="ui header">Size</h4>
<p>A rating can vary in size</p>
<div class="another example">
<div class="ui small star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ui mini star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="another example">
<div class="ui star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui tiny star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="another example">
<div class="ui large star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui small star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="another example">
<div class="ui huge star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui large star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui huge star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="ignored hidden ui divider"></div>
<div class="ui massive star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
</div>
<div class="ui tab" data-tab="examples">

213
server/documents/views/card.html.eco

@ -42,7 +42,7 @@ themes : ['Default', 'Basic']
<span class="date">Joined in 2014</span>
</div>
<div class="description">
Stevie Feliciano lives in New York City. She spends her time reading, running, and writing and likes the park.
Stevie Feliciano is a library scientist living in New York City. She likes to spend her time reading, running, and writing.
</div>
</div>
<div class="extra content">
@ -57,90 +57,145 @@ themes : ['Default', 'Basic']
<div class="even example">
<h4 class="ui header">Cards</h4>
<p>A group of cards. </p>
<div class="ignored yellow ui message">
<div class="header">
<i class="info icon"></i>
Equal Size Cards
</div>
<p>Your card's content may vary in length. In order to keep cards aligned, it is best to set a <code>min-height</code> that matches your largest card size.</p>
<p>For example:</p>
<div class="code" data-type="css">
/* Sets card height to about 3 lines of description */
#my-container .card .content {
min-height: 145px;
}
</div>
<div class="ui info message">
<h3 class="header">Customizing your views</h3>
<p>Cards are designed to be flexible to your content. Meta content can include custom elements related to your content. Each child element inside the <code>extra content</code> or <code>meta</code> group will be automatically formatted to be spaced appropriately.</p>
<p>This example includes a category group, a sign-up date, and a friend count which are arbitrary class names used to format users as cards.</p>
</div>
<div class="ui cards">
<div class="card">
<div class="image">
<img src="/images/demo/highres.jpg">
<img src="/images/avatar/large/elliot.jpg">
</div>
<div class="content">
<div class="header">Cute Dog</div>
<div class="meta">Today</div>
<div class="description">This dog has some things going for it. Its pretty cute and looks like it'd be fun to cuddle up with.</div>
<div class="header">Elliot Fu</div>
<div class="meta">
<a class="group">Friends</a>
</div>
<div class="description">
Elliot Fu is a film-maker from New York.
</div>
</div>
<div class="extra content">
<i class="check icon"></i>
199 Votes
<a class="right floated created">
Joined in 2011
</a>
<a class="friends">
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
<div class="card">
<div class="image">
<img src="/images/demo/highres2.jpg">
<img src="/images/avatar/large/helen.jpg">
</div>
<div class="content">
<div class="header">Faithful Dog</div>
<div class="meta">5 days ago</div>
<div class="description">Sometimes its more important to have a dog you know you can trust. But not every dog is trustworthy, you can tell by looking at its smile.</div>
<div class="header">Helen Troy</div>
<div class="meta">
<a class="group">Friends</a>
</div>
<div class="description">
Helen Troy is an archivist living in New York, who enjoys cooking, fine art, and gardening.
</div>
</div>
<div class="extra content">
<i class="check icon"></i>
199 Votes
<a class="right floated created">
Joined in 2013
</a>
<a class="friends">
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
<div class="card">
<div class="image">
<img src="/images/demo/highres3.jpg">
<img src="/images/avatar/large/jenny.jpg">
</div>
<div class="content">
<div class="header">Silly Dog</div>
<div class="meta">12 days ago</div>
<div class="description">Silly dogs can be quite fun to have as companions. You never know what kind of ridiculous thing they will do.</div>
<div class="header">Jenny Hess</div>
<div class="meta">
<a class="group">Friends</a>
</div>
<div class="description">
Jenny is a student studying Media Management at the New School.
</div>
</div>
<div class="extra content">
<i class="check icon"></i>
199 Votes
<a class="right floated created">
Joined in 2012
</a>
<a class="friends">
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
<div class="card">
<div class="image">
<img src="/images/demo/highres4.jpg">
<img src="/images/avatar/large/veronika.jpg">
</div>
<div class="content">
<div class="header">Introverted Dog</div>
<div class="meta">18 days ago</div>
<div class="description">Introverted dogs don't like to say much, but thats ok, dogs can't talk anyways.</div>
<div class="header">Veronika Ossi</div>
<div class="meta">
<a class="group">Friends</a>
</div>
<div class="description">
Veronika Ossi is a set designer living in New York who enjoys kittens, music, and partying.
</div>
</div>
<div class="extra content">
<i class="check icon"></i>
199 Votes
<a class="right floated created">
Joined in 2013
</a>
<a class="friends">
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
<div class="card">
<div class="image">
<img src="/images/demo/highres5.jpg">
<img src="/images/avatar/large/stevie.jpg">
</div>
<div class="content">
<a class="header">Stevie Feliciano</a>
<div class="meta">
<span class="date">Joined in 2014</span>
</div>
<div class="description">
Stevie Feliciano is a library scientist living in New York City.
</div>
</div>
<div class="extra content">
<a>
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
<div class="card">
<div class="image">
<img src="/images/avatar/large/steve.jpg">
</div>
<div class="content">
<div class="header">Large Dog</div>
<div class="meta">22 days ago</div>
<div class="description">Large dogs just take up a lot of space. There's not much to be said.</div>
<div class="header">Steve Jobes</div>
<div class="meta">
<a class="group">Acquaintances</a>
</div>
<div class="description">
Stevie Jobes is a fictional character designed to resemble someone familiar to readers.
</div>
</div>
<div class="extra content">
<i class="check icon"></i>
199 Votes
<a class="right floated created">
Joined in 2014
</a>
<a class="friends">
<i class="user icon"></i>
22 Friends
</a>
</div>
</div>
</div>
@ -148,14 +203,52 @@ themes : ['Default', 'Basic']
<h2 class="ui dividing header">Content</h2>
<div class="example">
<h4 class="ui header">Title</h4>
<p>A card can contain content a title</p>
<div class="ui card">
<div class="content">
<div class="header">Cute Dog</div>
<div class="meta">2 days ago</div>
<div class="description">This dog has some things going for it. Its pretty cute and looks like it'd be fun to cuddle up with.</div>
<div class="ignored yellow ui message">
<div class="header">
<i class="info icon"></i>
Equal Size Cards
</div>
<p>If your cards have content that vary in length you must set a <code>min-height</code> for that content area, or the whole card.</p>
<p>For example:</p>
<div class="code" data-type="css">
/* Sets card height to about two lines of description */
#my-container .card .description {
min-height: 35px;
}
</div>
</div>
<div class="even example">
<h4 class="ui header">Header</h4>
<p>A card can contain a header</p>
<div class="ui cards">
<div class="card">
<div class="content">
<div class="header">Elliot Fu</div>
<div class="meta">Friend</div>
<div class="description">
Elliot Fu is a film-maker from New York.
</div>
</div>
</div>
<div class="card">
<div class="content">
<div class="header">Veronika Ossi</div>
<div class="meta">Friend</div>
<div class="description">
Veronika Ossi is a set designer living in New York who enjoys kittens, music, and partying.
</div>
</div>
</div>
<div class="card">
<div class="content">
<div class="header">Jenny Hess</div>
<div class="meta">Friend</div>
<div class="description">
Jenny is a student studying Media Management at the New School
</div>
</div>
</div>
</div>
</div>
@ -202,8 +295,8 @@ themes : ['Default', 'Basic']
</div>
<div class="example">
<h4 class="ui header">Icons</h4>
<p>A card can contain icons to denote user actions.</p>
<h4 class="ui header">Actions</h4>
<p>A card can contain common actions</p>
<div class="ui info message">
Common actions may contain special formatting, like "star" or "heart". To attach events, on a user action, please check out the <a href="#">state behavior</a>.
</div>
@ -212,6 +305,16 @@ themes : ['Default', 'Basic']
<i class="right floated like icon"></i>
<i class="right floated star icon"></i>
<div class="header">Cute Dog</div>
<div class="extra content">
<span class="like">
<i class="like icon"></i>
Like
</span>
<span class="star">
<i class="star icon"></i>
Favorite
</span>
</div>
</div>
</div>
</div>

204
server/documents/views/item.html.eco

@ -6,7 +6,7 @@ element : 'item'
elementType : 'view'
title : 'Item'
description : 'An item view divides site content into vertical groups for display'
description : 'An item view formats large collections of content for display vertically'
type : 'UI View'
themes : ['Default']
@ -15,7 +15,6 @@ themes : ['Default']
<%- @partial('header') %>
<link rel="stylesheet/less" type="text/css" href="/build/less/definitions/views/item.less" />
<script src="/javascript/item.js"></script>
<div class="main container">
@ -32,46 +31,79 @@ themes : ['Default']
<div class="even example">
<h4 class="ui header">Items</h4>
<p>A group of items.</p>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="image">
<img src="/images/demo/highres.jpg">
<img src="/images/logos/arrowhead.png">
</div>
<div class="content">
<a class="header">Cute Dog</a>
<div class="meta">Today</div>
<div class="description">This dog has some things going for it. Its pretty cute and looks like it'd be fun to cuddle up with.</div>
<div class="middle aligned content">
<a class="header">Arrowhead Valley Camp</a>
<div class="meta">
<span class="price">$1200</span>
<span class="stay">1 Month</span>
</div>
<div class="description">
This camp in the Hudson Valley is perfect for teenagers from 10-14.
</div>
<div class="extra">
<i class="check icon"></i>
199 Votes
<span class="right floated amenities ui label">
<i class="child icon"></i>
Child Friendly
</span>
<span class="available">
<i class="red check icon"></i>
0 Spots Available
</span>
</div>
</div>
</div>
<div class="item">
<div class="image">
<img src="/images/demo/highres2.jpg">
<img src="/images/logos/big-buck.png">
</div>
<div class="content">
<a class="header">Faithful Dog</a>
<div class="meta">5 days ago</div>
<div class="description">Sometimes its more important to have a dog you know you can trust. But not every dog is trustworthy, you can tell by looking at its smile.</div>
<div class="middle aligned content">
<a class="header">Buck's Homebrew Stayaway</a>
<div class="meta">
<span class="price">$1000</span>
<span class="stay">2 Weeks</span>
</div>
<div class="description">
This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
</div>
<div class="extra">
<i class="check icon"></i>
199 Votes
<span class="right floated amenities ui label">
<i class="male icon"></i>
Adults-Only
</span>
<span class="available">
<i class="green check icon"></i>
2 Spots Available
</span>
</div>
</div>
</div>
<div class="item">
<div class="image">
<img src="/images/demo/highres3.jpg">
<img src="/images/logos/sunset.png">
</div>
<div class="content">
<a class="header">Silly Dog</a>
<div class="meta">12 days ago</div>
<div class="description">Silly dogs can be quite fun to have as companions. You never know what kind of ridiculous thing they will do.</div>
<div class="middle aligned content">
<a class="header">Greek Astrology Camp</a>
<div class="meta">
<span class="price">$1600</span>
<span class="stay">6 Weeks</span>
</div>
<div class="description">
Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
</div>
<div class="extra">
<i class="check icon"></i>
199 Votes
<span class="right floated amenities ui label">
<i class="child icon"></i>
Child Friendly
</span>
<span class="available">
<i class="green check icon"></i>
25 Spots Available
</span>
</div>
</div>
</div>
@ -81,14 +113,31 @@ themes : ['Default']
<h2 class="ui dividing header">Content</h2>
<div class="example">
<h4 class="ui header">Title</h4>
<p>A item can contain content a title</p>
<div class="ui items">
<h4 class="ui header">Header</h4>
<p>A item can contain a header</p>
<div class="ui items segment">
<div class="item">
<div class="content">
<a class="header">Cute Dog</a>
<div class="meta">2 days ago</div>
<div class="description">This dog has some things going for it. Its pretty cute and looks like it'd be fun to cuddle up with.</div>
<div class="header">Arrowhead Valley Camp</div>
<div class="description">
This camp in the Hudson Valley is perfect for teenagers from 10-14.
</div>
</div>
</div>
<div class="item">
<div class="content">
<div class="header">Buck's Homebrew Stayaway</div>
<div class="description">
This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
</div>
</div>
</div>
<div class="item">
<div class="content">
<div class="header">Astrology Camp</div>
<div class="description">
Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
</div>
</div>
</div>
</div>
@ -101,13 +150,40 @@ themes : ['Default']
<i class="info icon"></i>
You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
</div>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="content">
<a class="header">Cute Dog</a>
<div class="header">Arrowhead Valley Camp</div>
<div class="meta">
<span class="time">2 days ago</span>
<span class="category">Animals</span>
<span class="price">$1200</span>
<span class="stay">1 Month</span>
</div>
<div class="description">
This camp in the Hudson Valley is perfect for teenagers from 10-14.
</div>
</div>
</div>
<div class="item">
<div class="content">
<div class="header">Buck's Homebrew Stayaway</div>
<div class="meta">
<span class="price">$1000</span>
<span class="stay">2 Weeks</span>
</div>
<div class="description">
This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
</div>
</div>
</div>
<div class="item">
<div class="content">
<div class="header">Astrology Camp</div>
<div class="meta">
<span class="price">$1600</span>
<span class="stay">6 Weeks</span>
</div>
<div class="description">
Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
</div>
</div>
</div>
@ -121,18 +197,40 @@ themes : ['Default']
<i class="star icon"></i>
To make the entire content of a item link, check out the link variation below
</div>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<a class="image" href="#">
<img src="/images/demo/highres.jpg">
<a class="ui tiny image">
<img src="/images/avatar/large/stevie.jpg">
</a>
<div class="content">
<a class="header" href="#">Cute Dog</a>
<div class="meta">
<a class="time">2 days ago</a>
<a class="header">Stevie Feliciano</a>
<div class="description">
<p>Stevie Feliciano is a library scientist living in New York City. She likes to spend her time reading, running, and writing.</p>
<a>View Profile</a>
</div>
</div>
</div>
<div class="item">
<a class="ui tiny image">
<img src="/images/avatar/large/veronika.jpg">
</a>
<div class="content">
<a class="header">Veronika Ossi</a>
<div class="description">
Check our this <a href="http://www.dogs.com"> excellent resource</a> on dogs.
<p>Veronika Ossi is a set designer living in New York who enjoys kittens, music, and partying.</p>
<a>View Profile</a>
</div>
</div>
</div>
<div class="item">
<a class="ui tiny image">
<img src="/images/avatar/large/jenny.jpg">
</a>
<div class="content">
<a class="header">Jenny Hess</a>
<div class="description">
<p>Jenny is a student studying Media Management at the New School.</p>
<a>View Profile</a>
</div>
</div>
</div>
@ -145,7 +243,7 @@ themes : ['Default']
<div class="ui info message">
Common actions may contain special formatting, like "star" or "heart". To attach events, on a user action, please check out the <a href="#">state behavior</a>.
</div>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="content">
<i class="right floated like icon"></i>
@ -159,7 +257,7 @@ themes : ['Default']
<div class="example">
<h4 class="ui header">Description</h4>
<p>A item can contain a description with a single or multiple paragraphs</p>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="content">
<a class="header">Cute Dog</a>
@ -176,7 +274,7 @@ themes : ['Default']
<div class="example">
<h4 class="ui header">Extra Content</h4>
<p>A item can contain extra content meant to be formatted separately from the main content</p>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="content">
<a class="header">Cute Dog</a>
@ -186,7 +284,7 @@ themes : ['Default']
<p>Many people also have their own barometers for what makes a cute dog.</p>
</div>
<div class="extra">
<i class="check icon"></i>
<i class="green check icon"></i>
121 Votes
</div>
</div>
@ -198,7 +296,7 @@ themes : ['Default']
<div class="example">
<h4 class="ui header">Image</h4>
<p>A item can contain an image</p>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="image">
<img src="/images/demo/highres.jpg">
@ -211,7 +309,7 @@ themes : ['Default']
<p>Many people also have their own barometers for what makes a cute dog.</p>
</div>
<div class="extra">
<i class="check icon"></i>
<i class="green check icon"></i>
121 Votes
</div>
</div>
@ -267,7 +365,7 @@ themes : ['Default']
<div class="example">
<h4 class="ui header">Link Item</h4>
<p>A item can be formatted so that the entire contents link to another page</p>
<div class="ui items">
<div class="ui items segment">
<a class="item" href="http://www.dog.com">
<div class="image">
<img src="/images/demo/highres.jpg">
@ -321,9 +419,9 @@ themes : ['Default']
</div>
</div>
<div class="extra content">
<div class="right floated author">
<span class="right floated author">
<img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
</div>
</span>
</div>
</div>
</div>
@ -336,7 +434,7 @@ themes : ['Default']
<i class="info icon"></i>
You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
</div>
<div class="ui items">
<div class="ui items segment">
<div class="item">
<div class="content">
<a class="header">Cute Dog</a>
@ -348,9 +446,9 @@ themes : ['Default']
Here's a description of a cute dog.
</div>
<div class="content">
<div class="right floated author">
<span class="right floated author">
<img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
</div>
</span>
</div>
</div>
</div>

server/files/images/animals/2046_m3.jpg → server/files/images/animals/poneys.jpg

BIN
server/files/images/animals/test.jpg

Before After
Width: 830  |  Height: 720  |  Size: 150 KiB

BIN
server/files/images/avatar/large/helen.jpg

Before After
Width: 647  |  Height: 650  |  Size: 119 KiB Width: 650  |  Height: 650  |  Size: 116 KiB

server/files/images/avatar/large/mindy.jpg → server/files/images/avatar/large/veronika.jpg

server/files/images/avatar/small/mindy.jpg → server/files/images/avatar/small/veronika.jpg

BIN
server/files/images/logos/arrowhead.png

Before After
Width: 550  |  Height: 550  |  Size: 32 KiB

BIN
server/files/images/logos/big-buck.png

Before After
Width: 550  |  Height: 550  |  Size: 35 KiB

BIN
server/files/images/logos/sunset.png

Before After
Width: 550  |  Height: 550  |  Size: 47 KiB

4
server/files/javascript/rating.js

@ -4,7 +4,9 @@ semantic.dropdown = {};
semantic.dropdown.ready = function() {
$('.ui.rating')
.rating()
.rating({
initialRating: 3
})
;
};

11
server/files/stylesheets/semantic.css

@ -1234,9 +1234,8 @@ body.guide .main.container > * {
}
body.card .even.example .card .content {
clear: both;
min-height: 145px;
body.card .even.example .card .description {
height: 35px;
}
body.progress .ui.progress .bar {
@ -1319,8 +1318,8 @@ body.progress .ui.progress .bar {
}
@media only screen and (max-width : 1325px) {
#example .container {
width: auto;
margin-right: 100px;
@ -1504,6 +1503,10 @@ body.progress .ui.progress .bar {
#example .container {
width: 850px;
}
#example.item .container,
#example.card .container {
width: 1100px;
}
#example .sticky-wrapper.stuck .peek {
margin-left: -655px;
}

15
src/definitions/modules/rating.less

@ -25,7 +25,6 @@
.ui.rating {
display: @display;
font-size: 0em;
vertical-align: @verticalAlign;
margin: @margin;
@ -54,7 +53,7 @@
font-weight: normal;
font-style: normal;
vertical-align: top;
vertical-align: @verticalAlign;
}
@ -168,6 +167,12 @@
Variations
*******************************/
.ui.mini.rating .icon {
font-size: @mini;
}
.ui.tiny.rating .icon {
font-size: @tiny;
}
.ui.small.rating .icon {
font-size: @small;
}
@ -180,10 +185,14 @@
.ui.huge.rating .icon {
font-size: @huge;
}
.ui.massive.rating .icon {
font-size: @massive;
}
/* Realign */
.ui.large.rating,
.ui.huge.rating {
.ui.huge.rating,
.ui.massive.rating {
vertical-align: @oversizedVerticalAlign;
}

27
src/definitions/views/item.less

@ -93,7 +93,6 @@
position: relative;
display: @imageDisplay;
float: @imageFloat;
width: @imageWidth;
margin: @imageMargin;
padding: @imagePadding;
max-height: @imageMaxHeight;
@ -111,6 +110,11 @@
border-radius: @borderRadius;
}
/* Default Image Width */
.ui.items > .item > .image:not(.ui) {
width: @imageWidth;
}
/*--------------
Content
@ -136,6 +140,7 @@
}
.ui.items > .item > .image + .content {
width: @contentWidth;
display: @contentDisplay;
margin-left: @contentOffset;
vertical-align: @contentVerticalAlign;
@ -143,15 +148,14 @@
}
.ui.items > .item > .content > .header {
display: block;
display: inline-block;
margin: @headerMargin;
font-family: @headerFont;
font-weight: @headerFontWeight;
font-size: @headerFontSize;
color: @headerColor;
}
.ui.items > .item > .content > .meta + .description,
.ui.items > .item > .content > .header + .description {
.ui.items > .item > .content > .meta + .description{
margin-top: @descriptionDistance;
}
@ -325,6 +329,21 @@
Variations
*******************************/
/*-------------------
Aligned
--------------------*/
.ui.items > .item > .image + .top.aligned.content {
vertical-align: top;
}
.ui.items > .item > .image + .middle.aligned.content {
vertical-align: middle;
}
.ui.items > .item > .image + .bottom.aligned.content {
vertical-align: bottom;
}
/*-------------------
Divided
--------------------*/

3
src/themes/packages/basic/views/card.variables

@ -13,6 +13,9 @@
@contentPadding: 1em 0em;
@rowSpacing: 1.5em;
@groupCardMargin: 0em @horizontalSpacing @rowSpacing;
@extraBackground: transparent;
@extraDivider: none;
@extraBoxShadow: none;

14
src/themes/packages/default/modules/rating.variables

@ -5,7 +5,7 @@
@display: inline-block;
@margin: 0em 0.5rem 0em 0em;
@verticalAlign: top;
@verticalAlign: baseline;
@oversizedVerticalAlign: middle;
@iconHitbox: 1.1em;
@ -55,7 +55,11 @@
Variations
--------------------*/
@small: 14px;
@medium: 16px;
@large: 24px;
@huge: 28px;
@mini: 0.7rem;
@tiny: 0.8rem;
@small: 0.875rem;
@medium: 1rem;
@large: 1.1rem;
@big: 1.25rem;
@huge: 1.5rem;
@massive: 2rem;

11
src/themes/packages/default/views/item.variables

@ -7,7 +7,7 @@
--------------------*/
/* Items */
@itemsMargin: 1em 0em;
@itemsMargin: 1.5em 0em;
/* Item */
@display: table;
@ -57,13 +57,13 @@
/* Header */
@headerMargin: 0em;
@headerFontWeight: bold;
@headerFontSize: 1.25em;
@headerFontSize: 1.2em;
@headerColor: @darkTextColor;
/* Metadata */
@metaFontSize: 0.9em;
@metaFontSize: 1em;
@metaSpacing: 0.3em;
@metaColor: @lightTextColor;
@metaColor: rgba(0, 0, 0, 0.6);
/* Icons */
@actionOpacity: 0.75;
@ -84,12 +84,13 @@
@metaLinkHoverColor: @textColor;
/* Description */
@descriptionDistance: 0.75em;
@descriptionDistance: 0.6em;
@descriptionFontSize: 1.1em;
@descriptionLineHeight: 1.2;
@descriptionColor: @textColor;
/* Content Image */
@contentWidth: 100%;
@contentImageWidth: 2em;
@contentImageVerticalAlign: middle;

Loading…
Cancel
Save