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
//
//= require_tree ./admin
//= require_tree ./common/admin

View File

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

View File

@ -2,11 +2,12 @@
//
//= require ./vendor/normalize
//= require ./vendor/bootstrap
//= require ./foundation/base
//= require ./common/foundation/base
//= require ./vendor/font_awesome/font-awesome
//= require ./vendor/chosen
//= require_tree ./components
//= require ./foundation/helpers
//= require_tree ./common/components
//= 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
# 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
// account or changing their email.
@import "foundation/variables";
@import "foundation/mixins";
@import "common/foundation/variables";
@import "common/foundation/mixins";
#simple-container {
@include border-radius-all(10px);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
// styles that apply to the PageDown editor
// http://code.google.com/p/pagedown/
@import "foundation/mixins";
@import "common/foundation/mixins";
.wmd-panel {
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
@import "foundation/variables";
@import "foundation/mixins";
@import "common/foundation/variables";
@import "common/foundation/mixins";
#share-link {
position: absolute;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,8 +2,3 @@
//
//= require common
//= 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.
*/
@import "foundation/mixins";
@import "common/foundation/mixins";
a:focus {
outline: thin dotted #333;

View File

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