widgets.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /* SELECTOR (FILTER INTERFACE) */
  2. .selector {
  3. width: 800px;
  4. float: left;
  5. display: flex;
  6. }
  7. .selector select {
  8. width: 380px;
  9. height: 17.2em;
  10. flex: 1 0 auto;
  11. }
  12. .selector-available, .selector-chosen {
  13. width: 380px;
  14. text-align: center;
  15. margin-bottom: 5px;
  16. display: flex;
  17. flex-direction: column;
  18. }
  19. .selector-chosen select {
  20. border-top: none;
  21. }
  22. .selector-available h2, .selector-chosen h2 {
  23. border: 1px solid var(--border-color);
  24. border-radius: 4px 4px 0 0;
  25. }
  26. .selector-chosen h2 {
  27. background: var(--primary);
  28. color: var(--header-link-color);
  29. }
  30. .selector .selector-available h2 {
  31. background: var(--darkened-bg);
  32. color: var(--body-quiet-color);
  33. }
  34. .selector .selector-filter {
  35. border: 1px solid var(--border-color);
  36. border-width: 0 1px;
  37. padding: 8px;
  38. color: var(--body-quiet-color);
  39. font-size: 0.625rem;
  40. margin: 0;
  41. text-align: left;
  42. }
  43. .selector .selector-filter label,
  44. .inline-group .aligned .selector .selector-filter label {
  45. float: left;
  46. margin: 7px 0 0;
  47. width: 18px;
  48. height: 18px;
  49. padding: 0;
  50. overflow: hidden;
  51. line-height: 1;
  52. }
  53. .selector .selector-available input {
  54. width: 320px;
  55. margin-left: 8px;
  56. }
  57. .selector ul.selector-chooser {
  58. align-self: center;
  59. width: 22px;
  60. background-color: var(--selected-bg);
  61. border-radius: 10px;
  62. margin: 0 5px;
  63. padding: 0;
  64. transform: translateY(-17px);
  65. }
  66. .selector-chooser li {
  67. margin: 0;
  68. padding: 3px;
  69. list-style-type: none;
  70. }
  71. .selector select {
  72. padding: 0 10px;
  73. margin: 0 0 10px;
  74. border-radius: 0 0 4px 4px;
  75. }
  76. .selector-add, .selector-remove {
  77. width: 16px;
  78. height: 16px;
  79. display: block;
  80. text-indent: -3000px;
  81. overflow: hidden;
  82. cursor: default;
  83. opacity: 0.55;
  84. }
  85. .active.selector-add, .active.selector-remove {
  86. opacity: 1;
  87. }
  88. .active.selector-add:hover, .active.selector-remove:hover {
  89. cursor: pointer;
  90. }
  91. .selector-add {
  92. background: url(../img/selector-icons.svg) 0 -96px no-repeat;
  93. }
  94. .active.selector-add:focus, .active.selector-add:hover {
  95. background-position: 0 -112px;
  96. }
  97. .selector-remove {
  98. background: url(../img/selector-icons.svg) 0 -64px no-repeat;
  99. }
  100. .active.selector-remove:focus, .active.selector-remove:hover {
  101. background-position: 0 -80px;
  102. }
  103. a.selector-chooseall, a.selector-clearall {
  104. display: inline-block;
  105. height: 16px;
  106. text-align: left;
  107. margin: 1px auto 3px;
  108. overflow: hidden;
  109. font-weight: bold;
  110. line-height: 16px;
  111. color: var(--body-quiet-color);
  112. text-decoration: none;
  113. opacity: 0.55;
  114. }
  115. a.active.selector-chooseall:focus, a.active.selector-clearall:focus,
  116. a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
  117. color: var(--link-fg);
  118. }
  119. a.active.selector-chooseall, a.active.selector-clearall {
  120. opacity: 1;
  121. }
  122. a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
  123. cursor: pointer;
  124. }
  125. a.selector-chooseall {
  126. padding: 0 18px 0 0;
  127. background: url(../img/selector-icons.svg) right -160px no-repeat;
  128. cursor: default;
  129. }
  130. a.active.selector-chooseall:focus, a.active.selector-chooseall:hover {
  131. background-position: 100% -176px;
  132. }
  133. a.selector-clearall {
  134. padding: 0 0 0 18px;
  135. background: url(../img/selector-icons.svg) 0 -128px no-repeat;
  136. cursor: default;
  137. }
  138. a.active.selector-clearall:focus, a.active.selector-clearall:hover {
  139. background-position: 0 -144px;
  140. }
  141. /* STACKED SELECTORS */
  142. .stacked {
  143. float: left;
  144. width: 490px;
  145. display: block;
  146. }
  147. .stacked select {
  148. width: 480px;
  149. height: 10.1em;
  150. }
  151. .stacked .selector-available, .stacked .selector-chosen {
  152. width: 480px;
  153. }
  154. .stacked .selector-available {
  155. margin-bottom: 0;
  156. }
  157. .stacked .selector-available input {
  158. width: 422px;
  159. }
  160. .stacked ul.selector-chooser {
  161. height: 22px;
  162. width: 50px;
  163. margin: 0 0 10px 40%;
  164. background-color: #eee;
  165. border-radius: 10px;
  166. transform: none;
  167. }
  168. .stacked .selector-chooser li {
  169. float: left;
  170. padding: 3px 3px 3px 5px;
  171. }
  172. .stacked .selector-chooseall, .stacked .selector-clearall {
  173. display: none;
  174. }
  175. .stacked .selector-add {
  176. background: url(../img/selector-icons.svg) 0 -32px no-repeat;
  177. cursor: default;
  178. }
  179. .stacked .active.selector-add {
  180. background-position: 0 -32px;
  181. cursor: pointer;
  182. }
  183. .stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
  184. background-position: 0 -48px;
  185. cursor: pointer;
  186. }
  187. .stacked .selector-remove {
  188. background: url(../img/selector-icons.svg) 0 0 no-repeat;
  189. cursor: default;
  190. }
  191. .stacked .active.selector-remove {
  192. background-position: 0 0px;
  193. cursor: pointer;
  194. }
  195. .stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
  196. background-position: 0 -16px;
  197. cursor: pointer;
  198. }
  199. .selector .help-icon {
  200. background: url(../img/icon-unknown.svg) 0 0 no-repeat;
  201. display: inline-block;
  202. vertical-align: middle;
  203. margin: -2px 0 0 2px;
  204. width: 13px;
  205. height: 13px;
  206. }
  207. .selector .selector-chosen .help-icon {
  208. background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat;
  209. }
  210. .selector .search-label-icon {
  211. background: url(../img/search.svg) 0 0 no-repeat;
  212. display: inline-block;
  213. height: 18px;
  214. width: 18px;
  215. }
  216. /* DATE AND TIME */
  217. p.datetime {
  218. line-height: 20px;
  219. margin: 0;
  220. padding: 0;
  221. color: var(--body-quiet-color);
  222. font-weight: bold;
  223. }
  224. .datetime span {
  225. white-space: nowrap;
  226. font-weight: normal;
  227. font-size: 0.6875rem;
  228. color: var(--body-quiet-color);
  229. }
  230. .datetime input, .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
  231. margin-left: 5px;
  232. margin-bottom: 4px;
  233. }
  234. table p.datetime {
  235. font-size: 0.6875rem;
  236. margin-left: 0;
  237. padding-left: 0;
  238. }
  239. .datetimeshortcuts .clock-icon, .datetimeshortcuts .date-icon {
  240. position: relative;
  241. display: inline-block;
  242. vertical-align: middle;
  243. height: 16px;
  244. width: 16px;
  245. overflow: hidden;
  246. }
  247. .datetimeshortcuts .clock-icon {
  248. background: url(../img/icon-clock.svg) 0 0 no-repeat;
  249. }
  250. .datetimeshortcuts a:focus .clock-icon,
  251. .datetimeshortcuts a:hover .clock-icon {
  252. background-position: 0 -16px;
  253. }
  254. .datetimeshortcuts .date-icon {
  255. background: url(../img/icon-calendar.svg) 0 0 no-repeat;
  256. top: -1px;
  257. }
  258. .datetimeshortcuts a:focus .date-icon,
  259. .datetimeshortcuts a:hover .date-icon {
  260. background-position: 0 -16px;
  261. }
  262. .timezonewarning {
  263. font-size: 0.6875rem;
  264. color: var(--body-quiet-color);
  265. }
  266. /* URL */
  267. p.url {
  268. line-height: 20px;
  269. margin: 0;
  270. padding: 0;
  271. color: var(--body-quiet-color);
  272. font-size: 0.6875rem;
  273. font-weight: bold;
  274. }
  275. .url a {
  276. font-weight: normal;
  277. }
  278. /* FILE UPLOADS */
  279. p.file-upload {
  280. line-height: 20px;
  281. margin: 0;
  282. padding: 0;
  283. color: var(--body-quiet-color);
  284. font-size: 0.6875rem;
  285. font-weight: bold;
  286. }
  287. .aligned p.file-upload {
  288. margin-left: 170px;
  289. }
  290. .file-upload a {
  291. font-weight: normal;
  292. }
  293. .file-upload .deletelink {
  294. margin-left: 5px;
  295. }
  296. span.clearable-file-input label {
  297. color: var(--body-fg);
  298. font-size: 0.6875rem;
  299. display: inline;
  300. float: none;
  301. }
  302. /* CALENDARS & CLOCKS */
  303. .calendarbox, .clockbox {
  304. margin: 5px auto;
  305. font-size: 0.75rem;
  306. width: 19em;
  307. text-align: center;
  308. background: var(--body-bg);
  309. color: var(--body-fg);
  310. border: 1px solid var(--hairline-color);
  311. border-radius: 4px;
  312. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  313. overflow: hidden;
  314. position: relative;
  315. }
  316. .clockbox {
  317. width: auto;
  318. }
  319. .calendar {
  320. margin: 0;
  321. padding: 0;
  322. }
  323. .calendar table {
  324. margin: 0;
  325. padding: 0;
  326. border-collapse: collapse;
  327. background: white;
  328. width: 100%;
  329. }
  330. .calendar caption, .calendarbox h2 {
  331. margin: 0;
  332. text-align: center;
  333. border-top: none;
  334. font-weight: 700;
  335. font-size: 0.75rem;
  336. color: #333;
  337. background: var(--accent);
  338. }
  339. .calendar th {
  340. padding: 8px 5px;
  341. background: var(--darkened-bg);
  342. border-bottom: 1px solid var(--border-color);
  343. font-weight: 400;
  344. font-size: 0.75rem;
  345. text-align: center;
  346. color: var(--body-quiet-color);
  347. }
  348. .calendar td {
  349. font-weight: 400;
  350. font-size: 0.75rem;
  351. text-align: center;
  352. padding: 0;
  353. border-top: 1px solid var(--hairline-color);
  354. border-bottom: none;
  355. }
  356. .calendar td.selected a {
  357. background: var(--primary);
  358. color: var(--button-fg);
  359. }
  360. .calendar td.nonday {
  361. background: var(--darkened-bg);
  362. }
  363. .calendar td.today a {
  364. font-weight: 700;
  365. }
  366. .calendar td a, .timelist a {
  367. display: block;
  368. font-weight: 400;
  369. padding: 6px;
  370. text-decoration: none;
  371. color: var(--body-quiet-color);
  372. }
  373. .calendar td a:focus, .timelist a:focus,
  374. .calendar td a:hover, .timelist a:hover {
  375. background: var(--primary);
  376. color: white;
  377. }
  378. .calendar td a:active, .timelist a:active {
  379. background: var(--header-bg);
  380. color: white;
  381. }
  382. .calendarnav {
  383. font-size: 0.625rem;
  384. text-align: center;
  385. color: #ccc;
  386. margin: 0;
  387. padding: 1px 3px;
  388. }
  389. .calendarnav a:link, #calendarnav a:visited,
  390. #calendarnav a:focus, #calendarnav a:hover {
  391. color: var(--body-quiet-color);
  392. }
  393. .calendar-shortcuts {
  394. background: var(--body-bg);
  395. color: var(--body-quiet-color);
  396. font-size: 0.6875rem;
  397. line-height: 11px;
  398. border-top: 1px solid var(--hairline-color);
  399. padding: 8px 0;
  400. }
  401. .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
  402. display: block;
  403. position: absolute;
  404. top: 8px;
  405. width: 15px;
  406. height: 15px;
  407. text-indent: -9999px;
  408. padding: 0;
  409. }
  410. .calendarnav-previous {
  411. left: 10px;
  412. background: url(../img/calendar-icons.svg) 0 0 no-repeat;
  413. }
  414. .calendarbox .calendarnav-previous:focus,
  415. .calendarbox .calendarnav-previous:hover {
  416. background-position: 0 -15px;
  417. }
  418. .calendarnav-next {
  419. right: 10px;
  420. background: url(../img/calendar-icons.svg) 0 -30px no-repeat;
  421. }
  422. .calendarbox .calendarnav-next:focus,
  423. .calendarbox .calendarnav-next:hover {
  424. background-position: 0 -45px;
  425. }
  426. .calendar-cancel {
  427. margin: 0;
  428. padding: 4px 0;
  429. font-size: 0.75rem;
  430. background: #eee;
  431. border-top: 1px solid var(--border-color);
  432. color: var(--body-fg);
  433. }
  434. .calendar-cancel:focus, .calendar-cancel:hover {
  435. background: #ddd;
  436. }
  437. .calendar-cancel a {
  438. color: black;
  439. display: block;
  440. }
  441. ul.timelist, .timelist li {
  442. list-style-type: none;
  443. margin: 0;
  444. padding: 0;
  445. }
  446. .timelist a {
  447. padding: 2px;
  448. }
  449. /* EDIT INLINE */
  450. .inline-deletelink {
  451. float: right;
  452. text-indent: -9999px;
  453. background: url(../img/inline-delete.svg) 0 0 no-repeat;
  454. width: 16px;
  455. height: 16px;
  456. border: 0px none;
  457. }
  458. .inline-deletelink:focus, .inline-deletelink:hover {
  459. cursor: pointer;
  460. }
  461. /* RELATED WIDGET WRAPPER */
  462. .related-widget-wrapper {
  463. float: left; /* display properly in form rows with multiple fields */
  464. overflow: hidden; /* clear floated contents */
  465. }
  466. .related-widget-wrapper-link {
  467. opacity: 0.3;
  468. }
  469. .related-widget-wrapper-link:link {
  470. opacity: .8;
  471. }
  472. .related-widget-wrapper-link:link:focus,
  473. .related-widget-wrapper-link:link:hover {
  474. opacity: 1;
  475. }
  476. select + .related-widget-wrapper-link,
  477. .related-widget-wrapper-link + .related-widget-wrapper-link {
  478. margin-left: 7px;
  479. }