Last active
August 29, 2015 14:02
-
-
Save giiska/2af16df161e09f1f020a to your computer and use it in GitHub Desktop.
fixed width column with fluid row container by bootstrap grid system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="ir-msg-list ..."> | |
<li class="grid-list-header row-cw row-cw-msg-list ..."> | |
<div class="col-md-1 col-cw col-cw-name"> | |
<div class="col-md-1 col-cw col-cw-keyword"> | |
<div class="col-md-1 col-cw col-cw-reply"> | |
<div class="col-md-1 col-cw col-cw-action"> | |
</li> | |
<li class="grid-list-item row-cw row-cw-msg-list ..."> | |
<div class="col-md-1 col-cw col-cw-name"> | |
<div class="col-md-1 col-cw col-cw-keyword"> | |
<div class="col-md-1 col-cw col-cw-reply"> | |
<div class="col-md-1 col-cw col-cw-action"> | |
</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row-cw { | |
position: relative; | |
} | |
.col-cw { | |
position: absolute; | |
top: 0; | |
} | |
.ir-msg-list { | |
$col-reply-width: 140px; | |
$col-action-width: 130px; | |
.row-cw-msg-list { | |
padding-right: $col-reply-width + $col-action-width; | |
} | |
.col-cw-name { | |
width: 50%; | |
} | |
.col-cw-keyword { | |
width: 50%; | |
} | |
.col-cw-reply { | |
width: $col-reply-width; | |
right: $col-action-width; | |
} | |
.col-cw-action { | |
width: $col-action-width; | |
right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment