index.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. /* Private CSS variables */
  6. :root {
  7. --jp-private-launcher-top-margin: 16px;
  8. --jp-private-launcher-side-margin: 32px;
  9. --jp-private-launcher-card-size: 100px;
  10. --jp-private-launcher-card-label-height: 25px;
  11. --jp-private-launcher-card-icon-height: 75px;
  12. --jp-private-launcher-large-icon-size: 52px;
  13. --jp-private-launcher-small-icon-size: 32px;
  14. }
  15. /* Launcher */
  16. .jp-Launcher {
  17. margin: 0;
  18. padding: 0;
  19. outline: none;
  20. background: var(--jp-layout-color0);
  21. box-sizing: border-box;
  22. }
  23. .jp-Launcher::before {
  24. content: '';
  25. display: block;
  26. height: var(--jp-toolbar-micro-height);
  27. width: 100%;
  28. background: var(--jp-toolbar-background);
  29. border-bottom: 1px solid var(--jp-toolbar-border-color);
  30. box-shadow: var(--jp-toolbar-box-shadow);
  31. z-index: 1;
  32. }
  33. .jp-Launcher-body {
  34. width: 100%;
  35. height: 100%;
  36. box-sizing: border-box;
  37. overflow: auto;
  38. display: flex;
  39. justify-content: center;
  40. }
  41. .jp-Launcher-cwd h3 {
  42. font-size: var(--jp-ui-font-size2);
  43. font-weight: normal;
  44. color: var(--jp-ui-font-color1);
  45. margin: 1em 0px;
  46. }
  47. .jp-Launcher-content {
  48. width: 85%;
  49. height: 100%;
  50. margin-top: var(--jp-private-launcher-top-margin);
  51. margin-left: var(--jp-private-launcher-side-margin);
  52. margin-right: var(--jp-private-launcher-side-margin);
  53. box-sizing: border-box;
  54. }
  55. /* Launcher section */
  56. .jp-Launcher-section {
  57. width: 100%;
  58. box-sizing: border-box;
  59. padding-bottom: 12px;
  60. }
  61. .jp-Launcher-sectionHeader {
  62. display: flex;
  63. flex-direction: row;
  64. align-items: center;
  65. box-sizing: border-box;
  66. /* This is custom tuned to get the section header to align with the cards */
  67. margin-left: 5px;
  68. border-bottom: 1px solid var(--jp-border-color2);
  69. padding-bottom: 0px;
  70. margin-bottom: 8px;
  71. }
  72. .jp-Launcher-sectionHeader .jp-Launcher-sectionIcon {
  73. box-sizing: border-box;
  74. margin-right: 12px;
  75. height: var(--jp-private-launcher-small-icon-size);
  76. width: var(--jp-private-launcher-small-icon-size);
  77. background-size: var(--jp-private-launcher-small-icon-size) var(--jp-private-launcher-small-icon-size);
  78. }
  79. .jp-Launcher-sectionTitle {
  80. font-size: var(--jp-ui-font-size2);
  81. font-weight: normal;
  82. color: var(--jp-ui-font-color1);
  83. box-sizing: border-box;
  84. }
  85. /* Launcher cards */
  86. .jp-Launcher-cardContainer {
  87. margin: 0;
  88. padding: 0;
  89. box-sizing: border-box;
  90. display: flex;
  91. flex-direction: row;
  92. flex-wrap: wrap;
  93. }
  94. .jp-LauncherCard {
  95. display: flex;
  96. flex-direction: column;
  97. cursor: pointer;
  98. width: var(--jp-private-launcher-card-size);
  99. height: var(--jp-private-launcher-card-size);
  100. margin: 8px;
  101. padding: 0px;
  102. border: 1px solid var(--jp-border-color1);
  103. background: var(--jp-layout-color1);
  104. box-shadow: 0px 1px 1px 1px rgba(0,0,0,.08);
  105. transition: .2s box-shadow;
  106. }
  107. .jp-LauncherCard:hover {
  108. box-shadow: 0px 2px 4px 1px rgba(0,0,0,.20);
  109. }
  110. .jp-LauncherCard-icon {
  111. width: 100%;
  112. height: var(--jp-private-launcher-card-icon-height);
  113. box-sizing: border-box;
  114. margin: 0px;
  115. padding: 0px;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. }
  120. .jp-LauncherCard-noKernelIcon {
  121. font-weight: normal;
  122. font-size: var(--jp-private-launcher-large-icon-size);
  123. }
  124. .jp-LauncherCard[data-category="Notebook"] .jp-LauncherCard-noKernelIcon {
  125. /* This color is copied from the notebook icon. */
  126. color: #EF6C00;
  127. }
  128. .jp-LauncherCard[data-category="Console"] .jp-LauncherCard-noKernelIcon {
  129. /* This color is copied from the console icon. */
  130. color: #0288D1;
  131. }
  132. .jp-LauncherCard-label {
  133. width: 100%;
  134. height: var(--jp-private-launcher-card-label-height);
  135. line-height: var(--jp-private-launcher-card-label-height);
  136. font-size: var(--jp-ui-font-size1);
  137. color: var(--jp-ui-font-color1);
  138. box-sizing: border-box;
  139. overflow: hidden;
  140. white-space: nowrap;
  141. text-overflow: ellipsis;
  142. text-align: center;
  143. }
  144. /* Icons, kernel icons */
  145. .jp-Launcher-icon {
  146. margin: 0px;
  147. padding: 0px;
  148. height: var(--jp-private-launcher-large-icon-size);
  149. width: var(--jp-private-launcher-large-icon-size);
  150. background-size: var(--jp-private-launcher-large-icon-size) var(--jp-private-launcher-large-icon-size);
  151. background-repeat: no-repeat;
  152. cursor: pointer;
  153. }
  154. .jp-Launcher-kernelIcon {
  155. width: var(--jp-private-launcher-large-icon-size);
  156. height: var(--jp-private-launcher-large-icon-size);
  157. margin: 0px;
  158. padding: 0px;
  159. }