Aligned classes CSS

This commit is contained in:
Kenneth Jao 2016-09-07 01:53:15 -04:00
parent dac17c2d84
commit 5bcb54dba7
2 changed files with 12 additions and 16 deletions

View File

@ -268,7 +268,6 @@
} }
#label { #label {
width: 90%;
margin-top: 2.5%; margin-top: 2.5%;
margin-bottom: 2%; margin-bottom: 2%;
@ -280,7 +279,7 @@
} }
.classHolder { .classHolder {
width: 90%; width: 100%;
max-height: 26vh; max-height: 26vh;
padding: 1%; padding: 1%;
padding-right: 100%; padding-right: 100%;
@ -304,13 +303,14 @@
.classBox { .classBox {
font-size: 2.7vh; font-size: 2.7vh;
width: 100%; width: 39vw;
margin-bottom: 3%; margin-bottom: 3%;
padding: 2%; padding: 2%;
background-color: #19B3B3; background-color: #19B3B3;
box-shadow: 2px 2px 5px 3px #666; box-shadow: 2px 2px 5px 3px #666;
display: table; display: table;
table-layout: fixed;
cursor: pointer; cursor: pointer;
-webkit-transition: background-color 0.4s ease; -webkit-transition: background-color 0.4s ease;
@ -363,22 +363,16 @@
margin-left: .5%; margin-left: .5%;
margin-right: 10%; margin-right: 10%;
display: table-cell; display: table-cell;
text-align: left;
}
.classBox .fa-times {
display: table-cell;
width: 5%;
} }
.name { .name {
width: 45%; width: 40%;
}
.teacher {
width: 20%;
}
.hour {
width: 15%;
}
.subscribers {
width: 13%;
} }
.hour.classText, .subscribers.classText { .hour.classText, .subscribers.classText {

View File

@ -268,6 +268,8 @@
<span class="subscribers classText">{{subscribers}}</span> <span class="subscribers classText">{{subscribers}}</span>
{{#if mine}} {{#if mine}}
<i class="fa fa-times" aria-hidden="true"></i> <i class="fa fa-times" aria-hidden="true"></i>
{{else}}
<i class="fa fa-times" aria-hidden="true" style="visibility:hidden"></i>
{{/if}} {{/if}}
</div> </div>
</template> </template>