link.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @import '../common/base.scss';
  2. .m-link{
  3. display: inline-flex;
  4. flex-direction: row;
  5. align-items: center;
  6. justify-content: center;
  7. vertical-align: middle;
  8. position: relative;
  9. text-decoration: none;
  10. outline: none;
  11. cursor: pointer;
  12. padding: 0;
  13. font-size: 14px;
  14. font-weight: 500;
  15. margin-right: 12px;
  16. }
  17. .m-link--default{
  18. color: #333;
  19. &:hover {
  20. opacity: 0.8;
  21. color: $primary;
  22. }
  23. }
  24. .m-link--primary{
  25. color: $primary;
  26. &:hover {
  27. opacity: 0.8;
  28. }
  29. }
  30. .m-link--success{
  31. color: $success;
  32. &:hover {
  33. opacity: 0.8;
  34. }
  35. }
  36. .m-link--danger {
  37. color: $danger;
  38. &:hover {
  39. opacity: 0.8;
  40. }
  41. }
  42. .m-link--info {
  43. color: $info;
  44. &:hover {
  45. opacity: 0.8;
  46. }
  47. }
  48. .m-link--warning {
  49. color: $warning;
  50. &:hover {
  51. opacity: 0.8;
  52. }
  53. }
  54. // 禁止
  55. .is-disabled{
  56. cursor: not-allowed;
  57. &:hover {
  58. text-decoration: none;
  59. }
  60. }
  61. .m-link--default.is-disabled{
  62. color: #c0c4cc;
  63. }
  64. .m-link--primary.is-disabled{
  65. color: #a0cfff;
  66. }
  67. .m-link--success.is-disabled{
  68. color: #b3e19d;
  69. }
  70. .m-link--danger.is-disabled{
  71. color: #fab6b6;
  72. }
  73. .m-link--info.is-disabled{
  74. color: #c8c9cc;
  75. }
  76. .m-link--warning.is-disabled{
  77. color: #f3d19e;
  78. }
  79. // 下划线
  80. .is-underline{
  81. &:hover{
  82. text-decoration: underline;
  83. }
  84. }