Restructure the app/assets/stylesheets directory

This commit is contained in:
Neil Lalonde 2013-08-28 13:58:44 -04:00
parent b84c7e4efb
commit e3aafc154b
42 changed files with 61 additions and 64 deletions

View File

@ -1,3 +1,3 @@
// Manifest // Manifest
// //
//= require_tree ./admin //= require_tree ./common/admin

View File

@ -1,4 +1,4 @@
// Manifest // Manifest
// //
//= require common //= require common
//= require_tree ./application //= require_tree ./desktop

View File

@ -2,11 +2,12 @@
// //
//= require ./vendor/normalize //= require ./vendor/normalize
//= require ./vendor/bootstrap //= require ./vendor/bootstrap
//= require ./foundation/base //= require ./common/foundation/base
//= require ./vendor/font_awesome/font-awesome //= require ./vendor/font_awesome/font-awesome
//= require ./vendor/chosen //= require ./vendor/chosen
//= require_tree ./components //= require_tree ./common/components
//= require ./foundation/helpers //= require ./common/foundation/helpers
//= require_tree ./common
<% <%
# TODO this is very tricky, we want to add a dependency here on files that may not yet exist # TODO this is very tricky, we want to add a dependency here on files that may not yet exist
# otherwise in dev we are often stuck nuking the tmp/cache directory # otherwise in dev we are often stuck nuking the tmp/cache directory

View File

@ -1,8 +1,8 @@
// Styles used before the user is logged into discourse. For example, activating their // Styles used before the user is logged into discourse. For example, activating their
// account or changing their email. // account or changing their email.
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
#simple-container { #simple-container {
@include border-radius-all(10px); @include border-radius-all(10px);

View File

@ -1,7 +1,7 @@
// these are the styles associated with the Discourse admin section // these are the styles associated with the Discourse admin section
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
@import "foundation/helpers"; @import "common/foundation/helpers";
.content-list li a span.count { .content-list li a span.count {

View File

@ -1,7 +1,7 @@
// styles for the category badge color picker // styles for the category badge color picker
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.category-color-editor { .category-color-editor {
input { input {

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// -------------------------------------------------- // --------------------------------------------------
// Badges // Badges

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// -------------------------------------------------- // --------------------------------------------------
// Buttons // Buttons

View File

@ -1,6 +1,6 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
@import "foundation/helpers"; @import "common/foundation/helpers";
// -------------------------------------------------- // --------------------------------------------------
// Navigation menus // Navigation menus

View File

@ -1,7 +1,7 @@
// styles that apply to the reply pane that slides up to compose replies // styles that apply to the reply pane that slides up to compose replies
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// hack, this needs to be done cleaner // hack, this needs to be done cleaner
.private-message input.span8 { .private-message input.span8 {

View File

@ -2,9 +2,9 @@
// BEWARE: changing these styles implies they take effect anywhere they are seen // BEWARE: changing these styles implies they take effect anywhere they are seen
// throughout the Discourse application // throughout the Discourse application
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
@import "foundation/helpers"; @import "common/foundation/helpers";
body { body {
min-width: $large-width; min-width: $large-width;

View File

@ -1,6 +1,6 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
@import "foundation/helpers"; @import "common/foundation/helpers";
// -------------------------------------------------- // --------------------------------------------------
// FAQs // FAQs

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// -------------------------------------------------- // --------------------------------------------------
// Discourse header // Discourse header

View File

@ -1,8 +1,8 @@
// styles that apply to the popup that appears when you show the edit history // styles that apply to the popup that appears when you show the edit history
// of a post // of a post
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.modal.history-modal { .modal.history-modal {
.modal-inner-container { .modal-inner-container {

View File

@ -1,7 +1,7 @@
// styles for the 'hotness control' // styles for the 'hotness control'
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.hotness-control { .hotness-control {
margin-bottom: 5px; margin-bottom: 5px;

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.popup-tip { .popup-tip {
position: absolute; position: absolute;

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.lightbox { .lightbox {
position: relative; position: relative;

View File

@ -1,7 +1,7 @@
// style that apply to the login popup // style that apply to the login popup
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
#login-buttons { #login-buttons {
button { button {

View File

@ -1,7 +1,7 @@
// base styles for every modal popup used in Discourse // base styles for every modal popup used in Discourse
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.modal-open { .modal-open {
.dropdown-menu { .dropdown-menu {

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
a.loading-onebox { a.loading-onebox {
background: { background: {

View File

@ -1,7 +1,7 @@
// styles that apply to the PageDown editor // styles that apply to the PageDown editor
// http://code.google.com/p/pagedown/ // http://code.google.com/p/pagedown/
@import "foundation/mixins"; @import "common/foundation/mixins";
.wmd-panel { .wmd-panel {
margin-left: 25%; margin-left: 25%;

View File

@ -1,7 +1,7 @@
// styles that apply to the "share" popup when sharing a link to a post or topic // styles that apply to the "share" popup when sharing a link to a post or topic
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
#share-link { #share-link {
position: absolute; position: absolute;

View File

@ -1,7 +1,7 @@
// Styles for the topic admin menu // Styles for the topic admin menu
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
#show-topic-admin { #show-topic-admin {
position: fixed; position: fixed;

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// -------------------------------------------------- // --------------------------------------------------
// Topic lists // Topic lists

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
@include small-width { @include small-width {
#selected-posts { #selected-posts {

View File

@ -1,7 +1,7 @@
/* styles that apply when viewing a topic/topic */ /* styles that apply when viewing a topic/topic */
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
// Topic title // Topic title
// -------------------------------------------------- // --------------------------------------------------

View File

@ -1,5 +1,5 @@
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.add-upload .icon-plus { .add-upload .icon-plus {
font-size: 10px; font-size: 10px;

View File

@ -1,6 +1,6 @@
// styles that apply to the user page // styles that apply to the user page
@import "foundation/variables"; @import "common/foundation/variables";
@import "foundation/mixins"; @import "common/foundation/mixins";
.user-preferences { .user-preferences {
textarea { textarea {

View File

@ -2,8 +2,3 @@
// //
//= require common //= require common
//= require_tree ./mobile //= require_tree ./mobile
//
// For now, include all desktop css. But once we add files in ./mobile that override
// files in ./application, we'll need to only include the files we need:
//
//= require_tree ./application

View File

@ -12,7 +12,7 @@
* no longer required. * no longer required.
*/ */
@import "foundation/mixins"; @import "common/foundation/mixins";
a:focus { a:focus {
outline: thin dotted #333; outline: thin dotted #333;

View File

@ -1,6 +1,7 @@
/* FONT AWESOME CORE /* FONT AWESOME CORE
* -------------------------- */ * -------------------------- */
[class^="icon-"], [class^="icon-"],
[class*=" icon-"] { [class*=" icon-"] {
@include icon-FontAwesome(); @include icon-FontAwesome();