Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile all CSS through a main LESS file
- Loading branch information
Isidro Rodríguez González
committed
Apr 17, 2014
1 parent
2a33e17
commit b7dc396
Showing
5 changed files
with
98 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
* Custom CSS file | ||
* PLACE HERE YOUR CUSTOM STYLESHEETS TO PERSONALIZE MDWIKI | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Main stylesheet file | ||
*/ | ||
|
||
// Paths | ||
@extlib: "../extlib"; | ||
|
||
// MDwiki base CSS | ||
@import (less) "mdwiki.css"; | ||
|
||
// Vendor components | ||
@import "@{extlib}/less/bootstrap.less"; | ||
@import (less) "@{extlib}/css/prism.default.css"; | ||
@import (less) "@{extlib}/css/colorbox.css"; | ||
|
||
// Your custom CSS or LESS files | ||
@import (less) "custom.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* MDwiki base CSS file | ||
* DON'T TOUCH UNLESS YOU KNOW WHAT ARE YOU DOING | ||
*/ | ||
|
||
/* hide the main content while we assemble everything */ | ||
.md-hidden-load { | ||
display: none; | ||
} | ||
.anchor-highlight { | ||
font-size: 0.7em; | ||
margin-left: 0.25em; | ||
} | ||
/* for pageContentMenu */ | ||
#md-page-menu { | ||
position: static; | ||
} | ||
#md-page-menu a.active { | ||
/* background-color: rgba(0, 0, 0, 0.01); */ | ||
font-weight: bold; | ||
} | ||
@media (min-width: 992px) { | ||
#md-page-menu.affix { | ||
position: fixed; | ||
} | ||
} | ||
@media (min-width: 768px) { | ||
.md-float-left .col-sm-8, .md-float-right .col-sm-8 { | ||
max-width: 66.67%; | ||
} | ||
.md-float-left .col-sm-4, .md-float-right .col-sm-4 { | ||
max-width: 33.33%; | ||
} | ||
.md-float-left .col-sm-2, .md-float-right .col-sm-2 { | ||
max-width: 16.67%; | ||
} | ||
} | ||
@media (max-width: 992px) { | ||
a.forkmeongithub { | ||
display: none; | ||
} | ||
} | ||
@media (max-width: 768px) { | ||
/* don't use floating for smaller screens */ | ||
.md-float-left .col-sm-8, .md-float-left .col-sm-4, .md-float-left .col-sm-2 { | ||
width: 100%; | ||
max-width: !important; | ||
min-width: 100%; | ||
} | ||
.md-float-right .col-sm-8, .md-float-right .col-sm-4, .md-float-right .col-sm-2 { | ||
width: 100%; | ||
max-width: !important; | ||
min-width: 100%; | ||
} | ||
} | ||
.md-floatenv .md-text { | ||
/* md-text is not of md-col-* but needs the spacing */ | ||
margin-left: 15px; | ||
margin-right: 15px; | ||
} | ||
/* float images */ | ||
.md-float-left .col-sm-8, .md-float-left .col-sm-4, .md-float-left .col-sm-2 { | ||
width: auto; | ||
} | ||
.md-float-right .col-sm-8, .md-float-right .col-sm-4, .md-float-right .col-sm-2 { | ||
float: right !important; | ||
width: auto; | ||
} | ||
#md-all .md-copyright-footer { | ||
background-color: !important; | ||
font-size: smaller; | ||
padding: 1em; | ||
} |