NewsBlur/media/css/circular/sass/screen.scss

551 lines
12 KiB
SCSS
Raw Normal View History

2012-08-15 23:14:55 -07:00
@import "compass/reset";
2012-08-16 00:45:20 -07:00
@import "compass/css3";
2012-08-15 23:14:55 -07:00
$page-width: 700px;
2012-08-16 00:45:20 -07:00
$comment-width: 586px;
$max-story-height: 300px;
2012-08-16 00:45:20 -07:00
2012-08-17 18:50:28 -07:00
$text-color: #333333;
2012-08-15 23:14:55 -07:00
$light-text-color: #808080;
2012-08-16 00:45:20 -07:00
$more-text-color: #1a9fff;
$more-text-color-hover: #306187;
$more-text-color-active: #722125;
2012-08-16 00:45:20 -07:00
$border-color: #bdbdbd;
2012-08-17 21:11:27 -07:00
$title-font-size: 21px;
2012-08-15 23:14:55 -07:00
$small-font-size: 14px;
2012-08-16 00:45:20 -07:00
$smallest-font-size: 12px;
$default-text-shadow-color: white;
$default-text-shadow-blur: 1px;
$default-text-shadow-v-offset: 1px;
$default-box-shadow-color: $border-color;
$default-box-shadow-v-offset: 0px;
$default-box-shadow-blur: 1px;
// ==========
// = Mixins =
// ==========
@mixin NC-default-button {
border: 1px solid $border-color;
2012-08-17 21:11:27 -07:00
@include border-radius(4px, 4px);
@include single-box-shadow(white, 0px, 0px, 2px, false, true);
2012-08-17 21:11:27 -07:00
@include box-shadow(rgba(#999, 0.4) 0 0 5px, white 0 2px 1px inset);
@include background-image(linear-gradient(white, #f6f6f6));
color: $light-text-color;
height: 20px;
line-height: 20px;
text-align: center;
cursor: pointer;
2012-08-16 09:39:48 -07:00
padding: 4px 12px;
2012-08-16 02:20:08 -07:00
font-size: 14px;
2012-08-16 09:42:37 -07:00
font-weight: normal;
&:hover {
@include background-image(linear-gradient(#f6f6f6, white));
}
&:active {
@include background-image(linear-gradient(#e9e9e9, #e9e9e9));
@include single-box-shadow(#c1c1c1, 0px, 0px, 10px, false, true);
@include single-text-shadow(0px, -1px, 1px, false, white);
color: $text-color;
}
}
@mixin NC-blue-button {
border: 1px solid #4388b5;
2012-08-17 21:11:27 -07:00
@include border-radius(4px, 4px);
@include single-box-shadow(#80c5f2, 0px, 0px, 2px, false, true);
@include background-image(linear-gradient(#6eb4e3, #4d98d2));
2012-08-17 21:11:27 -07:00
@include box-shadow(rgba(#999, 0.4) 0 0 5px, #70b5e3 0 2px 1px inset);
color: white;
height: 20px;
line-height: 20px;
text-align: center;
cursor: pointer;
2012-08-16 09:39:48 -07:00
padding: 4px 12px;
2012-08-16 02:20:08 -07:00
font-size: 14px;
2012-08-16 09:42:37 -07:00
font-weight: normal;
&:hover {
@include background-image(linear-gradient(#6bb1e0, #6bb1e0));
}
&:active {
@include background-image(linear-gradient(#4d98d2, #4d98d2));
@include single-box-shadow(#1f74b8, 0px, 0px, 10px, false, true);
}
}
// ===========
// = Globals =
// ===========
2012-08-15 23:14:55 -07:00
body {
2012-08-16 00:45:20 -07:00
background: #ebedee image-url('background.png') repeat 0 0;
2012-08-15 23:14:55 -07:00
font-family: Helvetica, arial, san-serif;
color: $text-color;
}
a {
color: $text-color;
text-decoration: none;
}
.NB-hidden {
display: none;
}
.NB-left {
float: left;
}
.NB-right {
float: right;
}
.NB-raquo {
font-size: 18px;
vertical-align: baseline;
line-height: 12px;
}
.tipsy {
font-size: 11px;
}
.tipsy-inner {
padding: 2px 9px 2px;
}
blockquote {
background-color: #F0F0F0;
border-left: 1px solid #9B9B9B;
padding: .5em 2em;
margin: 0px;
}
.NB-spinner {
width: 16px;
height: 16px;
background: url('/media/embed/reader/recycle_spinner.gif') no-repeat 0 0;
display: none;
}
.NB-spinner.NB-active {
display: block;
}
// ==========
// = Header =
// ==========
2012-08-15 23:14:55 -07:00
.NB-page {
width: $page-width;
margin: 0 auto;
padding-top: 80px;
2012-08-15 23:14:55 -07:00
}
.NB-header {
display: none;
}
.NB-footer-logo {
2012-08-16 09:42:37 -07:00
margin: 100px auto;
width: $page-width;
text-align: center;
}
2012-08-17 13:40:47 -07:00
.NC-blue-button {
@include NC-blue-button;
2012-08-17 13:40:47 -07:00
}
.NC-header {
background: image-url('header_background.png') repeat 0 0;
height: 72px;
@include single-box-shadow(#A7A7A7, 0px, 0px, 10px, false, false);
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 10;
opacity: .9;
.NC-header-inner {
width: $page-width;
margin: 0 auto;
2012-08-17 18:50:28 -07:00
position: relative;
h1.NC-logo a {
text-indent: -10000em;
display: block;
float: left;
padding-top: 16px;
}
h1.NC-logo a img {
float: left;
}
2012-08-17 18:50:28 -07:00
.NC-request-toggle-button {
float: right;
@include NC-blue-button;
margin-top: 20px;
2012-08-16 02:20:08 -07:00
margin-left: 10px;
}
2012-08-17 18:50:28 -07:00
.NC-logout-button,
.NC-login-toggle-button {
2012-08-16 02:20:08 -07:00
float: right;
@include NC-default-button;
margin-top: 20px;
2012-08-16 02:20:08 -07:00
margin-left: 10px;
}
}
2012-08-15 23:14:55 -07:00
}
2012-08-17 13:40:47 -07:00
.NC-popover {
position: absolute;
top: 50px;
2012-08-17 13:40:47 -07:00
left: 200px;
2012-08-17 18:50:28 -07:00
width: 308px;
opacity: 0;
display: none;
&.NC-request-popover {
top: 50px;
left: 329px;
}
&.NC-login-popover {
top: 50px;
left: 456px;
}
2012-08-17 18:50:28 -07:00
&.NC-active {
display: block;
}
.NC-popover-inner {
width: 240px;
padding: 45px 38px 0 30px;
background: transparent image-url('popover_top.png') no-repeat 0 0;
}
.NC-popover-bottom {
background: transparent image-url('popover_bottom.png') no-repeat left bottom;
height: 40px;
}
2012-08-17 13:40:47 -07:00
input {
border: 1px solid $border-color;
2012-08-17 18:50:28 -07:00
border: 1px solid #BDBDBD;
padding: 5px;
width: 228px;
margin-bottom: 15px;
font-size: $small-font-size;
font-weight: normal;
2012-08-17 13:40:47 -07:00
}
2012-08-17 18:50:28 -07:00
}
2012-08-17 13:40:47 -07:00
// =========
// = Story =
// =========
2012-08-15 23:14:55 -07:00
.NB-mark {
2012-08-16 00:45:20 -07:00
margin: 20px 0 50px 0;
2012-08-15 23:14:55 -07:00
}
.NB-story-wrapper {
border-left: 1px solid #fff;
2012-08-15 23:14:55 -07:00
background: #fff;
2012-08-16 09:39:48 -07:00
@include single-box-shadow(#c8c8c8, 0px, 0px, 5px, false, false);
.NB-story-inner {
border-left: 4px solid #fff;
padding: 25px 25px 15px;
overflow: hidden;
position: relative; /* contains all children */
}
2012-08-15 23:14:55 -07:00
.NB-story-title {
a {
font-size: $title-font-size;
font-weight: bold;
line-height: 120%;
text-decoration: none;
color: $text-color;
}
2012-08-17 20:12:01 -07:00
}
.NB-story-metadata {
2012-08-17 21:11:27 -07:00
font-size: $small-font-size;
2012-08-17 20:12:01 -07:00
color: $light-text-color;
font-weight: normal;
display: block; /* to ensure that the author is always on one line */
2012-08-17 21:11:27 -07:00
margin: 5px 0 8px;
2012-08-15 23:14:55 -07:00
}
2012-08-16 00:45:20 -07:00
.NB-feed {
margin: 2px 0 10px;
text-transform: capitalize;
a {
color: $light-text-color;
font-size: $smallest-font-size;
}
img {
float: left;
width: 16px;
height: 16px;
margin-right: 4px;
}
}
2012-08-15 23:14:55 -07:00
}
.NB-story {
font-size: $small-font-size;
line-height: 140%;
2012-08-16 00:45:20 -07:00
.NB-story-content-wrapper {
max-height: $max-story-height;
2012-08-16 00:45:20 -07:00
overflow: hidden;
&.NB-story-content-wrapper-height-fudged {
max-height: none;
}
2012-08-16 00:45:20 -07:00
}
2012-08-16 00:45:20 -07:00
/*
these styles affect all outside content
*/
.NB-story-content {
2012-08-17 23:29:30 -07:00
margin: 10px 0;
2012-08-16 00:45:20 -07:00
p {
margin: 10px 0;
}
img {
margin: 10px 0;
2012-08-16 00:45:20 -07:00
}
2012-08-18 00:49:17 -07:00
ins {
text-decoration: none;
color: inherit;
}
del {
display: none;
}
2012-08-16 00:45:20 -07:00
}
2012-08-17 20:12:01 -07:00
.NC-story-cutoff {
position: absolute;
display: none;
bottom: 48px;
left: 0;
width: 100%;
height: 14px;
z-index: 0;
2012-08-17 20:12:01 -07:00
background: transparent image-url('module_cutoff.png') repeat-x left bottom;
}
2012-08-16 00:45:20 -07:00
.NB-story-content-expander {
display: none;
position: absolute;
bottom: 0;
left: 0;
padding: 18px 25px;
2012-08-16 00:45:20 -07:00
width: 100%;
cursor: pointer;
color: $more-text-color;
2012-08-17 23:29:30 -07:00
font-size: $smallest-font-size;
2012-08-16 00:45:20 -07:00
&:hover {
color: $more-text-color-hover;
}
&:active {
color: $more-text-color-active;
}
2012-08-16 00:45:20 -07:00
.NB-story-content-expander-text,
.NB-story-content-expander-pages {
display: inline-block;
}
2012-08-18 00:49:17 -07:00
.NB-story-content-expander-pages {
line-height: 8px;
padding: 0 12px;
font-size: 24px;
}
2012-08-15 23:14:55 -07:00
}
}
.NB-story-shares-container {
2012-08-16 00:45:20 -07:00
text-align: right;
color: $light-text-color;
font-size: 11px;
line-height: 16px;
2012-08-17 23:29:30 -07:00
margin-top: 10px;
2012-08-16 00:45:20 -07:00
.NB-story-share-label {
display: inline-block;
vertical-align: top;
margin-top: 3px;
}
.NB-user-avatar {
display: inline-block;
margin: 2px 0 0 2px;
img {
@include single-box-shadow;
width: 16px;
height: 16px;
display: block;
}
}
2012-08-15 23:14:55 -07:00
}
2012-08-16 02:20:08 -07:00
body.NC-hide-comments .NB-story-comments-container {
display: none;
}
2012-08-16 00:45:20 -07:00
.NB-story-comments-container {
font-size: $small-font-size;
width: $comment-width;
margin: 0 auto;
2012-08-17 13:40:47 -07:00
z-index: 10;
2012-08-16 02:20:08 -07:00
.NB-user-avatar img,
img.NB-user-avatar {
position: absolute;
width: 32px;
height: 32px;
top: 15px;
left: 0;
@include border-radius(3px, 3px);
/* @include single-box-shadow; gets in the way of transparent PNGs */
}
2012-08-17 13:40:47 -07:00
.NB-user-avatar.NB-story-comment-reshare img {
top: 27px;
left: 0px;
z-index: 2;
width: 24px;
height: 24px;
}
2012-08-16 00:45:20 -07:00
.NB-story-comment {
padding: 15px 0 18px 44px;
2012-08-16 00:45:20 -07:00
border-bottom: 1px solid $border-color;
position: relative;
min-height: 32px;
2012-08-16 00:45:20 -07:00
.NB-story-comment-username {
float: left;
font-size: $smallest-font-size;
font-weight: bold;
}
.NB-story-comment-date {
float: right;
font-size: $smallest-font-size;
color: $light-text-color;
@include single-text-shadow;
}
2012-08-17 13:40:47 -07:00
.NB-story-comment-location {
float: left;
font-size: $smallest-font-size;
color: $light-text-color;
@include single-text-shadow;
margin-left: 15px;
2012-08-17 13:40:47 -07:00
}
2012-08-16 00:45:20 -07:00
.NB-story-comment-reply-button,
.NB-story-comment-edit-button {
display: none;
}
.NB-story-comment-content {
padding-top: 4px;
line-height: 18px;
clear: both;
}
2012-08-17 13:40:47 -07:00
.NB-story-comment-reshares .NB-user-avatar img {
top: 15px;
left: 12px;
2012-08-17 13:40:47 -07:00
z-index: 1;
width: 20px;
height: 20px;
2012-08-17 13:40:47 -07:00
}
}
.NB-story-comment-replies {
margin-top: 15px;
padding: 15px 0 0px 44px;
border-top: 1px solid $border-color;
position: relative;
min-height: 32px;
.NB-story-comment-reply-content {
padding-top: 4px;
line-height: 18px;
2012-08-16 00:45:20 -07:00
clear: both;
}
}
.NB-story-comment-input {
width: 376px;
height: 16px;
font-size: 12px;
padding: 6px 4px;
2012-08-16 00:45:20 -07:00
border: 1px solid $border-color;
}
.NB-story-comment-buttons {
.NB-story-comment-save {
position: absolute;
top: 15px;
2012-08-16 00:45:20 -07:00
right: 0;
width: 120px;
@include NC-default-button;
2012-08-16 00:45:20 -07:00
}
.NB-story-comment-delete {
display: none;
}
2012-08-15 23:14:55 -07:00
}
2012-08-16 00:45:20 -07:00
.NB-story-comments-public-header-wrapper {
color: $light-text-color;
font-size: $smallest-font-size;
border-bottom: 1px solid $border-color;
padding: 3px 0;
2012-08-15 23:14:55 -07:00
}
}
2012-08-16 02:20:08 -07:00
.NB-page-controls-next,
.NB-page-controls-end {
background-color: #6eb4e3;
@include NC-blue-button;
position: relative;
overflow: hidden;
-webkit-transition: all .12s ease-out;
-moz-transition: all .12s ease-out;
-o-transition: all .12s ease-out;
-ms-transition: all .12s ease-out;
2012-08-16 00:45:20 -07:00
.NB-page-controls-text {
position: absolute;
left: 0;
width: 100%;
margin-bottom: -15px;
bottom: 20px;
}
2012-08-15 23:14:55 -07:00
}