app.less 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. /*
  2. app.less - Embedthis Application Style Sheet
  3. */
  4. html, body {
  5. font-size: @font-size;
  6. height: 100%;
  7. }
  8. body {
  9. margin: 0;
  10. padding: 0;
  11. font-family: @font;
  12. min-width: @body-min-width;
  13. text-rendering: optimizeLegibility;
  14. transition: none !important;
  15. &.show-sidebar {
  16. margin-left: 240px;
  17. }
  18. }
  19. body.version {
  20. background: none;
  21. display: inline;
  22. border: none;
  23. margin: 0;
  24. font-size: 0.75rem;
  25. color: white;
  26. opacity: 0.75;
  27. }
  28. .masthead {
  29. position: fixed;
  30. height: @masthead-height;
  31. width: 100%;
  32. z-index: 100;
  33. background-image: linear-gradient(@body-gradient);
  34. border-bottom: 5px solid white;
  35. .ui.inverted.menu {
  36. background-color: @gray-dark;
  37. border-bottom: none;
  38. margin: 0;
  39. .right {
  40. padding-right: 10px;
  41. a.item {
  42. color: @white;
  43. opacity: @masthead-menu-opacity;
  44. padding: 0.6em 0.4em;
  45. &:hover {
  46. background: fade(@white, 20%);
  47. }
  48. &.active:after {
  49. position: absolute;
  50. background: @masthead-active;
  51. bottom: 0;
  52. left: 0;
  53. width: 100%;
  54. height: 4px;
  55. content: "";
  56. }
  57. }
  58. span.desktop-only {
  59. display: flex;
  60. }
  61. }
  62. }
  63. .breadcrumb {
  64. position: absolute;
  65. top: 46px;
  66. margin: 6px 0 0 35px;
  67. .section {
  68. padding-bottom: .5rem;
  69. }
  70. .active.section {
  71. color: fade(@white, 100%);
  72. font-weight: normal;
  73. }
  74. .divider {
  75. color: @white;
  76. }
  77. a {
  78. color: fade(@white, 70%);
  79. }
  80. a:hover,
  81. a:hover.active.section {
  82. color: @white;
  83. }
  84. }
  85. iframe.version {
  86. border: none;
  87. background: none;
  88. height: 2rem;
  89. width: 3rem;
  90. position: fixed;
  91. top: 50px;
  92. right: 1px;
  93. }
  94. }
  95. .sidebar {
  96. position: fixed;
  97. left: 0;
  98. padding-top: 35px;
  99. width: 240px;
  100. height: 100%;
  101. overflow-y: auto;
  102. overflow-x: hidden;
  103. visibility: visible;
  104. .ui.vertical.menu {
  105. background: @gray-dark;
  106. .logo {
  107. display: inline-block;
  108. font-family: @font-logo;
  109. font-size: @font-logo-size;
  110. color: @white;
  111. }
  112. .menu .item {
  113. font-size: 1.0rem !important;
  114. }
  115. .menu .header.item {
  116. position: relative;
  117. display: inline-block;
  118. width: 100%;
  119. padding: 7px 21px 7px 14px;
  120. font-weight: bold;
  121. font-size: 1.05em;
  122. background-color: transparent;
  123. &:hover {
  124. background: fade(@white, 10%);
  125. }
  126. }
  127. a.item.active {
  128. margin-right: 18px;
  129. border-right: 18px solid @body-highlight;
  130. }
  131. }
  132. &::-webkit-scrollbar {
  133. width: 0px !important;
  134. }
  135. }
  136. .ui.sidebar-launch.button {
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. width: 40px;
  141. padding: 0.8em 0.6em 0.5em 1.1em;
  142. background-color: #333;
  143. border-radius: 0;
  144. color: white;
  145. float: left;
  146. z-index: 100;
  147. }
  148. .page {
  149. padding: 1rem 3.0rem;
  150. }
  151. .ui.page.grid {
  152. padding: 0 3.0rem;
  153. .segment {
  154. padding-top: 1.0rem;
  155. padding-bottom: 3.5rem;
  156. }
  157. }
  158. body > .content {
  159. min-height: 95%;
  160. text-decoration: none;
  161. background: @white;
  162. padding: 100px 2rem 2rem 2rem;
  163. .floated {
  164. overflow: auto;
  165. }
  166. }
  167. .ui.segment.terms {
  168. margin: 0;
  169. padding: 10px 0 20px 0;
  170. height: @terms-height;
  171. color: @gray-light;
  172. background: rgba(256, 256, 256, 0.75);
  173. font-size: 0.75rem;
  174. a:link, a:visited {
  175. color: @gray-lighter;
  176. }
  177. a:hover {
  178. color: @white;
  179. }
  180. }
  181. /////////// Page styles
  182. /////////// Element styles
  183. table.directive {
  184. width: 100%;
  185. background: @white;
  186. margin: 1em 0em;
  187. border: 1px solid @gray-lighter;
  188. border-radius: 0.25em;
  189. color: rgba(0, 0, 0, 0.8);
  190. border-collapse: separate;
  191. border-spacing: 0px;
  192. td {
  193. border-bottom: 1px solid lighten(@gray-lighter, 12%);
  194. padding: 0.7em 0.8em;
  195. vertical-align: middle;
  196. }
  197. }
  198. a {
  199. color: @link-color;
  200. text-decoration: none;
  201. transition: color 0.3s ease;
  202. }
  203. a:hover {
  204. color: @link-hover-color;
  205. text-decoration: none;
  206. }
  207. h1,
  208. h2,
  209. h3,
  210. h4 {
  211. font-weight: normal;
  212. }
  213. h3 + ul {
  214. margin-top: -0.85rem;
  215. }
  216. li {
  217. padding-bottom: 0.75em;
  218. }
  219. em {
  220. padding: 3px;
  221. font-family: monospace;
  222. font-style: normal;
  223. background-color: #F2F2FF;
  224. color: #404080;
  225. border-radius: 4px;
  226. white-space: nowrap;
  227. }
  228. code {
  229. display: block;
  230. white-space: pre-wrap;
  231. margin: 1rem 0;
  232. padding: 1rem 1rem;
  233. font-family: monospace;
  234. font-style: normal;
  235. border: 1px solid #C2C2C2;
  236. border-radius: 0.3rem;
  237. line-height: 1.25em;
  238. background-color: #EEE;
  239. color: #333;
  240. &.inverted {
  241. background: @inverted-code-background;
  242. color: @inverted-code-color;
  243. b {
  244. color: @inverted-code-bold;
  245. font-weight: normal;
  246. }
  247. }
  248. }
  249. pre.code {
  250. display: block;
  251. white-space: pre-wrap;
  252. margin: 1rem 0;
  253. padding: 1rem 1rem;
  254. font-family: monospace;
  255. font-style: normal;
  256. border: 1px solid #C2C2C2;
  257. border-radius: 0.3rem;
  258. line-height: 1.25em;
  259. background-color: #EEE;
  260. color: #333;
  261. background: @inverted-code-background;
  262. color: @inverted-code-color;
  263. b {
  264. color: @inverted-code-bold;
  265. font-weight: normal;
  266. }
  267. }
  268. .centered {
  269. margin-left: auto;
  270. margin-right: auto;
  271. display: block;
  272. }
  273. .ui.code.inverted.code.segment {
  274. background: @inverted-code-background;
  275. color: @inverted-code-color;
  276. b {
  277. color: @inverted-code-bold;
  278. font-weight: normal;
  279. }
  280. }
  281. .ui.code.segment {
  282. background: @gray-lightest;
  283. color: @gray-dark;
  284. border: 1px solid @gray-lighter;
  285. box-shadow: 2px 2px 2px lighten(@gray-lighter, 15%);
  286. line-height: 1.25em;
  287. }
  288. img.screen {
  289. margin: 8px 0 4px 0;
  290. border: 1px solid @gray-light;
  291. border-radius: 7px;
  292. box-shadow: 9px 9px 9px @gray-light;
  293. }
  294. img.bare-screen {
  295. margin: 8px 0 10px 0;
  296. border: 1px solid @gray-light;
  297. border-radius: 7px;
  298. box-shadow: 9px 9px 9px @gray-light;
  299. }
  300. img.shadow {
  301. border-radius: 7px;
  302. box-shadow: 5px 5px 9px @gray-light;
  303. }
  304. div.questions, div.answers {
  305. ul {
  306. color: #31699C;
  307. margin: 0;
  308. li {
  309. padding-bottom: 4px;
  310. }
  311. }
  312. h2, h3 {
  313. margin: 12px 0 8px 0;
  314. }
  315. .question {
  316. font-weight: bold;
  317. font-size: 1.1em;
  318. margin: 16px 0 10px 0;
  319. }
  320. }
  321. // Desktop
  322. @media (min-width: @mobile-break) {
  323. .mobile-only {
  324. display:none !important;
  325. }
  326. .desktop-only {
  327. // display:block !important;
  328. }
  329. }
  330. // Mobile
  331. @media (max-width: @mobile-break) {
  332. .mobile-only {
  333. // display:block !important;
  334. }
  335. .desktop-only {
  336. display:none !important;
  337. }
  338. }