etcd-widgets.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. body {
  2. margin: 0px;
  3. }
  4. .etcd-container {
  5. background-color: #fff;
  6. border: 1px solid #ddd;
  7. border-radius: 5px;
  8. box-shadow: rgba(0, 0, 0, 0.14902) 0px 1px 3px;
  9. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  10. overflow: hidden;
  11. box-sizing: border-box;
  12. -moz-box-sizing: border-box;
  13. position: relative;
  14. }
  15. a {
  16. color: #2176AC;
  17. text-decoration: none;
  18. }
  19. a:hover, a:active {
  20. text-decoration: underline;
  21. }
  22. input[type=text] {
  23. box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
  24. border: none;
  25. border-radius: 3px;
  26. font-size: 13px;
  27. padding-left: 5px;
  28. padding-right: 5px;
  29. height: 25px;
  30. }
  31. input[type=text]:focus {
  32. }
  33. h2 {
  34. font-size: 22px;
  35. font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  36. font-weight: 500;
  37. margin: 0 0 20px 0;
  38. padding: 0;
  39. }
  40. .etcd-button {
  41. display:inline-block;
  42. padding:6px 12px;
  43. margin-bottom:0;
  44. font-size:14px;
  45. font-weight:normal;
  46. line-height:1.428571429;
  47. text-align:center;
  48. white-space:nowrap;
  49. vertical-align:middle;
  50. cursor:pointer;
  51. border:1px solid transparent;
  52. border-radius:4px;
  53. -webkit-user-select:none;
  54. -moz-user-select:none;
  55. -ms-user-select:none;
  56. -o-user-select:none;
  57. user-select:none;
  58. margin: 0px;
  59. border: none;
  60. box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.25);
  61. }
  62. .etcd-button.etcd-button-small {
  63. height: 25px;
  64. padding: 0 10px;
  65. font-size: 13px;
  66. }
  67. .etcd-button-primary {
  68. background-color: #428BCA;
  69. color: #fff;
  70. text-shadow: 0 0 3px rgba(0,0,0,0.25);
  71. }
  72. .etcd-button-primary:active {
  73. background-color: #2276ad;
  74. }
  75. .etcd-popover {
  76. background: #333;
  77. border-radius: 3px;
  78. padding: 15px;
  79. position: absolute;
  80. top: 39px;
  81. z-index: 9999;
  82. color: #fff;
  83. font-size: 13px;
  84. box-shadow: 0px 2px 10px rgba(0,0,0,.5);
  85. display: none;
  86. }
  87. .etcd-popover-error .etcd-popover-content {
  88. color: #FF3C43;
  89. font-weight: bold;
  90. }
  91. .etcd-popover-notch {
  92. width: 14px;
  93. height: 14px;
  94. -webkit-transform: rotate(45deg);
  95. -moz-transform: rotate(45deg);
  96. -ms-transform: rotate(45deg);
  97. position: absolute;
  98. margin-top: -5px;
  99. margin-left: 3px;
  100. background: #333;
  101. top: 0px;
  102. right: 15px;
  103. }
  104. .etcd-popover.etcd-popover-right {
  105. left: 77px;
  106. }
  107. .etcd-popover-right .etcd-popover-notch {
  108. left: 15px;
  109. }
  110. .etcd-popover.etcd-popover-left {
  111. right: 10px;
  112. }
  113. .etcd-popover-left .etcd-popover-notch {
  114. right: 15px;
  115. }
  116. .etcd-popover-confirm {
  117. margin-top: 10px;
  118. }
  119. .etcd-popover-confirm button {
  120. }
  121. .etcd-header {
  122. width: 100%;
  123. position: relative;
  124. box-sizing: border-box;
  125. -moz-box-sizing: border-box;
  126. }
  127. .etcd-header.solid {
  128. background: #eeeeee;
  129. background: -moz-linear-gradient(top, #eeeeee 0%, #dddddd 100%);
  130. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#dddddd));
  131. background: -webkit-linear-gradient(top, #eeeeee 0%,#dddddd 100%);
  132. background: -o-linear-gradient(top, #eeeeee 0%,#dddddd 100%);
  133. background: -ms-linear-gradient(top, #eeeeee 0%,#dddddd 100%);
  134. background: linear-gradient(to bottom, #eeeeee 0%,#dddddd 100%);
  135. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dddddd',GradientType=0 );
  136. }
  137. .etcd-body {
  138. top: 0px;
  139. left: 0px;
  140. position: relative;
  141. overflow-y: auto;
  142. overflow-x: hidden;
  143. height: 100%;
  144. width: 100%;
  145. box-sizing: border-box;
  146. -moz-box-sizing: border-box;
  147. }
  148. .etcd-body table {
  149. width: 100%;
  150. box-sizing: border-box;
  151. -moz-box-sizing: border-box;
  152. }
  153. .etcd-body table thead td {
  154. text-transform: uppercase;
  155. font-size: 11px;
  156. line-height: 20px;
  157. border-bottom: 1px solid #ddd;
  158. padding-top: 0px;
  159. padding-right: 10px;
  160. padding-bottom: 0px;
  161. padding-left: 0px;
  162. color: #666;
  163. }
  164. .etcd-body table tbody td {
  165. line-height: 18px;
  166. border-bottom: 1px solid #ddd;
  167. padding-top: 6px;
  168. padding-right: 10px;
  169. padding-bottom: 6px;
  170. padding-left: 0px;
  171. vertical-align: text-top;
  172. }
  173. .etcd-body table .etcd-ttl-header {
  174. width: 33%;
  175. }
  176. .etcd-body table tbody .etcd-ttl {
  177. font-size: 13px;
  178. }
  179. .etcd-body table tbody .etcd-ttl .etcd-ttl-none {
  180. color: #999;
  181. font-weight: 100;
  182. }
  183. .etcd-body table .etcd-actions-header {
  184. width: 30px;
  185. }
  186. .etcd-body table thead td:first-child, .etcd-body table tbody td:first-child {
  187. padding-left: 10px;
  188. }
  189. .etcd-body table thead td:last-child, .etcd-body table tbody td:last-child {
  190. padding-right: 10px;
  191. }
  192. .etcd-container .etcd-preview .etcd-dialog {
  193. background: #333;
  194. position: absolute;
  195. right: 0px;
  196. left: 0px;
  197. padding: 20px;
  198. color: #fff;
  199. font-size: 14px;
  200. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  201. bottom: 0px;
  202. opacity: 0;
  203. min-height: 110px; /* REMOVE ME! */
  204. transition-property: all;
  205. transition-duration: 150ms;
  206. transition-timing-function: ease-in-out;
  207. }
  208. .etcd-container .etcd-preview .etcd-dialog .etcd-dialog-message {
  209. margin-bottom: 20px;
  210. }
  211. .etcd-container .etcd-preview .etcd-dialog .etcd-dialog-buttons a {
  212. line-height: 34px;
  213. color: #fff;
  214. vertical-align: middle;
  215. margin-left: 10px;
  216. }
  217. /*.etcd-container .etcd-preview .etcd-dialog.etcd-reveal {
  218. opacity: 1;
  219. }
  220. .etcd-container .etcd-preview .etcd-dialog.etcd-hide {
  221. opacity: 0;
  222. }*/
  223. .etcd-body .etcd-list {
  224. padding: 20px;
  225. box-sizing: border-box;
  226. -moz-box-sizing: border-box;
  227. overflow: auto;
  228. height: 100%;
  229. position: absolute;
  230. }
  231. .etcd-body .etcd-list .etcd-selected {
  232. background-color: #EAF3FF;
  233. }
  234. .etcd-body .etcd-list a.directory {
  235. font-weight: bold;
  236. }
  237. .etcd-body .etcd-list tr:hover .etcd-delete svg {
  238. 1visibility: visible;
  239. fill: #ff0000;
  240. }
  241. .etcd-body .etcd-list .etcd-delete {
  242. height: 20px;
  243. width: 25px;
  244. vertical-align: middle;
  245. margin: 0px;
  246. display: inline-block;
  247. }
  248. .etcd-body .etcd-list .etcd-delete svg {
  249. height: 20px;
  250. fill: #eee;
  251. }
  252. .etcd-body .etcd-list .etcd-selected .etcd-delete svg {
  253. height: 20px;
  254. fill: #ddd;
  255. }
  256. .etcd-body .etcd-list .etcd-delete:hover svg {
  257. cursor: pointer;
  258. fill: #ff0000;
  259. }
  260. .etcd-container.etcd-browser {
  261. }
  262. .etcd-container.etcd-browser .etcd-header {
  263. height: 37px;
  264. }
  265. .etcd-back {
  266. height: 37px;
  267. width: 37px;
  268. vertical-align: middle;
  269. margin: 0px;
  270. position: absolute;
  271. top: 0px;
  272. left: 3px;
  273. display: none;
  274. }
  275. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-back {
  276. display: block;
  277. }
  278. .etcd-container.etcd-browser.etcd-preview-hide .etcd-back {
  279. display: block;
  280. }
  281. .etcd-back svg {
  282. height: 20px;
  283. padding: 8px 6px;
  284. }
  285. .etcd-back:hover svg {
  286. cursor: pointer;
  287. fill: #428bca;
  288. }
  289. .etcd-back.etcd-disabled svg {
  290. fill: #bbb;
  291. }
  292. .etcd-add {
  293. height: 37px;
  294. width: 37px;
  295. vertical-align: middle;
  296. margin: 0px;
  297. position: absolute;
  298. top: 0px;
  299. left: 36px;
  300. }
  301. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-add {
  302. }
  303. .etcd-container.etcd-browser.etcd-preview-hide .etcd-add {
  304. }
  305. .etcd-add svg {
  306. height: 22px;
  307. padding: 7px 6px;
  308. }
  309. .etcd-add:hover svg {
  310. cursor: pointer;
  311. fill: #428bca;
  312. }
  313. .etcd-add.etcd-disabled svg {
  314. fill: #bbb;
  315. }
  316. .etcd-container.etcd-browser .etcd-header .etcd-browser-path {
  317. position: absolute;
  318. left: 72px;
  319. right: 0px;
  320. top: 0;
  321. margin: 6px 5px 6px 5px;
  322. }
  323. .etcd-container.etcd-browser .etcd-header .etcd-browser-path input {
  324. width: 100%;
  325. box-sizing: border-box;
  326. -moz-box-sizing: border-box;
  327. -webkit-box-sizing: border-box;
  328. }
  329. .etcd-container.etcd-browser .etcd-header .etcd-save {
  330. position: absolute;
  331. width: 54px;
  332. right: -55px;
  333. margin: 6px 0;
  334. }
  335. .etcd-container.etcd-browser.etcd-save-reveal .etcd-header .etcd-save {
  336. right: 7px;
  337. }
  338. .etcd-container.etcd-browser.etcd-save-reveal .etcd-header .etcd-browser-path {
  339. right: 62px;
  340. }
  341. .etcd-container.etcd-browser.etcd-save-hide .etcd-header .etcd-save {
  342. right: -55px;
  343. }
  344. .etcd-container.etcd-browser.etcd-save-hide .etcd-header .etcd-browser-path {
  345. right: 0px;
  346. }
  347. .etcd-container.etcd-browser .etcd-preview {
  348. position: absolute;
  349. left: 100%;
  350. min-height: 100%;
  351. overflow-y: auto;
  352. overflow-x: hidden;
  353. top: 0px;
  354. box-sizing: border-box;
  355. -moz-box-sizing: border-box;
  356. background-color: #fff;
  357. width: 100%;
  358. border-left: 1px solid #ddd;
  359. }
  360. .etcd-container.etcd-browser .etcd-preview pre, .etcd-container.etcd-browser .etcd-preview textarea {
  361. padding: 20px 20px 20px 20px;
  362. margin: 0px;
  363. font-family: Consolas, "Liberation Mono", Courier, monospace;
  364. height: 100%;
  365. width: 100%;
  366. white-space: pre-wrap;
  367. position: absolute;
  368. font-size: 13px;
  369. border: 1px;
  370. outline: none;
  371. box-sizing: border-box;
  372. -moz-box-sizing: border-box;
  373. }
  374. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-preview pre, .etcd-container.etcd-browser.etcd-preview-reveal .etcd-preview textarea {
  375. display: block;
  376. }
  377. .etcd-container.etcd-browser .etcd-preview .etcd-empty {
  378. top: 0px;
  379. bottom: 0px;
  380. width: 100%;
  381. text-align: center;
  382. position: absolute;
  383. }
  384. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-empty {
  385. display: none;
  386. }
  387. .etcd-container.etcd-browser .etcd-preview .etcd-empty-message {
  388. margin-top: 25%;
  389. color: #999;
  390. }
  391. /* Single Column Positioning */
  392. @media (max-width: 700px) {
  393. .etcd-container.etcd-browser .etcd-list {
  394. width: 100%;
  395. }
  396. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-list {
  397. left: -100%;
  398. transition-property: all;
  399. transition-duration: 250ms;
  400. transition-timing-function: ease-in-out;
  401. }
  402. .etcd-container.etcd-browser.etcd-preview-hide .etcd-list {
  403. left: 0%;
  404. transition-property: all;
  405. transition-duration: 250ms;
  406. transition-timing-function: ease-in-out;
  407. }
  408. .etcd-container.etcd-browser .etcd-preview {
  409. left: 100%;
  410. }
  411. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-preview {
  412. left: -1px;
  413. transition-property: all;
  414. transition-duration: 250ms;
  415. transition-timing-function: ease-in-out;
  416. }
  417. .etcd-container.etcd-browser.etcd-preview-hide .etcd-preview {
  418. left: 100%;
  419. transition-property: all;
  420. transition-duration: 250ms;
  421. transition-timing-function: ease-in-out;
  422. }
  423. }
  424. /* Double Column Positioning */
  425. @media (min-width: 700px) {
  426. .etcd-container.etcd-browser .etcd-list {
  427. width: 50%;
  428. }
  429. .etcd-container.etcd-browser .etcd-preview {
  430. left: 50%;
  431. width: 50%;
  432. }
  433. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-preview {
  434. left: 50%; /* does nothing */
  435. }
  436. .etcd-container.etcd-browser.etcd-preview-reveal .etcd-preview .etcd-empty {
  437. display: none;
  438. }
  439. .etcd-container.etcd-browser.etcd-preview-hide .etcd-preview {
  440. left: 50%; /* does nothing */
  441. }
  442. .etcd-container.etcd-browser.etcd-preview-hide .etcd-preview .etcd-empty {
  443. display: block;
  444. }
  445. .etcd-container.etcd-browser.etcd-preview-hide .etcd-preview pre, .etcd-container.etcd-browser.etcd-preview-hide .etcd-preview textarea {
  446. display: none;
  447. }
  448. }
  449. .etcd-container.etcd-stats {
  450. }
  451. .etcd-container.etcd-stats h2 {
  452. margin-top: -7px;
  453. }
  454. .etcd-format-selector {
  455. position: absolute;
  456. top: 12px;
  457. right: 16px;
  458. z-index: 999;
  459. }
  460. .etcd-format-selector .etcd-selector-item {
  461. display: inline-block;
  462. height: 12px;
  463. width: 12px;
  464. padding: 8px 4px;
  465. }
  466. .etcd-format-selector .etcd-selector-item:hover {
  467. cursor: pointer;
  468. }
  469. .etcd-format-selector .etcd-selector-item svg {
  470. fill: #333;
  471. }
  472. .etcd-container.etcd-stats .etcd-graph {
  473. box-sizing: border-box;
  474. -moz-box-sizing: border-box;
  475. position: absolute;
  476. top: 0px;
  477. bottom: 0px;
  478. left: 0px;
  479. right: 0px;
  480. padding: 20px;
  481. }
  482. .etcd-container.etcd-stats .etcd-graph .etcd-graph-container {
  483. position: absolute;
  484. top: 60px;
  485. bottom: 20px;
  486. left: 20px;
  487. right: 20px;
  488. box-sizing: border-box;
  489. -moz-box-sizing: border-box;
  490. }
  491. .etcd-container.etcd-stats table .etcd-latency {
  492. width: 50%;
  493. }
  494. .etcd-container.etcd-stats .etcd-list {
  495. position: absolute;
  496. left: 100%;
  497. min-height: 100%;
  498. overflow-y: auto;
  499. overflow-x: hidden;
  500. top: 0px;
  501. box-sizing: border-box;
  502. -moz-box-sizing: border-box;
  503. background-color: #fff;
  504. width: 100%;
  505. border-left: 1px solid #ddd;
  506. }
  507. .etcd-container.etcd-stats .etcd-list .etcd-square {
  508. height: 10px;
  509. width: 10px;
  510. display: inline-block;
  511. margin-right: 5px;
  512. }
  513. .etcd-container.etcd-stats .etcd-list .etcd-square-red {
  514. background-color: #c40022;
  515. }
  516. .etcd-container.etcd-stats .etcd-list .etcd-square-orange {
  517. background-color: #FFC000;
  518. }
  519. .etcd-container.etcd-stats .etcd-list .etcd-square-green {
  520. background-color: #00DB24;
  521. }
  522. .etcd-container.etcd-stats .etcd-list .etcd-latency-value {
  523. display: inline-block;
  524. }
  525. /* Single Column Positioning */
  526. @media (max-width: 700px) {
  527. .etcd-container.etcd-stats .etcd-list {
  528. width: 100%;
  529. left: 100%;
  530. }
  531. .etcd-container.etcd-stats .etcd-graph {
  532. left: 0%;
  533. }
  534. .etcd-container.etcd-stats.etcd-table-reveal .etcd-graph {
  535. left: -100%;
  536. transition-property: all;
  537. transition-duration: 250ms;
  538. transition-timing-function: ease-in-out;
  539. }
  540. .etcd-container.etcd-stats.etcd-table-hide .etcd-graph {
  541. left: 0%;
  542. transition-property: all;
  543. transition-duration: 250ms;
  544. transition-timing-function: ease-in-out;
  545. }
  546. .etcd-container.etcd-stats.etcd-table-hide .etcd-format-selector .etcd-selector-graph svg * {
  547. fill: #428bca;
  548. }
  549. .etcd-container.etcd-stats.etcd-table-hide .etcd-list {
  550. left: 100%;
  551. transition-property: all;
  552. transition-duration: 250ms;
  553. transition-timing-function: ease-in-out;
  554. }
  555. .etcd-container.etcd-stats.etcd-table-reveal .etcd-list {
  556. left: 0%;
  557. transition-property: all;
  558. transition-duration: 250ms;
  559. transition-timing-function: ease-in-out;
  560. }
  561. .etcd-container.etcd-stats.etcd-table-reveal .etcd-format-selector .etcd-selector-table svg * {
  562. fill: #428bca;
  563. }
  564. }
  565. /* Double Column Positioning */
  566. @media (min-width: 700px) {
  567. .etcd-container.etcd-stats .etcd-list {
  568. width: 50%;
  569. left: 50%;
  570. }
  571. .etcd-container.etcd-stats .etcd-graph {
  572. left: 0%;
  573. width: 50%;
  574. }
  575. .etcd-container.etcd-stats .etcd-format-selector {
  576. display: none;
  577. }
  578. }