text.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. //文字相关样式
  2. .text-shadow {
  3. /* #ifndef APP-NVUE */
  4. text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  5. &-deep {
  6. text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  7. }
  8. /* #endif */
  9. }
  10. .text-indent {
  11. /* #ifndef APP-NVUE */
  12. text-indent: 2em;
  13. &-1 {
  14. text-indent: 1em;
  15. }
  16. &-2 {
  17. text-indent: 2em;
  18. }
  19. &-3 {
  20. text-indent: 3em;
  21. }
  22. &-3 {
  23. text-indent: 3em;
  24. }
  25. &-none {
  26. text-indent: 0;
  27. }
  28. /* #endif */
  29. }
  30. .text-overflow {
  31. &-ellipsis {
  32. text-overflow: ellipsis;
  33. }
  34. }
  35. .text-italic {
  36. font-style: italic;
  37. }
  38. .text-bold {
  39. font-weight: 700 !important;
  40. }
  41. .text-bolder {
  42. font-weight: bolder !important;
  43. }
  44. .text-light {
  45. font-weight: 300 !important;
  46. }
  47. .text-lowercase {
  48. text-transform: lowercase !important;
  49. }
  50. .text-uppercase {
  51. text-transform: uppercase !important;
  52. }
  53. .text-capitalize {
  54. text-transform: capitalize !important;
  55. }
  56. .text-left {
  57. text-align: left !important;
  58. }
  59. .text-right {
  60. text-align: right !important;
  61. }
  62. .text-center {
  63. text-align: center !important;
  64. }
  65. .text-lines {
  66. &-1 {
  67. lines: 1;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. /* #ifndef APP-NVUE */
  71. display: block;
  72. white-space: nowrap;
  73. /* #endif */
  74. }
  75. &-2 {
  76. overflow: hidden;
  77. /* #ifdef APP-NVUE */
  78. lines: 2;
  79. text-overflow: ellipsis;
  80. /* #endif */
  81. /* #ifndef APP-NVUE */
  82. display: -webkit-box;
  83. -webkit-box-orient: vertical;
  84. -webkit-line-clamp: 2;
  85. /* #endif */
  86. }
  87. &-3 {
  88. overflow: hidden;
  89. /* #ifdef APP-NVUE */
  90. lines: 3;
  91. text-overflow: ellipsis;
  92. /* #endif */
  93. /* #ifndef APP-NVUE */
  94. display: -webkit-box;
  95. -webkit-box-orient: vertical;
  96. -webkit-line-clamp: 3;
  97. /* #endif */
  98. }
  99. &-4 {
  100. overflow: hidden;
  101. /* #ifdef APP-NVUE */
  102. lines: 4;
  103. text-overflow: ellipsis;
  104. /* #endif */
  105. /* #ifndef APP-NVUE */
  106. display: -webkit-box;
  107. -webkit-box-orient: vertical;
  108. -webkit-line-clamp: 4;
  109. /* #endif */
  110. }
  111. &-5 {
  112. overflow: hidden;
  113. /* #ifdef APP-NVUE */
  114. lines: 5;
  115. text-overflow: ellipsis;
  116. /* #endif */
  117. /* #ifndef APP-NVUE */
  118. display: -webkit-box;
  119. -webkit-box-orient: vertical;
  120. -webkit-line-clamp: 5;
  121. /* #endif */
  122. }
  123. &-6 {
  124. overflow: hidden;
  125. /* #ifdef APP-NVUE */
  126. lines: 6;
  127. text-overflow: ellipsis;
  128. /* #endif */
  129. /* #ifndef APP-NVUE */
  130. display: -webkit-box;
  131. -webkit-box-orient: vertical;
  132. -webkit-line-clamp: 6;
  133. /* #endif */
  134. }
  135. }
  136. .text {
  137. &-none-decoration {
  138. text-decoration: none;
  139. }
  140. &-underline {
  141. text-decoration: underline;
  142. }
  143. &-line-through {
  144. text-decoration: line-through;
  145. }
  146. }
  147. .text-align {
  148. &-left {
  149. text-align: left;
  150. }
  151. &-center {
  152. text-align: center;
  153. }
  154. &-right {
  155. text-align: right;
  156. }
  157. }