_mixins.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @mixin border-radius($radius) {
  2. -webkit-border-radius: $radius;
  3. -moz-border-radius: $radius;
  4. -ms-border-radius: $radius;
  5. border-radius: $radius;
  6. }
  7. @mixin box-shadow($shadowinfo) {
  8. -webkit-box-shadow: $shadowinfo;
  9. -moz-box-shadow: $shadowinfo;
  10. -ms-box-shadow: $shadowinfo;
  11. box-shadow: $shadowinfo;
  12. }
  13. @mixin transform($transform) {
  14. -moz-transform: $transform;
  15. -ms-transform: $transform;
  16. -o-transform: $transform;
  17. -webkit-transform: $transform;
  18. transform: $transform;
  19. }
  20. @mixin transition($transition) {
  21. -moz-transition: $transition;
  22. -o-transition: $transition;
  23. -webkit-transition: $transition;
  24. transition: $transition;
  25. }
  26. @mixin three-dots-overflow() {
  27. white-space: nowrap;
  28. -ms-text-overflow: ellipsis;
  29. -o-text-overflow: ellipsis;
  30. text-overflow: ellipsis;
  31. overflow: hidden;
  32. }
  33. @mixin navbar-link-color($textcolor, $navbarcolor, $opacity) {
  34. .navbar-brand,
  35. .navbar-brand:hover,
  36. .navbar-brand:active,
  37. .navbar-brand:focus {
  38. color: $textcolor;
  39. }
  40. .nav > li > a:hover,
  41. .nav > li > a:focus,
  42. .nav .open > a,
  43. .nav .open > a:hover,
  44. .nav .open > a:focus {
  45. background-color: transparentize($navbarcolor, $opacity);
  46. }
  47. .nav > li > a {
  48. color: $textcolor;
  49. }
  50. .bars {
  51. float: left;
  52. padding: 10px 20px;
  53. font-size: 22px;
  54. color: $textcolor;
  55. margin-right: 10px;
  56. margin-left: -10px;
  57. margin-top: 4px;
  58. }
  59. .bars:hover {
  60. background-color: rgba(0,0,0,0.08);
  61. }
  62. }