Advertisement
Guest User

Untitled

a guest
May 28th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. // ----
  2. // Sass (v3.4.12)
  3. // Compass (v1.0.3)
  4. // ----
  5.  
  6. //VARIABLES
  7.  
  8. $main-color: #7a0033;
  9. $main-color-dark: #66002a;
  10. $secondary-color: #4D3F4B;
  11. $secondary-color-dark: #332832;
  12.  
  13.  
  14. //MIXINS
  15.  
  16. @mixin box-shadow($x-offset: 2px, $y-offset: 3px, $blur: 4px, $spread: 0){
  17. -webkit-box-shadow: $x-offset $y-offset $blur $spread rgba(0,0,0,0.6);
  18. -moz-box-shadow: $x-offset $y-offset $blur $spread rgba(0,0,0,0.6);
  19. box-shadow: $x-offset $y-offset $blur $spread rgba(0,0,0,0.6);
  20. }
  21.  
  22. @mixin text-glow($x-offset: 0, $y-offset: 0, $blur: 4px, $color: white){
  23. text-shadow: $x-offset $y-offset $blur $color;
  24. }
  25.  
  26. @mixin border-radius($radius: 20px){
  27. -webkit-border-radius: $radius;
  28. -moz-border-radius: $radius;
  29. border-radius: $radius;
  30. }
  31.  
  32. @mixin border-corner-radius($corner, $radius: 20px){
  33. -webkit-border-#{$corner}-radius: $radius;
  34. -moz-border-#{$corner}-radius: $radius;
  35. border-#{$corner}-radius: $radius;
  36. }
  37.  
  38. @mixin btn($color: $main-color){
  39. background-color: $color;
  40. background-image: none;
  41. border: solid 1px $color;
  42. @include border-radius();
  43. @include box-shadow($blur: 6px);
  44. color: white;
  45. font-size: 11px;
  46. }
  47.  
  48. @mixin btn-left($color: $main-color){
  49. background-color: $color;
  50. background-image: none;
  51. @include border-corner-radius(bottom-left);
  52. @include border-corner-radius(top-left);
  53. @include border-corner-radius(bottom-right, 0);
  54. @include border-corner-radius(top-right, 0);
  55. color: white;
  56. font-size: 11px;
  57. }
  58.  
  59. @mixin btn-right($color: $main-color){
  60. background-color: $color;
  61. background-image: none;
  62. @include border-corner-radius(bottom-right);
  63. @include border-corner-radius(top-right);
  64. @include border-corner-radius(bottom-left, 0);
  65. @include border-corner-radius(top-left, 0);
  66. color: white;
  67. font-size: 11px;
  68. }
  69.  
  70. @mixin btn-over($color: $main-color-dark){
  71. background-color: $color;
  72. background-image: none;
  73. @include text-glow();
  74. }
  75.  
  76.  
  77. //PLACEHOLDERS
  78.  
  79. %hidden {
  80. display: none;
  81. }
  82.  
  83. %main-btn {
  84. @include btn();
  85.  
  86. &:hover, &:active{
  87. @include btn-over();
  88. }
  89. }
  90.  
  91. %main-btn-left {
  92. @include btn-left();
  93.  
  94. &:hover, &:active{
  95. @include btn-over();
  96. }
  97.  
  98. }
  99.  
  100. %main-btn-right {
  101. @include btn-right();
  102.  
  103. &:hover, &:active{
  104. @include btn-over();
  105. }
  106. }
  107.  
  108. %secondary-btn {
  109. @include btn($secondary-color);
  110.  
  111. &:hover, &:active{
  112. @include btn-over($secondary-color-dark);
  113. }
  114. }
  115.  
  116. %secondary-btn-left {
  117. @include btn-left($secondary-color);
  118.  
  119. &:hover, &:active{
  120. @include btn-over($secondary-color-dark);
  121. }
  122. }
  123.  
  124. %secondary-btn-right {
  125. @include btn-right($secondary-color);
  126.  
  127. &:hover, &:active{
  128. @include btn-over($secondary-color-dark);
  129. }
  130. }
  131.  
  132.  
  133. //MAIN CSS
  134.  
  135. .WikiaSiteWrapper {
  136. background-image: none;
  137. background-color: $main-color;
  138. }
  139.  
  140. .WikiHeader {
  141. > nav li.marked > a {
  142. border-top: none;
  143. }
  144.  
  145. .navbackground {
  146. border-bottom-left-radius: 3px;
  147. @include box-shadow($blur: 8px);
  148.  
  149. div {
  150. @extend %hidden;
  151. }
  152. }
  153. }
  154.  
  155.  
  156. a.wikia-button {
  157. @extend %main-btn;
  158.  
  159. .edit-pencil {
  160. @extend %hidden;
  161. }
  162.  
  163.  
  164. &.share-button.secondary {
  165. @extend %secondary-btn;
  166. }
  167.  
  168. &.comments.secondary.talk {
  169. @extend %secondary-btn;
  170. }
  171.  
  172. &.secondary {
  173. @extend %secondary-btn;
  174. }
  175. }
  176.  
  177. .wikia-menu-button {
  178. @extend %main-btn;
  179. margin-left: 5px;
  180.  
  181. .drop {
  182. @extend %main-btn-right;
  183. }
  184.  
  185. &.contribute.secondary.combined {
  186. @extend %secondary-btn;
  187. padding-left: 10px;
  188.  
  189. .drop {
  190. @extend %secondary-btn-right;
  191. }
  192.  
  193. .sprite.contribute {
  194. @extend %hidden;
  195. }
  196. }
  197.  
  198. &.secondary.control-button {
  199. @extend %secondary-btn;
  200.  
  201. .drop {
  202. @extend %secondary-btn-right;
  203. }
  204. }
  205.  
  206. &.wikia-menu-button-submit {
  207. #wpSave {
  208. @extend %main-btn-left;
  209. box-shadow: none;
  210. margin-left: 0px;
  211. }
  212. }
  213.  
  214.  
  215. }
  216.  
  217. #ca-edit {
  218. @extend %main-btn-left;
  219. padding-left: 13px;
  220. padding-right: 10px;
  221.  
  222. .edit-pencil {
  223. @extend %hidden;
  224. }
  225. }
  226.  
  227. #wpPreview {
  228. @extend %secondary-btn-left;
  229.  
  230. &.preview_desktop.preview_icon {
  231. background-color: transparent;
  232. border: 1px solid #c1c1c1;
  233. border-bottom-left-radius: 0px;
  234. border-top-left-radius: 0px;
  235. color: #606060;
  236. }
  237. }
  238.  
  239. a.comments > .commentsbubble {
  240. color: #3A3A3A;;
  241. }
  242.  
  243. input.css-publish-button {
  244. @extend %main-btn-left;
  245. padding-left: 13px;
  246. padding-right: 10px;
  247. }
  248.  
  249. .WikiaNotifications li div {
  250. background-image: none;
  251. @include border-radius();
  252. @include box-shadow($blur: 6px);
  253.  
  254. &:hover, &:active {
  255. @include btn-over;
  256. }
  257. }
  258.  
  259.  
  260. .wikia-single-button a, .button, button{
  261. @extend %main-btn
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement