_share.less 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. #current-share-header {
  2. &:before {
  3. content: ' ';
  4. display: block;
  5. width: 25px;
  6. height: 25px;
  7. position: absolute;
  8. left: 0;
  9. top: 1px;
  10. background: url(../images/icons.png) no-repeat 0 -645px;
  11. }
  12. }
  13. #manage-share-header {
  14. &:before {
  15. content: ' ';
  16. display: block;
  17. width: 25px;
  18. height: 25px;
  19. position: absolute;
  20. left: 0;
  21. top: 1px;
  22. background: url(../images/icons.png) no-repeat 0 -620px;
  23. }
  24. }
  25. #manage-share-list {
  26. margin: 0;
  27. padding: 0;
  28. list-style: none;
  29. .dock(40px, 0, 0, 0);
  30. overflow: auto;
  31. overflow-x: hidden;
  32. overflow-y: auto;
  33. padding-right: 10px;
  34. &:empty:after {
  35. content: '没有分享';
  36. display: block;
  37. text-align: center;
  38. font-size: 18px;
  39. height: 50px;
  40. line-height: 50px;
  41. color: #CCC;
  42. }
  43. .share-item {
  44. font-size: 14px;
  45. line-height: 20px;
  46. padding: 10px 20px 10px 40px;
  47. cursor: default;
  48. position: relative;
  49. &:hover {
  50. background-color: lighten(@tab-hover, 55%);
  51. }
  52. &:active {
  53. background-color: lighten(@tab-hover, 50%);
  54. }
  55. .title {
  56. display: block;
  57. margin: 0;
  58. font-weight: normal;
  59. height: 20px;
  60. line-height: 20px;
  61. overflow: ellipse;
  62. &:after {
  63. content: ' ';
  64. display: block;
  65. position: absolute;
  66. width: 25px;
  67. height: 25px;
  68. background: url(../images/icons.png) no-repeat 0 -445px;
  69. left: 5px;
  70. top: 10px;
  71. }
  72. }
  73. .url {
  74. display: block;
  75. margin: 0;
  76. margin-top: 5px;
  77. font-size: 12px;
  78. color: #999;
  79. }
  80. .ctime {
  81. position: absolute;
  82. right: 5px;
  83. top: 10px;
  84. font-size: 12px;
  85. color: #999;
  86. }
  87. .view-action, .remove-action, .edit-action {
  88. display: none;
  89. float: right;
  90. width: 18px;
  91. height: 18px;
  92. background: url(../images/icons.png) no-repeat;
  93. position: relative;
  94. margin-left: 5px;
  95. left: 15px;
  96. top: -20px;
  97. border: 1px solid transparent;
  98. border-radius: 2px;
  99. text-indent: -99999px;
  100. &:hover {
  101. border: 1px solid #888;
  102. box-shadow: inset 0 8px 1px rgba(255,255,255,0.3),
  103. inset 0 0 3px rgba(0, 0, 0, 0.2);
  104. }
  105. &:active {
  106. box-shadow: inset 0 7px 3px rgba(0,0,0,0.05),
  107. inset 0 0 4px rgba(0, 0, 0, 0.3);
  108. }
  109. }
  110. .view-action {
  111. background-position: -1px -670px;
  112. }
  113. .remove-action {
  114. background-position: 0 -690px;
  115. }
  116. .edit-action {
  117. background-position: 0 -710px;
  118. }
  119. &:hover {
  120. .view-action, .remove-action, .edit-action {
  121. display: block;
  122. }
  123. }
  124. }
  125. }
  126. #share-select {
  127. margin-top: 10px;
  128. fieldset {
  129. border: 1px solid #f0f0f0;
  130. margin: 0;
  131. margin-bottom: 10px;
  132. padding: 10px;
  133. border-radius: 2px;
  134. legend {
  135. font-size: 14px;
  136. }
  137. &:disabled {
  138. opacity: 0.5;
  139. }
  140. .share-description {
  141. }
  142. .share-body {
  143. margin-top: 10px;
  144. .share-qr-code img {
  145. margin: 20px 0;
  146. }
  147. }
  148. }
  149. }
  150. #public-share {
  151. p {
  152. position: relative;
  153. max-width: 500px;
  154. input {
  155. width: 100%;
  156. box-sizing: border-box;
  157. height: 24px;
  158. margin: 0;
  159. }
  160. #copy-share-url {
  161. position: absolute;
  162. right: 0;
  163. top: 0;
  164. margin: 0;
  165. height: 24px;
  166. line-height: 24px;
  167. border-radius: 2px;
  168. }
  169. }
  170. .share-body {
  171. display: none;
  172. }
  173. }
  174. .shared-content {
  175. & > .left, & > .right {
  176. float: left;
  177. }
  178. .m-logo {
  179. float: left;
  180. margin-top: 4px;
  181. margin-left: 8px;
  182. }
  183. .switch-view {
  184. float: right;
  185. font-size: 14px;
  186. height: 40px;
  187. line-height: 40px;
  188. margin-right: 8px;
  189. text-align: center;
  190. font-weight: normal;
  191. color: #ffffff;
  192. }
  193. .cur-list, .cur-root {
  194. position: relative;
  195. margin: 0;
  196. padding: 0;
  197. }
  198. .cur-list {
  199. list-style-type: none;
  200. overflow-y: scroll;
  201. }
  202. .cur-list li, .cur-root {
  203. line-height: 50px;
  204. height: 50px;
  205. padding-left: 25px;
  206. border-bottom: 1px solid #ddd;
  207. }
  208. .cur-root {
  209. background-color: #fc8383;
  210. font-size: 16px;
  211. padding-left: 15px;
  212. border-bottom: none;
  213. .dock;
  214. }
  215. .priority {
  216. height: 20px;
  217. width: 20px;
  218. background: url(../images/iconpriority.png) repeat-x;
  219. float: left;
  220. margin: 15px 15px auto 0;
  221. }
  222. .priority-1 {
  223. background-position: 0 0;
  224. }
  225. .priority-2 {
  226. background-position: -20px 0;
  227. }
  228. .priority-3 {
  229. background-position: -40px 0;
  230. }
  231. .priority-4 {
  232. background-position: -60px 0;
  233. }
  234. .priority-5 {
  235. background-position: -80px 0;
  236. }
  237. .priority-6 {
  238. background-position: -100px 0;
  239. }
  240. .priority-7 {
  241. background-position: -120px 0;
  242. }
  243. .priority-8 {
  244. background-position: -140px 0;
  245. }
  246. .priority-9 {
  247. background-position: -160px 0;
  248. }
  249. .priority-0 {
  250. background-position: -180px 0;
  251. }
  252. .progress {
  253. height: 20px;
  254. width: 20px;
  255. background: url(../images/iconprogress.png) repeat-x;
  256. float: left;
  257. margin: 15px 15px auto 0;
  258. }
  259. .progress-1 {
  260. background-position: 0 0;
  261. }
  262. .progress-2 {
  263. background-position: -20px 0;
  264. }
  265. .progress-3 {
  266. background-position: -40px 0;
  267. }
  268. .progress-4 {
  269. background-position: -60px 0;
  270. }
  271. .progress-5 {
  272. background-position: -80px 0;
  273. }
  274. .progress-6 {
  275. background-position: -100px 0;
  276. }
  277. .progress-7 {
  278. background-position: -120px 0;
  279. }
  280. .progress-8 {
  281. background-position: -140px 0;
  282. }
  283. .progress-9 {
  284. background-position: -160px 0;
  285. }
  286. .progress-0 {
  287. background-position: -180px 0;
  288. }
  289. .resource {
  290. padding: 3px 5px;
  291. border-radius: 2px;
  292. font-size: 12px;
  293. line-height: 16px;
  294. color: rgb(77, 65, 0);
  295. vertical-align: middle;
  296. margin: 14px 8px;
  297. float: right;
  298. }
  299. .hyperlink {
  300. display: block;
  301. float: right;
  302. width: 30px;
  303. height: 20px;
  304. margin: 15px;
  305. padding: 0;
  306. background: url(../images/icons.png) no-repeat 0 -80px;
  307. background-size: 20px;
  308. vertical-align: middle;
  309. }
  310. .next-level {
  311. width: 32px;
  312. height: 50px;
  313. margin-right: 16px;
  314. float: right;
  315. background: url(../images/next-level.png) no-repeat center center;
  316. }
  317. #km-list-view {
  318. .dock(40px, 0, 0, 0);
  319. overflow: visible;
  320. }
  321. .cur-list {
  322. .dock(50px, 0, 0, 0);
  323. }
  324. .back {
  325. width: 32px;
  326. height: 32px;
  327. background: url(../images/prev-level.png) no-repeat center center;
  328. display: none;
  329. }
  330. .clickable:hover {
  331. background-color: #eee;
  332. }
  333. .clickable:active {
  334. background-color: #eee;
  335. }
  336. #km-list-view > div {
  337. .dock;
  338. }
  339. .text {
  340. display: block;
  341. white-space: nowrap;
  342. text-overflow: ellipsis;
  343. -o-text-overflow: ellipsis;
  344. overflow: hidden;
  345. vertical-align: middle;
  346. }
  347. .cur-root .text {
  348. color: white;
  349. }
  350. }