-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
announcement css #81
announcement css #81
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Variables | ||
// -------------------------------------------------- | ||
|
||
|
||
//== Colors | ||
// | ||
//## Gray colors for use across Coursemology. | ||
|
||
$gray-base: #000 !default; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wangqiang1208 @fonglh @kxmbrian @jsyeo @weiqingtoh ...american or british spelling? lol... i can't remember what the style guides say There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we are using "color" instead of "colour", so american ? And bootstrap is using "gray" instead of "grey" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
$gray-darker: lighten($gray-base, 13.5%) !default; // #222 | ||
$gray-dark: lighten($gray-base, 20%) !default; // #333 | ||
$gray: lighten($gray-base, 33.5%) !default; // #555 | ||
$gray-light: lighten($gray-base, 46.7%) !default; // #777 | ||
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Place all the styles related to the course/announcements controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
@import "variables"; | ||
@import "mixins/future"; | ||
|
||
.course-announcements { | ||
&.index { | ||
.announcement { | ||
padding-left: 8px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer units that scale, @yangshun what units do you recommend? I tend to use em for things involving block elements. px only for images... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think using |
||
|
||
.timestamp { | ||
color: $gray-light; | ||
} | ||
|
||
.content { | ||
margin-top: 10px; | ||
} | ||
|
||
&.future { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be a mix-in? |
||
@include future($gray-lighter); | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//future style | ||
//indicates the item will be available in future | ||
|
||
@mixin future($bg-color) { | ||
background-color: $bg-color; | ||
opacity: 0.9; | ||
padding: 10px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...where did this heading format come from? never seen it before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm referring from bootstrap