Skip to content

Commit

Permalink
[WebUI IntelliHome#7] Added tiles style to isotope css
Browse files Browse the repository at this point in the history
  • Loading branch information
skullbocks committed Jul 27, 2014
1 parent 9da5843 commit 84fe5b9
Showing 1 changed file with 83 additions and 3 deletions.
86 changes: 83 additions & 3 deletions assets/public/css/isotope.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
#iso {
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

/* ---- .iso ---- */

.iso {
margin: 0 auto;
width: 100%;
border: 1px solid #333;
}

/* clear fix */
.iso:after {
content: '';
display: block;
clear: both;
}
/* Browser Support of ':first-of-type' pseudo-class
Chrome Safari Firefox Opera IE Android iOS
Works 3.2+ Works 9.5+ 9+ Works Works
*/
#iso .row:first-of-type {
.iso .row:first-of-type {
margin: 0;
}

Expand Down Expand Up @@ -49,4 +64,69 @@ Works 3.2+ Works 9.5+ 9+ Works Works
#iso .col-md-3, #iso .col-lg-3 {
width: 400px;
}
}
}



/* ---- .tile-item ---- */

.tile-item {
position: relative;
float: left;
width: 100px;
height: 100px;
margin: 5px;
padding: 10px;
background: #888;
color: #262524;
}

.tile-item > * {
margin: 0;
padding: 0;
}

.tile-item .name {
position: absolute;

left: 10px;
top: 60px;
text-transform: none;
letter-spacing: 0;
font-size: 12px;
font-weight: normal;
}

.tile-item .symbol {
position: absolute;
left: 10px;
top: 0px;
font-size: 42px;
font-weight: bold;
color: white;
}

.tile-item .pin-number {
position: absolute;
right: 8px;
top: 5px;
}

.tile-item .tile-room {
position: absolute;
left: 10px;
top: 76px;
font-size: 12px;
}

/* Defining color and background of tile type */
.tile-item.alkali { background: #F00; background: hsl( 0, 100%, 50%); }
.tile-item.alkaline-earth { background: #F80; background: hsl( 36, 100%, 50%); }
.tile-item.lanthanoid { background: #FF0; background: hsl( 72, 100%, 50%); }
.tile-item.actinoid { background: #0F0; background: hsl( 108, 100%, 50%); }
.tile-item.transition { background: #0F8; background: hsl( 144, 100%, 50%); }
.tile-item.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); }
.tile-item.metalloid { background: #08F; background: hsl( 216, 100%, 50%); }
.tile-item.diatomic { background: #00F; background: hsl( 252, 100%, 50%); }
.tile-item.halogen { background: #F0F; background: hsl( 288, 100%, 50%); }
.tile-item.noble-gas { background: #F08; background: hsl( 324, 100%, 50%); }

0 comments on commit 84fe5b9

Please sign in to comment.