placard.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .placard {
  2. display: inline-block;
  3. position: relative;
  4. &[data-ellipsis="true"] {
  5. &.showing {
  6. input.placard-field {
  7. overflow: visible;
  8. text-overflow: clip;
  9. white-space: normal;
  10. }
  11. }
  12. input.placard-field {
  13. overflow: hidden;
  14. text-overflow: ellipsis;
  15. white-space: nowrap;
  16. &::-ms-clear {
  17. display:none;
  18. }
  19. }
  20. textarea.placard-field {
  21. &[readonly] {
  22. overflow: hidden;
  23. }
  24. }
  25. }
  26. &.showing {
  27. .placard-footer,
  28. .placard-header,
  29. .placard-popup {
  30. display: block;
  31. z-index: 1;
  32. }
  33. input.placard-field, textarea.placard-field {
  34. background: #fff;
  35. border: 1px solid #CCCCCC;
  36. box-shadow: none;
  37. position: relative;
  38. z-index: 1;
  39. }
  40. }
  41. input.placard-field, textarea.placard-field {
  42. resize: none;
  43. &[readonly] {
  44. background: #fff;
  45. cursor: auto;
  46. &.glass {
  47. background: none;
  48. &:hover {
  49. background: #d9edf7;
  50. cursor: pointer;
  51. }
  52. }
  53. }
  54. &:focus {
  55. border: 1px solid #CCCCCC;
  56. box-shadow: none;
  57. }
  58. }
  59. &-cancel {
  60. font-size: 12px;
  61. margin-right: 4px;
  62. vertical-align: middle;
  63. }
  64. &-footer,
  65. &-header {
  66. display: none;
  67. left: 0;
  68. line-height: 1;
  69. position: absolute;
  70. right: 0;
  71. }
  72. &-footer {
  73. padding: 4px 0 8px 0;
  74. text-align: right;
  75. top: 100%;
  76. }
  77. &-header {
  78. bottom: 100%;
  79. padding: 8px 0 4px 0;
  80. h1, h2, h3, h4, h5, h6 {
  81. margin: 0;
  82. }
  83. }
  84. &-popup {
  85. background: #d9edf7;
  86. background-clip: padding-box;
  87. border: 1px solid #ccc;
  88. border-radius: 4px;
  89. bottom: -8px;
  90. box-shadow: 0 0 0 1px #fff inset;
  91. display: none;
  92. left: -8px;
  93. position: absolute;
  94. right: -8px;
  95. top: -8px;
  96. }
  97. }