diff --git a/lms/static/sass/_discussion.scss b/lms/static/sass/_discussion.scss index 3065413ba4..a9797e2b8f 100644 --- a/lms/static/sass/_discussion.scss +++ b/lms/static/sass/_discussion.scss @@ -8,7 +8,7 @@ font-size: 13px; font-weight: 700; line-height: 32px; - color: #fff; + color: $white; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); @@ -33,7 +33,7 @@ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); &:hover { - @include linear-gradient(top, #fff, #ddd); + @include linear-gradient(top, $white, #ddd); } } @@ -43,11 +43,11 @@ padding: 0 15px; border-radius: 3px; border: 1px solid #222; - background: -webkit-linear-gradient(top, #777, #555); + background: -webkit-linear-gradient(top, $gray, #555); font-size: 13px; font-weight: 700; line-height: 32px; - color: #fff; + color: $white; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); @@ -60,11 +60,11 @@ width: 100%; height: 240px; margin-top: 0; - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #aaa; border-radius: 3px 3px 0 0; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; @@ -74,14 +74,14 @@ @mixin discussion-wmd-preview { width: 100%; min-height: 40px; - padding: 25px 20px 10px 20px; + padding: 25px $baseline $baseline/2 $baseline; @include box-sizing(border-box); border: 1px solid #aaa; border-top: none; border-radius: 0 0 3px 3px; background: #eee; color: #333; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset; + box-shadow: 0 1px 3px $black-t0 inset; } @-webkit-keyframes fadeIn { @@ -98,13 +98,13 @@ body.discussion { padding: 0; border: 1px solid #333; list-style: none; - color: #fff; + color: $white; line-height: 1.6; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset, 0 1px 0 rgba(255, 255, 255, .2); li { - padding: 10px 20px 12px 45px; + padding: $baseline/2 $baseline 12px 45px; border-bottom: 1px solid #dc4949; background: url(../images/white-error-icon.png) no-repeat 15px 14px; @@ -135,7 +135,7 @@ body.discussion { .new-post-article { display: none; - margin-top: 20px; + margin-top: $baseline; .inner-wrapper { max-width: 1180px; @@ -146,13 +146,13 @@ body.discussion { .left-column { float: left; width: 32%; - padding: 40px; + padding: $baseline*2; @include box-sizing(border-box); label { font-size: 22px; font-weight: 700; - color: #fff; + color: $white; text-shadow: none; } @@ -168,8 +168,8 @@ body.discussion { .form-group-label { display: block; - padding-top: 5px; - color:#fff; + padding-top: $baseline/4; + color: $white; } .topic_dropdown_button { @@ -191,7 +191,7 @@ body.discussion { .topic_menu_wrapper { display: none; position: absolute; - top: 40px; + top: $baseline*2; left: 0; z-index: 9999; width: 100%; @@ -207,7 +207,7 @@ body.discussion { a { display: block; - padding: 10px 15px; + padding: $baseline/2 15px; border-top: 1px solid #5f5f5f; font-size: 14px; font-weight: 700; @@ -237,7 +237,7 @@ body.discussion { } .topic_menu_search { - padding: 10px; + padding: $baseline/2; border-bottom: 1px solid black; } @@ -248,8 +248,8 @@ body.discussion { @include box-sizing(border-box); border-radius: 30px; border: 1px solid #333; - box-shadow: 0 1px 3px rgba(0, 0, 0, .25) inset; - background: -webkit-linear-gradient(top, #eee, #fff); + box-shadow: 0 1px 3px $black-t1 inset; + background: -webkit-linear-gradient(top, #eee, $white); font-size: 11px; line-height: 16px; color: #333; @@ -259,7 +259,7 @@ body.discussion { .right-column { float: left; width: 68%; - padding: 40px; + padding: $baseline*2; @include box-sizing(border-box); } @@ -274,7 +274,7 @@ body.discussion { .edit-post-form { width: 100%; - margin-bottom: 40px; + margin-bottom: $baseline*2; @include clearfix; @include box-sizing(border-box); @@ -283,20 +283,20 @@ body.discussion { } .form-row { - margin-top: 20px; + margin-top: $baseline; } .post-cancel { @include white-button; float: left; - margin: 10px 0 0 15px; + margin: $baseline/2 0 0 15px; } .post-update { @include blue-button; float: left; height: 37px; - margin-top: 10px; + margin-top: $baseline/2; padding-bottom: 2px; &:hover { @@ -307,26 +307,26 @@ body.discussion { .edit-post-title, .edit-post-tags { width: 100%; height: 40px; - padding: 0 10px; + padding: 0 $baseline/2; @include box-sizing(border-box); border-radius: 3px; border: 1px solid #aaa; font-size: 16px; font-family: $sans-serif; color: #333; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset; + box-shadow: 0 1px 3px $black-t0 inset; } .tagsinput { - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #aaa; border-radius: 3px; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset; + box-shadow: 0 1px 3px $black-t1 inset; span.tag { margin-bottom: 0; @@ -336,15 +336,15 @@ body.discussion { .new-post-form { width: 100%; - margin-bottom: 20px; + margin-bottom: $baseline; border-radius: 3px; background: rgba(0, 0, 0, .55); - color: #fff; - box-shadow: 0 1px 2px rgba(0, 0, 0, .5) inset, 0 1px 0 rgba(255, 255, 255, .5); + color: $white; + box-shadow: 0 1px 2px $black-t2 inset, 0 1px 0 $white-t2; @include clearfix; .form-row { - margin-bottom: 20px; + margin-bottom: $baseline; } .new-post-body .wmd-input { @@ -353,27 +353,27 @@ body.discussion { width: 100%; height: 200px; z-index: 1; - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #333; border-radius: 3px 3px 0 0; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset; + box-shadow: 0 1px 3px $black-t1 inset; } .tagsinput { - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #333; border-radius: 3px; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset; + box-shadow: 0 1px 3px $black-t1 inset; span.tag { margin-bottom: 0; @@ -386,13 +386,13 @@ body.discussion { width: 100%; //height: 50px; margin-top: -1px; - padding: 25px 20px 10px 20px; + padding: 25px $baseline $baseline/2 $baseline; @include box-sizing(border-box); border: 1px solid #333; border-radius: 0 0 3px 3px; background: #e6e6e6; color: #333; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset; + box-shadow: 0 1px 3px $black-t1 inset; } .new-post-preview-label { @@ -408,14 +408,14 @@ body.discussion { .new-post-tags { width: 100%; height: 40px; - padding: 0 10px; + padding: 0 $baseline/2; @include box-sizing(border-box); border-radius: 3px; border: 1px solid #333; font-size: 16px; font-family: 'Open Sans', sans-serif; color: #333; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset; + box-shadow: 0 1px 3px $black-t1 inset; } .new-post-title { @@ -426,7 +426,7 @@ body.discussion { @include blue-button; float: left; height: 37px; - margin-top: 10px; + margin-top: $baseline/2; padding-bottom: 2px; border-color: #333; @@ -439,17 +439,17 @@ body.discussion { @include white-button; border-color: #444; float: left; - margin: 10px 0 0 15px; + margin: $baseline/2 0 0 15px; } .options { - margin-top: 40px; + margin-top: $baseline*2; label { display: inline; margin-left: 8px; font-size: 15px; - color: #fff; + color: $white; text-shadow: none; } } @@ -458,12 +458,12 @@ body.discussion { .thread-tags { - margin-top: 20px; + margin-top: $baseline; } .thread-tag { margin-right: 5px; - padding: 3px 10px 6px; + padding: 3px $baseline/2 6px; border-radius: 3px; color: #333; background: #c5eeff; @@ -473,7 +473,7 @@ body.discussion { .thread-title { display: block; - margin-bottom: 20px; + margin-bottom: $baseline; font-size: 21px; color: #333; font-weight: 700; @@ -518,7 +518,7 @@ body.discussion { .sidebar-toggle-moderator-button { @include blue-button; text-align: center; - margin-top: 20px; + margin-top: $baseline; } } @@ -554,7 +554,7 @@ body.discussion { .wmd-preview { position: relative; font-family: $sans-serif; - padding: 25px 20px 10px 20px; + padding: 25px $baseline $baseline/2 $baseline; margin-bottom: 5px; @include box-sizing(border-box); border: 1px solid #c8c8c8; @@ -583,7 +583,7 @@ body.discussion { margin-left: 5px; margin-right: 5px; margin-bottom: 5px; - margin-top: 10px; + margin-top: $baseline/2; padding: 0px; height: 20px; overflow: hidden; @@ -638,11 +638,11 @@ body.discussion { .wmd-prompt-dialog { @extend .modal; - background: #fff; + background: $white; } .wmd-prompt-dialog { - padding: 20px; + padding: $baseline; > div { font-size: 0.8em; @@ -734,8 +734,6 @@ body.discussion { color: $gray-l1; font-size: 28px; z-index: 100; - width: 25px; - height: 25px; opacity: 1; @include transition(all .2s ease-out); } @@ -759,7 +757,7 @@ body.discussion { .browse-topic-drop-btn { span { - color: #fff; + color: $white; text-shadow: none; } @@ -794,7 +792,7 @@ body.discussion { } .post-search { - padding: 0 10px; + padding: 0 $baseline/2; max-width: 1000px; } @@ -833,7 +831,7 @@ body.discussion { font-weight: 700; line-height: 58px; color: #333; - text-shadow: 0 1px 0 rgba(255, 255, 255, .8); + text-shadow: 0 1px 0 $white-t3; opacity: 0.0; @include transition(opacity .2s linear 0s); } @@ -885,12 +883,12 @@ body.discussion { a { display: block; - padding: 0 20px; + padding: 0 $baseline; border-top: 1px solid #5f5f5f; font-size: 12px; font-weight: 700; line-height: 22px; - color: #fff; + color: $white; @include clearfix; @include transition(none); @@ -907,7 +905,7 @@ body.discussion { float: left; width: 80%; margin: 13px 0; - color: #fff; + color: $white; } .unread { @@ -937,7 +935,7 @@ body.discussion { } .browse-topic-drop-search { - padding: 10px; + padding: $baseline/2; } .browse-topic-drop-search-input { @@ -948,7 +946,7 @@ body.discussion { border-radius: 30px; border: 1px solid #333; box-shadow: 0 1px 3px rgba(0, 0, 0, .25) inset; - background: -webkit-linear-gradient(top, #eee, #fff); + background: -webkit-linear-gradient(top, #eee, $white); font-size: 11px; line-height: 16px; color: #333; @@ -971,8 +969,8 @@ body.discussion { @include box-sizing(border-box); border: 1px solid #acacac; border-radius: 30px; - box-shadow: 0 1px 3px rgba(0, 0, 0, .1) inset, 0 1px 0 rgba(255, 255, 255, .5); - background: url(../images/search-icon.png) no-repeat 7px center #fff; + box-shadow: 0 1px 3px $white-t0 inset, 0 1px 0 $white-t2; + background: url(../images/search-icon.png) no-repeat 7px center $white; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 13px; @@ -1001,7 +999,7 @@ body.discussion { border-bottom: 1px solid $gray-l3; @include linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); background-color: $gray-l2; - box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset; + box-shadow: 0 1px 0 $white-t1 inset; span, a { @@ -1016,7 +1014,7 @@ body.discussion { .sort-label { display: block; float: left; - margin: 0 10px; + margin: 0 $baseline/2; } li { @@ -1048,7 +1046,7 @@ body.discussion { } .group-filter-label { width: 40px; - margin-left:10px; + margin-left: $baseline/2; } .group-filter-select { @@ -1096,11 +1094,11 @@ body.discussion { float: left; clear: both; width: 100%; - padding: 0 10px 0 18px; + padding: 0 $baseline/2 0 18px; margin-bottom: 1px; margin-right: -1px; @include linear-gradient(top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); - background-color: #fff; + background-color: $white; @include clearfix; &:hover { @@ -1141,7 +1139,7 @@ body.discussion { display: block; float: left; width: 70%; - margin: 8px 0 10px; + margin: 8px 0 $baseline/2; font-size: 13px; font-weight: 700; line-height: 1.4; @@ -1197,7 +1195,7 @@ body.discussion { .votes-count, .comments-count { @include linear-gradient(top, #3994c7, #4da7d3); - color: #fff; + color: $white; &:after { background-position: 0 0; @@ -1275,7 +1273,7 @@ body.discussion { min-height: 500px; border: 1px solid #aaa; border-radius: 3px; - background: #fff; + background: $white; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); &.sidebar-fixed { @@ -1435,15 +1433,15 @@ body.discussion { .discussion-article { position: relative; - padding: 40px; - min-height: 468px; + padding: $baseline*2; + min-height: 468px; a { word-wrap: break-word; } h1 { - margin-bottom: 10px; + margin-bottom: $baseline/2; font-size: 28px; font-weight: 700; letter-spacing: 0; @@ -1467,13 +1465,13 @@ body.discussion { } .post-context{ - margin-top: 20px; + margin-top: $baseline; font-size: 12px; color: #888; } p + p { - margin-top: 20px; + margin-top: $baseline; } .dogear { @@ -1496,13 +1494,13 @@ body.discussion { } .discussion-post { - padding: 10px 20px; + padding: $baseline/2 $baseline; > header .vote-btn { position: relative; z-index: 100; margin-top: 5px; - margin-left: 40px; + margin-left: $baseline*2; } @@ -1534,7 +1532,7 @@ body.discussion { .discussion-post header, .responses li header { - margin-bottom: 20px; + margin-bottom: $baseline; } @@ -1547,7 +1545,7 @@ body.discussion { > li { position: relative; margin: 0 -10px 30px; - padding: 26px 30px 20px; + padding: 26px 30px $baseline; border-radius: 3px; border: 1px solid #b2b2b2; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); @@ -1575,7 +1573,7 @@ body.discussion { background: #009fe2; font-size: 9px; font-weight: 700; - color: #fff; + color: $white; text-transform: uppercase; } @@ -1591,7 +1589,7 @@ body.discussion { background: #449944; font-size: 9px; font-weight: 700; - color: #fff; + color: $white; text-transform: uppercase; } @@ -1619,7 +1617,7 @@ body.discussion { padding: 0 8px; border-radius: 5px; border: 1px solid #b2b2b2; - @include linear-gradient(top, #fff 35%, #ebebeb); + @include linear-gradient(top, $white 35%, #ebebeb); box-shadow: 0 1px 1px rgba(0, 0, 0, .15); font-size: 12px; font-weight: 700; @@ -1641,7 +1639,7 @@ body.discussion { &.is-cast { border-color: #379a42; @include linear-gradient(top, #50cc5e, #3db84b); - color: #fff; + color: $white; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 2px rgba(0, 0, 0, .2); @@ -1658,10 +1656,10 @@ body.discussion { float: right; width: 27px; height: 27px; - margin-right: 10px; + margin-right: $baseline/2; border-radius: 27px; border: 1px solid #a0a0a0; - @include linear-gradient(top, #fff 35%, #ebebeb); + @include linear-gradient(top, $white 35%, #ebebeb); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); .check-icon { @@ -1686,13 +1684,13 @@ body.discussion { blockquote { background: #f6f6f6; border-radius: 3px; - padding: 5px 10px; + padding: 5px $baseline/2; font-size: 14px; } .comments { list-style: none; - margin-top: 20px; + margin-top: $baseline; padding: 0; border-top: 1px solid #ddd; @@ -1704,7 +1702,7 @@ body.discussion { blockquote { background: #e6e6e6; border-radius: 3px; - padding: 5px 10px; + padding: 5px $baseline/2; font-size: 14px; } @@ -1713,8 +1711,8 @@ body.discussion { @include clearfix; .comment-form-input { - padding: 5px 10px; - background-color: #fff; + padding: 5px $baseline/2; + background-color: $white; font-size: 14px; } @@ -1735,7 +1733,7 @@ body.discussion { .response-body { font-size: 13px; - padding: 10px 20px; + padding: $baseline/2 $baseline; p + p { margin-top: 12px; @@ -1743,7 +1741,7 @@ body.discussion { } .posted-details { - margin: 0 20px 10px; + margin: 0 $baseline $baseline/2; font-size: 11px; } @@ -1773,7 +1771,7 @@ body.discussion { } .comment-form { - padding: 8px 20px; + padding: 8px $baseline; .wmd-input { @include transition(all .2s linear 0s); @@ -1791,7 +1789,7 @@ body.discussion { .comment-form-input { width: 100%; height: 31px; - padding: 0 10px; + padding: 0 $baseline/2; @include box-sizing(border-box); border: 1px solid #b2b2b2; border-radius: 3px; @@ -1805,7 +1803,7 @@ body.discussion { .moderator-actions { margin: 0; - margin-top: 20px; + margin-top: $baseline; padding: 0; @include clearfix; @@ -1821,7 +1819,7 @@ body.discussion { padding: 0 12px; border-radius: 3px; border: 1px solid #b2b2b2; - @include linear-gradient(top, #fff 35%, #ebebeb); + @include linear-gradient(top, $white 35%, #ebebeb); font-size: 13px; line-height: 24px; color: #737373; @@ -1856,20 +1854,20 @@ body.discussion { } .new-post-form { - margin-top: 20px; + margin-top: $baseline @include clearfix; } .new-post-form .submit { @include blue-button; float: left; - margin-top: 10px; + margin-top: $baseline/2; padding-bottom: 2px; } .new-post-form .options { float: right; - margin-top: 20px; + margin-top: $baseline; font-size: 14px; label { @@ -1882,7 +1880,7 @@ body.discussion { .discussion-reply-new { - padding: 20px; + padding: $baseline; @include clearfix; @include transition(opacity .2s linear 0s); @@ -1905,7 +1903,7 @@ body.discussion { } .reply-post-control { - margin-top: 20px; + margin-top: $baseline; } .discussion-submit-post { @@ -1932,8 +1930,8 @@ body.discussion { .discussion-module { @extend .discussion-body; position: relative; - margin: 20px 0; - padding: 20px; + margin: $baseline 0; + padding: $baseline; background: #f6f6f6 !important; border-radius: 3px; @@ -1944,11 +1942,11 @@ body.discussion { } .responses { - margin-top: 40px; + margin-top: $baseline*2; > li { - margin: 0 20px 20px !important; - padding: 26px 30px 20px !important; + margin: 0 $baseline $baseline !important; + padding: 26px 30px $baseline !important; } } @@ -1989,7 +1987,7 @@ body.discussion { margin-top: 30px; .threads { - margin-top: 20px; + margin-top: $baseline; } /* Course content p has a default margin-bottom of 1.416em, this is just to reset that */ @@ -2002,7 +2000,7 @@ body.discussion { } &.expanded { - padding: 20px 0; + padding: $baseline 0; .dogear{ display: block; @@ -2022,14 +2020,14 @@ body.discussion { .discussion-article { border: 1px solid #ddd; border-bottom-width: 0; - background: #fff; + background: $white; min-height: 0; - padding: 10px 10px 15px 10px; + padding: $baseline/2 $baseline/2 15px $baseline/2; box-shadow: 0 1px 0 #ddd; @include transition(all .2s linear 0s); .discussion-post { - padding: 12px 20px 0 20px; + padding: 12px $baseline 0 $baseline; @include clearfix; .inline-comment-count { @@ -2080,7 +2078,7 @@ body.discussion { } .post-tools { - margin-left: 20px; + margin-left: $baseline; margin-top: 5px; a { @@ -2103,7 +2101,7 @@ body.discussion { } .responses { - margin-top: 10px; + margin-top: $baseline/2; header { padding-bottom: 0; @@ -2140,7 +2138,7 @@ body.discussion { .new-post-article { display: none; - margin-top: 20px; + margin-top: $baseline; .inner-wrapper { max-width: 1180px; @@ -2150,17 +2148,17 @@ body.discussion { .new-post-form { width: 100%; - margin-bottom: 20px; + margin-bottom: $baseline; padding: 30px; border-radius: 3px; background: rgba(0, 0, 0, .55); - color: #fff; + color: $white; box-shadow: none; @include clearfix; @include box-sizing(border-box); .form-row { - margin-bottom: 20px; + margin-bottom: $baseline; } .new-post-body .wmd-input { @@ -2169,11 +2167,11 @@ body.discussion { width: 100%; height: 200px; z-index: 1; - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #333; border-radius: 3px 3px 0 0; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; @@ -2186,7 +2184,7 @@ body.discussion { width: 100%; //height: 50px; margin-top: -1px; - padding: 25px 20px 10px 20px; + padding: 25px $baseline $baseline/2 $baseline; @include box-sizing(border-box); border: 1px solid #333; border-radius: 0 0 3px 3px; @@ -2208,7 +2206,7 @@ body.discussion { .new-post-tags { width: 100%; height: 40px; - padding: 0 10px; + padding: 0 $baseline/2; @include box-sizing(border-box); border-radius: 3px; border: 1px solid #333; @@ -2223,11 +2221,11 @@ body.discussion { } .tagsinput { - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #333; border-radius: 3px; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; @@ -2242,7 +2240,7 @@ body.discussion { @include blue-button; float: left; height: 37px; - margin-top: 10px; + margin-top: $baseline/2; padding-bottom: 2px; border-color: #333; @@ -2254,7 +2252,7 @@ body.discussion { .new-post-cancel { @include white-button; float: left; - margin: 10px 0 0 15px; + margin: $baseline/2 0 0 15px; border-color: #444; } @@ -2265,18 +2263,18 @@ body.discussion { display: inline; margin-left: 8px; font-size: 15px; - color: #fff; + color: $white; text-shadow: none; } } } .thread-tags { - margin: 20px 0; + margin: $baseline 0; } .thread-tag { - padding: 3px 10px 6px; + padding: 3px $baseline/2 6px; margin-right: 5px; border-radius: 3px; color: #333; @@ -2287,7 +2285,7 @@ body.discussion { .thread-title { display: block; - margin-bottom: 20px; + margin-bottom: $baseline; font-size: 21px; color: #333; font-weight: 700; @@ -2374,7 +2372,7 @@ body.discussion { .wmd-preview { position: relative; font-family: $sans-serif; - padding: 25px 20px 10px 20px; + padding: 25px $baseline $baseline/2 $baseline; margin-bottom: 5px; @include box-sizing(border-box); border: 1px solid #c8c8c8; @@ -2403,7 +2401,7 @@ body.discussion { margin-left: 5px; margin-right: 5px; margin-bottom: 5px; - margin-top: 10px; + margin-top: $baseline/2; padding: 0px; height: 20px; overflow: hidden; @@ -2459,11 +2457,11 @@ body.discussion { .wmd-prompt-dialog { @extend .modal; - background: #fff; + background: $white; } .wmd-prompt-dialog { - padding: 20px; + padding: $baseline; > div { font-size: 0.8em; @@ -2519,25 +2517,25 @@ body.discussion { } .edit-post-form { width: 100%; - margin-bottom: 20px; + margin-bottom: $baseline; @include clearfix; @include box-sizing(border-box); .form-row { - margin-top: 20px; + margin-top: $baseline; } .post-cancel { @include white-button; float: left; - margin: 10px 0 0 15px; + margin: $baseline/2 0 0 15px; } .post-update { @include blue-button; float: left; height: 37px; - margin-top: 10px; + margin-top: $baseline/2; padding-bottom: 2px; &:hover { @@ -2548,7 +2546,7 @@ body.discussion { .edit-post-title, .edit-post-tags { width: 100%; height: 40px; - padding: 0 10px; + padding: 0 $baseline/2; @include box-sizing(border-box); border-radius: 3px; border: 1px solid #aaa; @@ -2559,11 +2557,11 @@ body.discussion { } .tagsinput { - padding: 10px; + padding: $baseline/2; @include box-sizing(border-box); border: 1px solid #aaa; border-radius: 3px; - background: #fff; + background: $white; font-family: 'Monaco', monospace; font-size: 13px; line-height: 1.6; @@ -2576,11 +2574,11 @@ body.discussion { } .thread-tags { - margin: 20px 0; + margin: $baseline 0; } .thread-tag { - padding: 3px 10px 6px; + padding: 3px $baseline/2 6px; margin-right: 5px; border-radius: 3px; color: #333; @@ -2598,7 +2596,7 @@ body.discussion { font-size: 12px; color:#000; font-style: italic; - background-color:#fff; + background-color: $white; } .discussion-pin { @@ -2606,8 +2604,13 @@ body.discussion { float:right; padding-right: 5px; font-style: italic; +<<<<<<< HEAD cursor:pointer; margin-right: 10px; +======= + cursor:pointer; + margin-right: $baseline/2; +>>>>>>> cleaned up margin and padding to use baseline variable opacity: 0.8; span {