etcd-widgets.css 15 KB

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