u-avatar.css 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
  4. * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
  5. */
  6. .u-avatar.data-v-4f1b1b40 {
  7. display: -webkit-inline-box;
  8. display: -webkit-inline-flex;
  9. display: inline-flex;
  10. -webkit-box-align: center;
  11. -webkit-align-items: center;
  12. align-items: center;
  13. -webkit-box-pack: center;
  14. -webkit-justify-content: center;
  15. justify-content: center;
  16. font-size: 28rpx;
  17. color: #606266;
  18. border-radius: 10px;
  19. position: relative;
  20. }
  21. .u-avatar__img.data-v-4f1b1b40 {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. .u-avatar__sex.data-v-4f1b1b40 {
  26. position: absolute;
  27. width: 32rpx;
  28. color: #ffffff;
  29. height: 32rpx;
  30. display: -webkit-box;
  31. display: -webkit-flex;
  32. display: flex;
  33. -webkit-box-orient: horizontal;
  34. -webkit-box-direction: normal;
  35. -webkit-flex-direction: row;
  36. flex-direction: row;
  37. -webkit-box-pack: center;
  38. -webkit-justify-content: center;
  39. justify-content: center;
  40. -webkit-box-align: center;
  41. -webkit-align-items: center;
  42. align-items: center;
  43. border-radius: 100rpx;
  44. top: 5%;
  45. z-index: 1;
  46. right: -7%;
  47. border: 1px #ffffff solid;
  48. }
  49. .u-avatar__sex--man.data-v-4f1b1b40 {
  50. background-color: #2979ff;
  51. }
  52. .u-avatar__sex--woman.data-v-4f1b1b40 {
  53. background-color: #fa3534;
  54. }
  55. .u-avatar__sex--none.data-v-4f1b1b40 {
  56. background-color: #ff9900;
  57. }
  58. .u-avatar__level.data-v-4f1b1b40 {
  59. position: absolute;
  60. width: 32rpx;
  61. color: #ffffff;
  62. height: 32rpx;
  63. display: -webkit-box;
  64. display: -webkit-flex;
  65. display: flex;
  66. -webkit-box-orient: horizontal;
  67. -webkit-box-direction: normal;
  68. -webkit-flex-direction: row;
  69. flex-direction: row;
  70. -webkit-box-pack: center;
  71. -webkit-justify-content: center;
  72. justify-content: center;
  73. -webkit-box-align: center;
  74. -webkit-align-items: center;
  75. align-items: center;
  76. border-radius: 100rpx;
  77. bottom: 5%;
  78. z-index: 1;
  79. right: -7%;
  80. border: 1px #ffffff solid;
  81. background-color: #ff9900;
  82. }