sami.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. html, body, #content {
  2. height: 100%;
  3. }
  4. /* Site menu */
  5. #site-nav.navbar-default {
  6. margin: 0;
  7. border-radius: 0;
  8. border-bottom: 1px solid #ccc;
  9. background-color: #EDF3FE;
  10. background-image: none;
  11. }
  12. #site-nav.navbar-default .navbar-brand,
  13. #site-nav.navbar-default .navbar-nav > li > a {
  14. color: #000;
  15. }
  16. #site-nav.navbar-default .navbar-nav > li > a:hover {
  17. text-decoration: underline;
  18. }
  19. #navbar-elements {
  20. float: right;
  21. }
  22. @media (max-width: 768px) {
  23. #navbar-elements {
  24. float: none !important;
  25. }
  26. }
  27. /* Namespace breadcrumbs */
  28. .namespace-breadcrumbs .breadcrumb {
  29. margin: 0 0 12px;
  30. border-radius: 0 0 4px 4px;
  31. padding-left: 35px;
  32. }
  33. .namespace-breadcrumbs .breadcrumb > li + li:before {
  34. content: "";
  35. }
  36. .namespace-breadcrumbs .breadcrumb > .backslash {
  37. color: #ccc;
  38. }
  39. /* Site columns */
  40. #right-column {
  41. margin-left: 20%;
  42. }
  43. #page-content {
  44. padding: 0 30px;
  45. }
  46. #left-column {
  47. width: 20%;
  48. position: fixed;
  49. height: 100%;
  50. border-right: 1px solid #ccc;
  51. line-height: 18px;
  52. font-size: 13px;
  53. display: flex;
  54. flex-flow: column;
  55. }
  56. @media (max-width: 991px) {
  57. #left-column {
  58. display: none;
  59. }
  60. #right-column {
  61. width: 100%;
  62. margin-left: 0;
  63. }
  64. }
  65. /* API Tree */
  66. #api-tree {
  67. background: linear-gradient(
  68. to bottom,
  69. #FFF,
  70. #FFF 50%,
  71. #EDF3FE 50%,
  72. #EDF3FE
  73. );
  74. background-size: 100% 56px;
  75. overflow: auto;
  76. height: 100%;
  77. background-attachment: local;
  78. }
  79. #api-tree ul {
  80. list-style-type: none;
  81. margin: 0;
  82. padding: 0;
  83. }
  84. #api-tree ul li {
  85. padding: 0;
  86. margin: 0;
  87. }
  88. /* Prevents the menu from jittering on lad */
  89. #api-tree .glyphicon-play {
  90. width: 26px;
  91. }
  92. #api-tree ul li .hd {
  93. padding: 5px;
  94. }
  95. #api-tree li .hd:nth-child(even) {
  96. background-color: #EDF3FE;
  97. }
  98. #api-tree ul li.opened > .hd span {
  99. -webkit-transform: rotate(90deg);
  100. -moz-transform: rotate(90deg);
  101. -o-transform: rotate(90deg);
  102. -ms-transform: rotate(90deg);
  103. transform: rotate(90deg);
  104. }
  105. #api-tree .bd {
  106. display: none;
  107. }
  108. #api-tree li.opened > .bd {
  109. display: block;
  110. }
  111. #api-tree li .hd:hover {
  112. background-color: #eee;
  113. }
  114. #api-tree li.active > .hd {
  115. background-color: #3875D7;
  116. }
  117. #api-tree li.active > .hd a {
  118. color: #eee;
  119. font-weight: bold;
  120. }
  121. #api-tree a {
  122. color: #222;
  123. }
  124. #api-tree div.leaf a {
  125. margin-left: 20px;
  126. }
  127. #api-tree .hd span {
  128. padding: 2px 8px;
  129. font-size: 10px;
  130. line-height: 85%;
  131. }
  132. /* Control panel, search form, version drop-down */
  133. #control-panel {
  134. background: #e8e8e8;
  135. border-bottom: 1px solid #666;
  136. padding: 4px;
  137. }
  138. #control-panel form {
  139. margin: 4px 4px 5px 4px;
  140. }
  141. #search-form {
  142. position: relative;
  143. }
  144. #search-form input {
  145. width: 100%;
  146. padding-left: 28px;
  147. }
  148. #search-form span.glyphicon-search {
  149. position: absolute;
  150. left: 9px;
  151. top: 9px;
  152. font-size: 14px;
  153. z-index: 2;
  154. }
  155. /* Typeahead */
  156. .twitter-typeahead {
  157. width: 100%;
  158. z-index: 1;
  159. }
  160. .tt-dropdown-menu {
  161. overflow: auto;
  162. max-height: 260px;
  163. margin-top: 9px;
  164. background-color: #fff;
  165. border: 1px solid #ccc;
  166. border-radius: 8px;
  167. box-shadow: 0 5px 10px rgba(0,0,0,.2);
  168. padding: 8px;
  169. }
  170. .tt-dropdown-menu p {
  171. margin: 0;
  172. padding: 0;
  173. }
  174. .tt-suggestion {
  175. padding: 8px;
  176. border-bottom: 1px solid #ccc;
  177. font-size: 1.1em;
  178. }
  179. .tt-cursor {
  180. background-color: #3875D7;
  181. color: #fff;
  182. }
  183. /** General typography **/
  184. .navbar {
  185. border-bottom: 0;
  186. }
  187. .page-header {
  188. margin: 0 0 20px;
  189. }
  190. abbr[title], abbr[data-original-title], abbr {
  191. border-bottom: none;
  192. cursor: pointer;
  193. }
  194. a abbr {
  195. cursor: pointer;
  196. }
  197. .method-description table, .description table {
  198. border: solid 1px #ccc;
  199. padding: 1em;
  200. margin: 1em;
  201. }
  202. .method-description td, .method-description th,
  203. .description td, .description th {
  204. padding: 0.75em 1.25em;
  205. }
  206. .method-description tbody tr:nth-child(even),
  207. .description tbody tr:nth-child(even) {
  208. background: #edf3fe;
  209. }
  210. .method-description tbody tr:nth-child(odd),
  211. .description tbody tr:nth-child(odd) {
  212. background: #fff;
  213. }
  214. .method-description thead tr,
  215. .description thead tr {
  216. background: #edf3fe;
  217. }
  218. /** General Sami styling **/
  219. .underlined > .row {
  220. padding: 8px 0;
  221. border-bottom: 1px solid #ddd;
  222. }
  223. #footer {
  224. text-align: right;
  225. margin: 30px;
  226. font-size: 11px;
  227. }
  228. .description {
  229. margin: 10px 0;
  230. padding: 10px;
  231. background-color: #efefef;
  232. }
  233. .description p {
  234. padding: 0;
  235. margin: 8px 0;
  236. }
  237. .method-description {
  238. margin: 0 0 24px 0;
  239. }
  240. .details {
  241. padding-left: 30px;
  242. }
  243. #method-details .method-item {
  244. margin-bottom: 30px;
  245. }
  246. .method-item h3,
  247. .method-item h3 code {
  248. background-color: #eee;
  249. }
  250. .method-item h3 {
  251. padding: 4px;
  252. margin-bottom: 20px;
  253. font-size: 20px;
  254. }
  255. .location {
  256. font-size: 11px;
  257. float: right;
  258. font-style: italic;
  259. }
  260. .namespace-list a {
  261. padding: 3px 8px;
  262. margin: 0 5px 5px 0;
  263. border: 1px solid #ddd;
  264. background-color: #f9f9f9;
  265. display: inline-block;
  266. border-radius: 4px;
  267. }
  268. .no-description {
  269. color: #ccc;
  270. font-size: 90%;
  271. }
  272. /* Namespaces page */
  273. .namespaces {
  274. clear: both;
  275. }
  276. .namespaces .namespace-container {
  277. float: left;
  278. margin: 0 14px 14px 0;
  279. min-width: 30%;
  280. }
  281. .namespaces h2 {
  282. margin: 0 0 20px 0;
  283. }
  284. @media (max-width: 991px) {
  285. .namespaces .namespace-container {
  286. margin-right: 0;
  287. width: 100%;
  288. }
  289. }
  290. /** Code and pre tags **/
  291. tt, code, pre {
  292. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  293. }
  294. code {
  295. padding: 0;
  296. padding-top: 0.2em;
  297. padding-bottom: 0.2em;
  298. margin: 0;
  299. font-size: 85%;
  300. background-color: rgba(0,0,0,0.04);
  301. border-radius: 3px;
  302. color: #333;
  303. }
  304. pre {
  305. padding: 16px;
  306. overflow: auto;
  307. font-size: 85%;
  308. line-height: 1.45;
  309. background-color: #f7f7f7;
  310. border-radius: 3px;
  311. }
  312. h2 {
  313. background-color: #EDF3FE;
  314. padding: 4px 4px 4px 8px;
  315. font-size: 25px;
  316. margin: 20px 0;
  317. }
  318. /** Doc index **/
  319. dt {
  320. font-weight: normal;
  321. }
  322. dd {
  323. margin-left: 30px;
  324. line-height: 1.5em;
  325. }
  326. #doc-index h2 {
  327. font-weight: bold;
  328. margin: 30px 0;
  329. }
  330. #doc-index .pagination {
  331. margin: 0;
  332. }
  333. /* Search page */
  334. .search-results {
  335. list-style-type: none;
  336. padding: 0;
  337. margin: 0;
  338. }
  339. .search-results li {
  340. list-style-type: none;
  341. margin: 0;
  342. padding: 14px 0;
  343. border-bottom: 1px solid #ccc;
  344. }
  345. .search-results h2 {
  346. background: none;
  347. margin: 0;
  348. padding: 0;
  349. font-size: 18px;
  350. }
  351. .search-results h2 a {
  352. float: left;
  353. display: block;
  354. margin: 0 0 4px 0;
  355. }
  356. .search-results .search-type {
  357. float: right;
  358. margin: 0 0 4px 0;
  359. }
  360. .search-results .search-from {
  361. margin: 0 0 12px 0;
  362. font-size: 12px;
  363. color: #999;
  364. }
  365. .search-results .search-from a {
  366. font-style: italic;
  367. }
  368. .search-results .search-description {
  369. margin: 8px 0 0 30px;
  370. }