Commit 3967adca authored by Randall Leeds's avatar Randall Leeds

Break thread styles out into threads.scss

parent 62e8a2cf
...@@ -65,8 +65,6 @@ $highlight-mode-color: rgba(255, 255, 60, 0.3); ...@@ -65,8 +65,6 @@ $highlight-mode-color: rgba(255, 255, 60, 0.3);
$highlight-mode-color-second: rgba(206, 206, 60, 0.4); $highlight-mode-color-second: rgba(206, 206, 60, 0.4);
$highlight-mode-color-third: rgba(192, 192, 49, 0.4); $highlight-mode-color-third: rgba(192, 192, 49, 0.4);
$highlight-mode-active-color: rgba(255, 255, 60, 0.7); $highlight-mode-active-color: rgba(255, 255, 60, 0.7);
$thread-padding: 1em;
$threadexp-width: .6em;
$score-width: 40px; $score-width: 40px;
$score-height: $score-width; $score-height: $score-width;
$heatmap-width: 22px; $heatmap-width: 22px;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
@import 'forms'; @import 'forms';
@import 'spinner'; @import 'spinner';
@import 'responsive'; @import 'responsive';
@import 'threads';
@import 'yui_grid'; @import 'yui_grid';
@import 'simple-search'; @import 'simple-search';
...@@ -511,126 +512,6 @@ blockquote { ...@@ -511,126 +512,6 @@ blockquote {
} }
} }
//THREADING////////////////////////////////
//Threaded discussion specific
.thread {
cursor: pointer;
position: relative;
& > * {
@include pie-clearfix;
}
& > ul {
padding-left: $thread-padding + .15em;
margin-left: -$thread-padding;
}
.load-more {
@include pie-clearfix;
font-family: $sans-font-family;
font-weight:bold;
font-size: .8em;
}
.thread {
border-left: 1px dotted $gray-light;
height: 100%;
padding: 0;
padding-left: $thread-padding;
&.collapsed {
& > .annotation {
fuzzytime {
float: none;
font-style: italic;
}
header {
display: inline-block;
}
.body {
display: none;
}
.magicontrol {
display: none;
}
.reply-count {
font-style: italic;
}
}
}
}
.threadexp {
background: $white;
color: $gray-light;
position: absolute;
width: 1.4em;
height: 1.4em;
top: 0;
left: -.7em;
span {
position: absolute;
top: (1.4 - $threadexp-width) / 2;
left: (1.4 - $threadexp-width) / 2;
width: $threadexp-width;
height: $threadexp-width;
&:before {
font-size: $threadexp-width;
position: absolute;
top: 0;
left: 0;
}
}
}
.annotation {
&.squished {
padding-left: 0;
}
}
&.collapsed {
display: block !important;
&:hover {
background-color: $gray-lightest;
}
& > ul {
max-height: 0;
overflow: hidden;
}
& > .annotation {
.body * {
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
margin-top: 0;
margin-bottom: 0;
}
.indicators {
display: run-in;
margin-right: .25em;
}
}
& > .threadexp {
background-image: url("../images/plus_1.png");
}
}
}
//MAGICONTROL//////////////////////////////// //MAGICONTROL////////////////////////////////
.magicontrol { .magicontrol {
@include transition(opacity); @include transition(opacity);
......
@import 'base';
$thread-padding: 1em;
$threadexp-width: .6em;
.thread {
cursor: pointer;
position: relative;
& > * {
@include pie-clearfix;
}
& > ul {
padding-left: $thread-padding + .15em;
margin-left: -$thread-padding;
}
.load-more {
@include pie-clearfix;
font-family: $sans-font-family;
font-weight:bold;
font-size: .8em;
}
.thread {
border-left: 1px dotted $gray-light;
height: 100%;
padding: 0;
padding-left: $thread-padding;
&.collapsed {
& > .annotation {
fuzzytime {
float: none;
font-style: italic;
}
header {
display: inline-block;
}
.body {
display: none;
}
.magicontrol {
display: none;
}
.reply-count {
font-style: italic;
}
}
}
}
.threadexp {
background: $white;
color: $gray-light;
position: absolute;
width: 1.4em;
height: 1.4em;
top: 0;
left: -.7em;
span {
position: absolute;
top: (1.4 - $threadexp-width) / 2;
left: (1.4 - $threadexp-width) / 2;
width: $threadexp-width;
height: $threadexp-width;
&:before {
font-size: $threadexp-width;
position: absolute;
top: 0;
left: 0;
}
}
}
.annotation {
&.squished {
padding-left: 0;
}
}
&.collapsed {
display: block !important;
&:hover {
background-color: $gray-lightest;
}
& > ul {
max-height: 0;
overflow: hidden;
}
& > .annotation {
.body * {
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
margin-top: 0;
margin-bottom: 0;
}
.indicators {
display: run-in;
margin-right: .25em;
}
}
& > .threadexp {
background-image: url("../images/plus_1.png");
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment