Restructure the app/assets/stylesheets directory
This commit is contained in:
parent
b84c7e4efb
commit
e3aafc154b
|
@ -1,3 +1,3 @@
|
||||||
// Manifest
|
// Manifest
|
||||||
//
|
//
|
||||||
//= require_tree ./admin
|
//= require_tree ./common/admin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Manifest
|
// Manifest
|
||||||
//
|
//
|
||||||
//= require common
|
//= require common
|
||||||
//= require_tree ./application
|
//= require_tree ./desktop
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -1,5 +1,5 @@
|
||||||
@import "foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Badges
|
// Badges
|
|
@ -1,5 +1,5 @@
|
||||||
@import "foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Buttons
|
// Buttons
|
|
@ -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
|
|
@ -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 {
|
|
@ -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;
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
||||||
@import "foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Discourse header
|
// Discourse header
|
|
@ -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 {
|
|
@ -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;
|
|
@ -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;
|
|
@ -1,5 +1,5 @@
|
||||||
@import "foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
|
|
||||||
.lightbox {
|
.lightbox {
|
||||||
position: relative;
|
position: relative;
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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: {
|
|
@ -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%;
|
|
@ -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;
|
|
@ -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;
|
|
@ -1,5 +1,5 @@
|
||||||
@import "foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Topic lists
|
// Topic lists
|
|
@ -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 {
|
|
@ -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
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
|
@ -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;
|
|
@ -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 {
|
|
@ -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
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* FONT AWESOME CORE
|
/* FONT AWESOME CORE
|
||||||
* -------------------------- */
|
* -------------------------- */
|
||||||
|
|
||||||
|
|
||||||
[class^="icon-"],
|
[class^="icon-"],
|
||||||
[class*=" icon-"] {
|
[class*=" icon-"] {
|
||||||
@include icon-FontAwesome();
|
@include icon-FontAwesome();
|
||||||
|
|
Loading…
Reference in New Issue