Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
a558e64a
Commit
a558e64a
authored
Oct 28, 2012
by
Jehan Tremback
Committed by
Randall Leeds
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize common.scss
parent
3314ec2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
119 additions
and
114 deletions
+119
-114
common.scss
h/sass/common.scss
+119
-114
No files found.
h/sass/common.scss
View file @
a558e64a
...
...
@@ -4,6 +4,9 @@
$sansFontFamily
:
"Source Sans Pro"
,
$sansFontFamily
;
$serifFontFamily
:
"Merriweather"
,
$serifFontFamily
;
//ELEMENT STYLES////////////////////////////////
a
{
color
:
$linkColor
;
&
:hover
{
color
:
$linkColorHover
;
}
...
...
@@ -77,6 +80,9 @@ label {
@extend
.visuallyhidden
;
}
//MCRANDOM////////////////////////////////
.btn
{
@include
sweetbutton
;
}
...
...
@@ -99,6 +105,21 @@ label {
&
:hover
{
color
:
$linkColorHover
;
}
}
.red
{
color
:
$hypothered
;
}
.pull-left
{
float
:
left
;
}
.pull-right
{
float
:
right
;
}
//CLOSER////////////////////////////////
.close
{
float
:
right
;
font-size
:
1
.2em
;
...
...
@@ -116,14 +137,9 @@ label {
}
}
.pull-left
{
float
:
left
;
}
.pull-right
{
float
:
right
;
}
//TAB PANE////////////////////////////////
.tab-pane
{
background
:
$bodyBackground
;
border
:
solid
thin
$grayLighter
;
...
...
@@ -137,10 +153,9 @@ label {
}
}
.red
{
color
:
$hypothered
;
}
//FORM RELATED////////////////////////////////
.form-horizontal
{
display
:
inline-block
;
.controls
,
.control-group
,
div
,
fieldset
,
...
...
@@ -173,7 +188,8 @@ label {
}
//CONTROLS OBJECT
//CONTROLS////////////////////////////////
.annotator-controls
{
@include
box-shadow
(
-1em
0
1em
0
#fff
);
background
:
#fff
;
...
...
@@ -183,14 +199,7 @@ label {
}
a
{
text-decoration
:
none
;
cursor
:
pointer
;
padding-left
:
1
.3em
;
background-size
:
1em
1em
;
background-repeat
:
no-repeat
;
background-position
:
left
center
;
color
:
$gray
;
text-align
:
right
;
@include
linkbutton
;
&
.write
{
background-image
:
url("../images/pen_1.png")
;
...
...
@@ -214,51 +223,9 @@ label {
}
}
//BODY
.body
{
white-space
:
pre-wrap
;
}
//Provides the white background upon which items sit
.paper
{
@include
border-radius
(
.2em
);
@include
smallshadow
;
background
:
#fff
;
padding
:
1em
;
}
//THREAD INDENTATION
.thread
{
margin
:
0
-1em
-1em
(
-
$thread-padding
/
2
);
padding-left
:
$thread-padding
/
2
;
&
>
.annotator-listing
{
border-left
:
1px
dotted
$grayLight
;
&
>
*
{
padding
:
.5em
1em
1em
$thread-padding
;
}
&
.detail
{
font-size
:
1em
;
}
}
}
//THREADEXP OBJECT
.threadexp
{
height
:
$threadexp-width
;
width
:
$threadexp-width
;
position
:
absolute
;
top
:
.8em
;
left
:
-
(
$threadexp-width
/
2
);
outline
:
1px
dotted
#aaa
;
@include
icon
(
"minus_1.png"
);
.collapsed
>
&
{
background-image
:
url("../images/plus_1.png")
;
}
}
//EXCERPT
//EXCERPT////////////////////////////////
.excerpt
{
position
:
relative
;
margin-bottom
:
1em
;
...
...
@@ -302,7 +269,8 @@ blockquote {
}
//DROPDOWNS
//DROPDOWNS////////////////////////////////
.dropdown
{
position
:
relative
;
span
{
...
...
@@ -358,8 +326,9 @@ blockquote {
}
}
//TABS
//This applies to tab bars
//TABS////////////////////////////////
.nav-tabs
{
@include
pie-clearfix
;
margin
:
0
.5em
;
...
...
@@ -386,35 +355,84 @@ blockquote {
}
}
//TIMESTAMP
.time
{
float
:
right
;
display
:
inline-block
;
line-height
:
2em
;
@include
tertiarytext
;
}
//COMMON CLASSES (TODO: put into a class common to all annotations)
.body
{
margin-bottom
:
.5em
//PAPER////////////////////////////////
//Provides the white background upon which items sit
.paper
{
@include
border-radius
(
.2em
);
@include
smallshadow
;
background
:
#fff
;
padding
:
1em
;
}
.bottombar
{
@include
pie-clearfix
;
//ANNOTATION////////////////////////////////
//This is for everything that is formatted as an annotation.
.annotation
{
.user
{
font-weight
:
bold
;
text-decoration
:
underline
;
}
.time
{
float
:
right
;
display
:
inline-block
;
line-height
:
2em
;
@include
tertiarytext
;
}
.body
{
margin-bottom
:
.5em
;
white-space
:
pre-wrap
;
}
}
//ANNOTATION DETAIL
//DETAIL////////////////////////////////
//This is specific to the detail view.
.detail
{
position
:
relative
;
&
>
.annotator-controls
{
.paper
>
.threadexp
{
display
:
none
;
}
.annotator-controls
{
@include
single-transition
(
opacity
,
.25s
,
ease-in-out
);
opacity
:
0
;
position
:
absolute
;
right
:
0
;
z-index
:
1
;
}
&
>
.annotator-controls
{
@include
single-transition
(
opacity
,
.25s
,
ease-in-out
);
opacity
:
0
;
//Threaded discussion specific
.annotator-listing
{
border-left
:
1px
dotted
$grayLight
;
.threadexp
{
height
:
$threadexp-width
;
width
:
$threadexp-width
;
position
:
absolute
;
top
:
.4em
;
left
:
-
(
$threadexp-width
/
2
);
outline
:
1px
dotted
#aaa
;
@include
icon
(
"minus_1.png"
);
}
&
>
.detail
{
padding-left
:
$thread-padding
;
padding-top
:
0
;
margin-top
:
1em
;
&
.squished
{
padding-left
:
0
;
}
}
}
&
.hover
{
...
...
@@ -423,6 +441,7 @@ blockquote {
}
}
//These are all the changes needed to collapse thread objects.
&
.collapsed
{
&
>
.body
{
overflow
:
hidden
;
...
...
@@ -437,35 +456,16 @@ blockquote {
display
:
run-in
;
margin-right
:
.25em
;
}
&
>
.threadexp
{
background-image
:
url("../images/plus_1.png")
;
}
}
}
// Remove the expander from the top level annotation
.paper
>
.threadexp
{
display
:
none
;
}
.user
{
margin-bottom
:
.25em
;
font-weight
:
bold
;
text-decoration
:
underline
;
}
//EDITOR
.writer
{
@include
smallshadow
(
0
,
2px
,
.2
);
position
:
relative
;
textarea
{
width
:
100%
;
min-height
:
8em
;
}
.annotator-controls
{
float
:
left
;
}
}
//BUCKET VIEW REPLY SUMMARIES
//SUMMARY////////////////////////////////
//This is specific to the summary view.
.summary
{
margin-bottom
:
1em
;
position
:
relative
;
...
...
@@ -483,13 +483,18 @@ blockquote {
}
.login.twitter
{
@extend
.btn-link
;
background
:
url('../images/sign-in-with-twitter_0.png')
;
background-size
:
100%
100%
;
display
:
inline-block
;
height
:
36px
;
font-size
:
0
;
margin
:
-4px
;
width
:
225px
;
//EDITOR////////////////////////////////
//This is an input element to make annotations.
.writer
{
@include
smallshadow
(
0
,
2px
,
.2
);
position
:
relative
;
textarea
{
width
:
100%
;
min-height
:
8em
;
}
.annotator-controls
{
float
:
left
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment