uni_android_plugin_project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.1 KiB

3 years ago
  1. @charset "utf-8";
  2. $themeColor: #009874;
  3. /*每个页面公共css */
  4. /* view,scroll-view,text,picker{
  5. box-sizing: border-box;
  6. } */
  7. @mixin textHide($line) {
  8. display: -webkit-box;
  9. word-break: break-all;
  10. text-overflow: ellipsis;
  11. overflow: hidden;
  12. -webkit-box-orient: vertical;
  13. -webkit-line-clamp:$line;
  14. }
  15. @mixin centerFlex($justtify){
  16. display: flex;
  17. align-items: center;
  18. justify-content: $justtify;
  19. }
  20. @mixin botLine{
  21. border-bottom: 2upx solid #e5e5e5;
  22. }
  23. @mixin picBgc{
  24. background-color: #f9f9f9;
  25. }
  26. @mixin closeIcon($width,$height,$color) {
  27. transform: rotateZ(45deg);
  28. &::before{
  29. content: '';
  30. display: block;
  31. position: absolute;
  32. left: 50%;
  33. top: 50%;
  34. transform: translate(-50%,-50%);
  35. width: $width;
  36. height: $height;
  37. background-color: $color;
  38. border-radius: $height;
  39. }
  40. &::after{
  41. content: '';
  42. display: block;
  43. position: absolute;
  44. left: 50%;
  45. top: 50%;
  46. transform: translate(-50%,-50%);
  47. width: $height;
  48. height: $width;
  49. background-color: $color;
  50. border-radius: $height;
  51. }
  52. }
  53. @mixin hover {
  54. position: relative;
  55. overflow: hidden;
  56. &::after{
  57. content: '';
  58. position: absolute;
  59. left: 0;
  60. right: 0;
  61. top: 0;
  62. bottom: 0;
  63. z-index: 2;
  64. background-color: rgba(0,0,0,.1);
  65. }
  66. }
  67. @mixin arrowIcon($size,$line,$radius,$angle,$color) {
  68. &::after{
  69. content:'';
  70. display: inline-block;
  71. vertical-align: middle;
  72. transform: rotateZ($angle);
  73. width: $size;
  74. height: $size;
  75. border-right: $line solid $color;
  76. border-bottom: $line solid $color;
  77. border-bottom-right-radius: $radius;
  78. }
  79. }
  80. @mixin clearBtn {
  81. margin: 0;
  82. display: block;
  83. border: none;
  84. border-radius:0;
  85. background-color: transparent;
  86. padding-left: 0;
  87. padding-right: 0;
  88. line-height: inherit;
  89. &::after {
  90. border: none;
  91. }
  92. }