docs.scss 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. @import "variables.scss";
  2. @import "mixins.scss";
  3. // Clearfix mixin for docs
  4. //
  5. // Documentation
  6. // --------------------------------------------------
  7. html,
  8. body {
  9. width: 100%;
  10. height: 100%;
  11. }
  12. body {
  13. position: relative !important; // Overrides the fixed positioning of body in Ratchet
  14. font: 400 14px/1.5 "Open Sans", sans-serif;
  15. color: #333;
  16. -webkit-text-size-adjust: 100%;
  17. background-color: #fff;
  18. -webkit-font-smoothing: antialiased; // Fix for webkit rendering
  19. }
  20. // Typography
  21. //
  22. // Gets scoped to a common class in the docs so we don't collide with any of
  23. // Ratchet's styles.
  24. .docs-content {
  25. font-size: 14px;
  26. @media screen and (min-width: 768px) {
  27. font-size: 18px;
  28. }
  29. h1, h2, h3, h4, h5, h6 {
  30. font-weight: 400;
  31. color: #222;
  32. }
  33. h2 {
  34. margin-bottom: .25em;
  35. font-size: 2em;
  36. }
  37. h3 {
  38. margin-bottom: .5em;
  39. font-size: 1.25em;
  40. }
  41. p {
  42. margin-bottom: 1.5em;
  43. font-size: 1em;
  44. color: #555;
  45. }
  46. .lead {
  47. font-size: 1.1em;
  48. color: #777;
  49. }
  50. }
  51. // Jumbotron
  52. // --------------------------------------------------
  53. .docs-header,
  54. .docs-sub-header {
  55. position: relative;
  56. @include directional-gradient(#0a1855, #da0024)
  57. }
  58. .docs-header {
  59. height: 100vh;
  60. min-height: 750px;
  61. // Ad on the homepage
  62. .carbonad {
  63. position: relative !important;
  64. margin-top: 0 !important;
  65. @include animation-name(fadeintext);
  66. @include animation-duration(2s);
  67. }
  68. .version {
  69. margin-top: 15px;
  70. color: rgba(255,255,255,.5);
  71. text-align: center;
  72. }
  73. }
  74. .docs-header-bottom {
  75. position: absolute;
  76. right: 0;
  77. bottom: 0;
  78. left: 0;
  79. }
  80. // Desktop jumbotron
  81. @media screen and (min-width: 768px) {
  82. .docs-header {
  83. min-height: 870px;
  84. // Ads on the homepage
  85. .carbonad {
  86. left: 50% !important;
  87. width: 330px !important;
  88. margin-bottom: 60px !important;
  89. margin-left: -165px !important;
  90. }
  91. }
  92. // Positon ads correctly on sub pages
  93. .docs-sub-header .carbonad {
  94. position: absolute !important;
  95. top: 50% !important;
  96. right: 15px !important;
  97. margin-top: 0 !important;
  98. @include transform(translateY(-50%) !important);
  99. }
  100. }
  101. // Masthead and nav
  102. .docs-masthead {
  103. position: relative;
  104. padding-top: 15px;
  105. padding-bottom: 15px;
  106. border-bottom: 1px solid rgba(255,255,255,.1);
  107. }
  108. .docs-title {
  109. position: absolute;
  110. left: 50%;
  111. z-index: 20;
  112. margin-bottom: 0;
  113. font-size: 22px;
  114. font-weight: 400;
  115. @include transform(translateX(-50%));
  116. }
  117. .docs-nav {
  118. .docs-nav-trigger {
  119. color: #fff;
  120. opacity: .7;
  121. &.active {
  122. opacity: 1;
  123. }
  124. }
  125. .docs-nav-group {
  126. position: absolute;
  127. top: 40px;
  128. right: 0;
  129. left: 0;
  130. z-index: 20;
  131. height: 0;
  132. overflow: hidden;
  133. background-color: rgba(0,0,0,.9);
  134. opacity: 0;
  135. &.active {
  136. height: auto;
  137. opacity: 1;
  138. }
  139. }
  140. .docs-nav-item {
  141. display: block;
  142. padding: 20px 15px;
  143. font-size: 22px;
  144. }
  145. }
  146. .docs-jump-menu,
  147. .docs-component-group {
  148. display: none;
  149. }
  150. .docs-title a,
  151. .docs-nav-item {
  152. color: #fff;
  153. @include transition(opacity .2s linear);
  154. &:active,
  155. &:focus {
  156. color: #fff;
  157. opacity: .5;
  158. }
  159. }
  160. // Desktop: Masthead and nav
  161. @media screen and (min-width: 768px) {
  162. .docs-title {
  163. position: static;
  164. float: left;
  165. font-weight: 300;
  166. @include transform(translateX(0));
  167. }
  168. // Docs nav
  169. .docs-nav {
  170. float: right;
  171. .docs-nav-trigger {
  172. display: none;
  173. }
  174. .docs-nav-group {
  175. position: static;
  176. display: block;
  177. height: auto;
  178. background-color: transparent;
  179. opacity: 1;
  180. }
  181. .docs-nav-item {
  182. position: relative;
  183. display: inline-block;
  184. padding: 0 15px;
  185. font-size: 14px;
  186. }
  187. }
  188. // Component jump menu
  189. .docs-jump-menu {
  190. position: absolute;
  191. left: 15px;
  192. display: block;
  193. color: #777;
  194. cursor: pointer;
  195. @include transition(opacity .2 linear);
  196. &:hover {
  197. color: $primary-color;
  198. }
  199. &:active {
  200. opacity: .5;
  201. }
  202. .icon-list {
  203. margin-right: 3px;
  204. font-size: 16px;
  205. }
  206. .icon-caret {
  207. position: relative;
  208. top: 4px;
  209. margin-left: -5px;
  210. }
  211. }
  212. .docs-component-group {
  213. position: absolute;
  214. top: 35px;
  215. left: 15px;
  216. padding-top: 10px;
  217. padding-bottom: 10px;
  218. background-color: #fff;
  219. background-clip: padding-box;
  220. border: 1px solid rgba(0,0,0,.2);
  221. border-radius: 3px;
  222. @include box-shadow(0 0 8px rgba(0,0,0,.05));
  223. &.active {
  224. display: block;
  225. }
  226. &:before,
  227. &:after {
  228. position: absolute;
  229. left: 30px;
  230. width: 0;
  231. height: 0;
  232. content: '';
  233. }
  234. &:before {
  235. top: -11px;
  236. margin-left: -11px;
  237. border-right: 11px solid transparent;
  238. border-bottom: 11px solid rgba(0,0,0,.3);
  239. border-left: 11px solid transparent;
  240. }
  241. &:after {
  242. top: -10px;
  243. margin-left: -10px;
  244. border-right: 10px solid transparent;
  245. border-bottom: 10px solid #fff;
  246. border-left: 10px solid transparent
  247. }
  248. .docs-component-item {
  249. display: block;
  250. padding: 10px 20px;
  251. color: #777;
  252. &:hover {
  253. color: #fff;
  254. background-color: $primary-color;
  255. }
  256. }
  257. }
  258. }
  259. // Main homepage header content
  260. // "Build mobile apps using simple..."
  261. .docs-header-content {
  262. position: relative;
  263. padding: 50px 10px;
  264. text-align: center;
  265. @include animation-name(fadeintext);
  266. @include animation-duration(2s);
  267. .btn {
  268. display: block;
  269. padding: 15px 60px 16px; // Creates a button that's 330px wide.
  270. margin-bottom: 0;
  271. font-size: 18px;
  272. color: #0a1855;
  273. background-color: #fff;
  274. border: 0;
  275. @include transition(all .2s linear);
  276. &:hover {
  277. background-color: #fff;
  278. @include box-shadow(0 0 50px rgba(255,255,255,.3));
  279. }
  280. &:active {
  281. opacity: .5;
  282. }
  283. }
  284. }
  285. .docs-subtitle {
  286. max-width: 750px;
  287. margin: 0 auto 20px;
  288. font-size: 28px;
  289. font-weight: 300;
  290. line-height: 38px;
  291. color: #fff;
  292. }
  293. // Desktop header content
  294. @media screen and (min-width: 768px) {
  295. .docs-header-content {
  296. top: 30%;
  297. @include transform(translateY(-50%));
  298. .btn {
  299. display: inline-block;
  300. }
  301. }
  302. .docs-subtitle {
  303. margin-bottom: 30px;
  304. font-size: 41px;
  305. line-height: 60px;
  306. }
  307. }
  308. // Ads
  309. .carbonad {
  310. width: 100% !important;
  311. height: auto !important;
  312. padding: 15px !important;
  313. font-size: 13px !important;
  314. line-height: 18px !important;
  315. background: transparent !important;
  316. border-top: 1px solid rgba(255,255,255,.1) !important;
  317. border-right: 0 !important;
  318. border-bottom: 0 !important;
  319. border-left: 0 !important;
  320. }
  321. .carbonad-img {
  322. margin: 0 !important;
  323. }
  324. .carbonad-text,
  325. .carbonad-tag {
  326. display: block !important;
  327. float: none !important;
  328. width: auto !important;
  329. height: auto !important;
  330. margin-left: 145px !important;
  331. color: rgba(255,255,255,.65) !important;
  332. font-family: "Open Sans", sans-serif !important;
  333. }
  334. .carbonad-text {
  335. padding-top: 0 !important;
  336. }
  337. .carbonad-tag {
  338. text-align: left !important;
  339. }
  340. .carbonad-text a,
  341. .carbonad-tag a {
  342. color: #fff !important;
  343. }
  344. .carbonad #azcarbon>img {
  345. display: none;
  346. }
  347. // Desktop styles for ads
  348. @media screen and (min-width: 768px) {
  349. .carbonad {
  350. width: 360px !important;
  351. border-right: 1px solid rgba(255,255,255,.1) !important;
  352. border-bottom: 1px solid rgba(255,255,255,.1) !important;
  353. border-left: 1px solid rgba(255,255,255,.1) !important;
  354. border-radius: 3px !important;
  355. }
  356. }
  357. // Subpage Header
  358. // --------------------------------------------------
  359. .docs-sub-content {
  360. position: relative;
  361. overflow: hidden;
  362. padding: 55px 15px 65px;
  363. color: #fff;
  364. text-align: center;
  365. .page-title,
  366. .page-description {
  367. margin-top: 0;
  368. margin-bottom: 0;
  369. font-weight: 300;
  370. }
  371. .page-title {
  372. margin-bottom: 5px;
  373. font-size: 40px;
  374. }
  375. .page-description {
  376. font-size: 24px;
  377. color: #fff;
  378. opacity: .7;
  379. }
  380. }
  381. // Desktop: Left align the text
  382. @media screen and (min-width: 768px) {
  383. .docs-sub-content {
  384. margin-right: 380px;
  385. text-align: left;
  386. }
  387. }
  388. // Content sections
  389. // --------------------------------------------------
  390. // Wrap each section of the docs
  391. .docs-section {
  392. padding-top: 50px;
  393. padding-bottom: 50px;
  394. border-bottom: 1px solid #ddd;
  395. }
  396. .docs-section:last-child {
  397. border-bottom: 0;
  398. }
  399. // Docs modules
  400. @media screen and (min-width: 768px) {
  401. .docs-module {
  402. margin-top: 35px;
  403. }
  404. }
  405. // Docs modules
  406. .docs-module {
  407. padding: 20px;
  408. margin-top: 20px;
  409. border: $border-default;
  410. border-radius: 3px;
  411. .btn-block {
  412. margin-bottom: 0;
  413. }
  414. }
  415. .version {
  416. margin-top: 10px;
  417. margin-bottom: 0;
  418. font-size: 90%;
  419. color: #777;
  420. }
  421. // Footer
  422. // --------------------------------------------------
  423. .docs-footer {
  424. border-top: 1px solid #ddd;
  425. padding: 30px 20px;
  426. margin-top: 50px;
  427. font-size: 14px;
  428. text-align: center;
  429. color: #777;
  430. .social {
  431. padding: 0 0 20px;
  432. margin: 0;
  433. list-style: none;
  434. li {
  435. display: inline-block;
  436. height: 20px;
  437. vertical-align: top;
  438. }
  439. .twitter-follow-button {
  440. margin-top: 5px;
  441. }
  442. }
  443. @media screen and (min-width: 768px) {
  444. // Remove the top margin on desktop
  445. .social .twitter-follow-button {
  446. margin-top: 0;
  447. }
  448. }
  449. }
  450. .docs-footer-text {
  451. margin-top: 0;
  452. margin-bottom: 0;
  453. }
  454. @media screen and (min-width: 768px) {
  455. .docs-footer-text {
  456. width: 550px;
  457. padding-left: 0;
  458. padding-right: 0;
  459. margin: 0 auto;
  460. }
  461. }
  462. .docs-footer-links {
  463. padding-left: 0;
  464. li {
  465. display: inline;
  466. padding-left: 3px;
  467. padding-right: 3px;
  468. }
  469. }
  470. // Overrides for the homepage's footer
  471. .docs-header .docs-footer {
  472. margin-top: 0;
  473. border-top: 1px solid rgba(255,255,255,.1);
  474. .docs-footer-text,
  475. .docs-footer-links {
  476. color: rgba(255,255,255,.5);
  477. a {
  478. color: rgba(255,255,255,.8);
  479. }
  480. }
  481. }
  482. // Style the GitHub buttons via CSS instead of inline attributes
  483. .github-btn {
  484. border: 0;
  485. overflow: hidden;
  486. }
  487. // Platform toggle
  488. // --------------------------------------------------
  489. .docs-component-toolbar {
  490. position: fixed;
  491. top: 0;
  492. bottom: auto;
  493. left: 0;
  494. right: 0;
  495. z-index: 20;
  496. height: 44px;
  497. padding-top: 8px;
  498. padding-bottom: 8px;
  499. background-color: #fff;
  500. border-bottom: 1px solid #ddd;
  501. -webkit-transition: -webkit-transform .5s;
  502. -moz-transition: -moz-transform .5s;
  503. transition: transform .5s;
  504. @include transform(translate3d(0, -55px, 0));
  505. &.visible {
  506. @include transform(translate3d(0, 0, 0));
  507. }
  508. .segmented-control {
  509. max-width: 300px;
  510. margin: 0 auto;
  511. .control-item {
  512. cursor: pointer;
  513. }
  514. }
  515. }
  516. // Example devices
  517. // --------------------------------------------------
  518. .docs-examples {
  519. margin-top: 30px;
  520. }
  521. .example-wrap {
  522. margin-bottom: 30px;
  523. .example {
  524. display: block;
  525. width: 100%;
  526. padding: 3px;
  527. overflow: hidden;
  528. border: $border-default;
  529. border-radius: 3px;
  530. }
  531. .example-title {
  532. margin-top: 10px;
  533. }
  534. img {
  535. display: block;
  536. width: 100%;
  537. height: auto;
  538. }
  539. }
  540. // Components
  541. // --------------------------------------------------
  542. code {
  543. padding: 2px 4px;
  544. font-size: 90%;
  545. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  546. background-color: #f9f9f9;
  547. border-radius: 3px;
  548. }
  549. .component {
  550. padding: 50px 15px;
  551. margin-left: -15px;
  552. margin-right: -15px;
  553. border-bottom: 1px solid #ddd;
  554. // Added to the last component so the footer
  555. // doesn't create a double border.
  556. &.no-border {
  557. border-bottom: 0;
  558. }
  559. }
  560. @media screen and (min-width: 768px) {
  561. .component {
  562. border-bottom: 0;
  563. }
  564. }
  565. .component-title {
  566. margin-bottom: 10px;
  567. font-size: 24px;
  568. line-height: 34px;
  569. }
  570. .component-description {
  571. margin-bottom: 15px;
  572. font-size: 16px;
  573. }
  574. .component-example {
  575. font-size: $font-size-default;
  576. font-family: $font-family-default;
  577. line-height: $line-height-default;
  578. }
  579. .component-example,
  580. .component-example .bar,
  581. .component-example .content {
  582. position: relative;
  583. }
  584. .component-example .bar {
  585. border-top: $border-default;
  586. border-bottom: $border-default;
  587. &.bar-header-secondary {
  588. top: 0 !important;
  589. border-top: 0;
  590. }
  591. }
  592. .component-example > .content-padded {
  593. margin: 15px;
  594. }
  595. .component-example > .card {
  596. margin: 15px 0 0;
  597. .control-content {
  598. padding: 15px;
  599. }
  600. }
  601. .component-example > .btn,
  602. .component-example > .toggle {
  603. margin-bottom: 10px;
  604. }
  605. .component-example .slider {
  606. height: 300px;
  607. .slide {
  608. height: 300px;
  609. }
  610. }
  611. .component-example .slide img {
  612. width: 100%;
  613. }
  614. .component-example .slide-text {
  615. position: absolute;
  616. top: 45%;
  617. left: 0;
  618. width: 100%;
  619. text-align: center;
  620. font-size: 24px;
  621. text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  622. color: #fff;
  623. }
  624. .component-example-fullbleed,
  625. .highlight {
  626. margin-left: -15px;
  627. margin-right: -15px;
  628. }
  629. .bar-nav ~ .content {
  630. padding: 0;
  631. }
  632. .highlight pre {
  633. padding: 15px;
  634. margin-top: 15px;
  635. overflow-x: auto;
  636. font-size: 13px;
  637. color: #777;
  638. background-color: #fafafa;
  639. border-top: 1px solid #ddd;
  640. border-bottom: 1px solid #ddd;
  641. white-space: pre;
  642. word-wrap: normal;
  643. }
  644. .highlight pre code {
  645. padding: 0;
  646. }
  647. @media screen and (min-width: 768px) {
  648. .component,
  649. .component-example-fullbleed,
  650. .highlight {
  651. margin-left: 0;
  652. margin-right: 0;
  653. }
  654. .component {
  655. padding-left: 0;
  656. padding-right: 0;
  657. opacity: .3;
  658. @include transition(opacity .2s ease-in-out);
  659. &.active {
  660. opacity: 1;
  661. }
  662. }
  663. .component-example {
  664. display: none;
  665. }
  666. .highlight pre {
  667. border-left: 1px solid #ddd;
  668. border-right: 1px solid #ddd;
  669. border-radius: 3px;
  670. }
  671. }
  672. // Specific example overrides
  673. #ratchicons .icon,
  674. #ratchiconsInDevice .icon {
  675. width: 50px;
  676. height: 50px;
  677. margin: 3px;
  678. font-size: 24px;
  679. line-height: 50px;
  680. text-align: center;
  681. background-color: #fff;
  682. border: 1px solid #ddd;
  683. border-radius: 25px;
  684. }
  685. // Modals
  686. #modals .modal {
  687. left: 0;
  688. z-index: 50;
  689. }
  690. // Push
  691. #push .component-example {
  692. height: 150px;
  693. overflow: hidden;
  694. }
  695. // Buttons
  696. #buttonsInDevice,
  697. #buttonsBadgesInDevice,
  698. #buttonsWithIconsInDevice {
  699. .btn {
  700. margin-top: 10px;
  701. margin-right: 100px;
  702. margin-left: 10px;
  703. }
  704. }
  705. #blockButtonsInDevice .btn-block {
  706. width: 300px;
  707. margin: 10px auto;
  708. }
  709. //Segmented Control
  710. #segmentedControlsInDevice {
  711. .segmented-control {
  712. margin-top: 10px;
  713. margin-right: 10px;
  714. margin-left: 10px;
  715. }
  716. .card span {
  717. padding: 10px;
  718. }
  719. }
  720. // Badges
  721. #badgesInDevice {
  722. text-align: center;
  723. .badge {
  724. margin-top: 10px;
  725. }
  726. }
  727. // Forms
  728. #formsInDevice form {
  729. margin: 10px;
  730. &.input-group {
  731. margin: 0;
  732. }
  733. }
  734. // Toggles
  735. #togglesInDevice .toggle {
  736. margin: 10px auto;
  737. }
  738. .toggle {
  739. cursor: pointer;
  740. }
  741. // Popovers
  742. #popoversInDevice {
  743. #iwindow:before {
  744. position: absolute;
  745. top: 0;
  746. right: 0;
  747. bottom: 0;
  748. left: 0;
  749. z-index: 11;
  750. background-color: rgba(0,0,0,.3);
  751. content: '';
  752. }
  753. }
  754. @media screen and (min-width: 768px) {
  755. .popover {
  756. position: absolute;
  757. display: block;
  758. top: 72px;
  759. opacity: 1;
  760. }
  761. }
  762. // Modals
  763. #modalsInDevice {
  764. #iwindow > .btn {
  765. margin: 10px;
  766. }
  767. }
  768. // Sliders
  769. @media screen and (min-width: 768px) {
  770. .slider .slide {
  771. cursor: -webkit-grab;
  772. cursor: -moz-grab;
  773. cursor: grab;
  774. }
  775. .slider .slide img {
  776. width: 100%;
  777. height: 570px; // Fullscreen fun times
  778. display: block;
  779. }
  780. .slider .slide-group .slide-text {
  781. position: absolute;
  782. top: 45%;
  783. left: 0;
  784. width: 100%;
  785. color: #fff;
  786. text-align: center;
  787. font-size: 24px;
  788. text-shadow: 0 0 10px rgba(0,0,0,.5);
  789. }
  790. }
  791. // Example device
  792. // --------------------------------------------------
  793. .device {
  794. display: none;
  795. font-size: $font-size-default;
  796. font-family: $font-family-default;
  797. line-height: $line-height-default;
  798. }
  799. @media screen and (min-width: 768px) {
  800. .device {
  801. position: relative;
  802. top: 50px;
  803. display: block;
  804. width: 395px;
  805. height: 813px;
  806. margin-left: -20px;
  807. font-family: "Helvetica Neue", sans-serif;
  808. background-image: url("../img/device-sprite.png");
  809. background-size: 300%;
  810. background-repeat: no-repeat;
  811. background-position: 0 0;
  812. @include transition(background-image .1s linear);
  813. &.device-fixed {
  814. position: fixed;
  815. right: auto;
  816. }
  817. }
  818. .device .device-content {
  819. position: absolute;
  820. top: 117px;
  821. left: 37px;
  822. width: 321px;
  823. height: 569px;
  824. overflow: hidden;
  825. font-size: $font-size-default;
  826. line-height: $line-height-default;
  827. background-color: #fff;
  828. }
  829. .device .content,
  830. .device .bar,
  831. .device .modal {
  832. position: absolute;
  833. }
  834. .device .content {
  835. top: 44px;
  836. left: 0;
  837. right: 0;
  838. bottom: 0;
  839. }
  840. }
  841. @media screen and (min-width: 1200px) {
  842. .device {
  843. margin-left: 39px;
  844. }
  845. }
  846. // Misc
  847. // --------------------------------------------------
  848. hr {
  849. height: 0;
  850. margin: 10px 0 30px;
  851. border: solid #ddd;
  852. border-width: 1px 0 0;
  853. clear: both;
  854. }
  855. .column-group {
  856. @include clearfix;
  857. }
  858. // The Chassis grid
  859. // --------------------------------------------------
  860. .container {
  861. position: relative;
  862. margin-left: auto;
  863. margin-right: auto;
  864. padding-left: 0;
  865. padding-right: 0;
  866. }
  867. .column-group {
  868. width: auto;
  869. }
  870. .column {
  871. padding-left: 15px;
  872. padding-right: 15px;
  873. float: left;
  874. width: 100%;
  875. &.pull-right {
  876. float: right;
  877. }
  878. }
  879. // Lines nested grids up correctly.
  880. .column .column-group {
  881. margin-left: -15px;
  882. margin-right: -15px;
  883. }
  884. // Tablet to desktop
  885. // --------------------------------------------------
  886. @media screen and (min-width: 768px) {
  887. .container {
  888. padding: 0;
  889. max-width: 940px;
  890. }
  891. // Twelve column fluid grid
  892. .lg-units-4 { width: 33.333%; }
  893. .lg-units-5 { width: 41.666%; }
  894. .lg-units-7 { width: 58.333%; }
  895. .lg-units-8 { width: 66.666%; }
  896. }
  897. // Standard sized screens to large screens
  898. // --------------------------------------------------
  899. @media screen and (min-width: 1200px) {
  900. .container {
  901. max-width: 1170px;
  902. }
  903. }
  904. // Example platform styles
  905. // --------------------------------------------------
  906. .platform-ios {
  907. @import "theme-ios.scss";
  908. .device {
  909. background-position: -395px 0;
  910. .device-content {
  911. background-color: #efeff4;
  912. }
  913. }
  914. }
  915. .platform-android {
  916. @import "theme-android.scss";
  917. .device {
  918. font-family: 'Roboto', sans-serif;
  919. background-position: -790px 0;
  920. .device-content {
  921. font-size: 18px;
  922. line-height: 22px;
  923. background-color: #f2f2f2;
  924. }
  925. .content {
  926. top: 50px;
  927. }
  928. .popover {
  929. @include transform(scale(1));
  930. }
  931. }
  932. .bar ~ .content {
  933. padding: 0;
  934. }
  935. }
  936. // Animations
  937. @-webkit-keyframes fadeintext {
  938. 0% {
  939. opacity: 0;
  940. }
  941. 100% {
  942. opacity: 1;
  943. }
  944. }
  945. // Taken from Bootstrap docs
  946. //
  947. // Callouts
  948. //
  949. // Not quite alerts, but custom and helpful notes for folks reading the docs.
  950. // Requires a base and modifier class.
  951. // Common styles for all types
  952. .bs-callout {
  953. padding: 20px;
  954. margin: 20px 0;
  955. border-left: 3px solid #eee;
  956. }
  957. .bs-callout h4 {
  958. margin-top: 0;
  959. margin-bottom: 5px;
  960. }
  961. .bs-callout p:last-child {
  962. margin-bottom: 0;
  963. }
  964. .bs-callout code {
  965. background-color: #fff;
  966. border-radius: 3px;
  967. }
  968. // Variations
  969. .bs-callout-danger {
  970. background-color: #fdf7f7;
  971. border-color: #d9534f;
  972. }
  973. .bs-callout-danger h4 {
  974. color: #d9534f;
  975. }
  976. .bs-callout-warning {
  977. background-color: #fcf8f2;
  978. border-color: #f0ad4e;
  979. }
  980. .bs-callout-warning h4 {
  981. color: #f0ad4e;
  982. }
  983. .bs-callout-info {
  984. background-color: #f4f8fa;
  985. border-color: #5bc0de;
  986. }
  987. .bs-callout-info h4 {
  988. color: #5bc0de;
  989. }
  990. // Team module
  991. .list-group {
  992. margin-bottom: 20px;
  993. padding-left: 0;
  994. }
  995. .list-group-item:first-child {
  996. border-top-right-radius: 4px;
  997. border-top-left-radius: 4px;
  998. }
  999. .list-group-item {
  1000. position: relative;
  1001. display: block;
  1002. padding: 10px 15px;
  1003. margin-bottom: -1px;
  1004. background-color: #fff;
  1005. border: 1px solid #ddd;
  1006. }
  1007. .list-group .team-member {
  1008. color: #555;
  1009. font-size: 14px;
  1010. line-height: 32px;
  1011. }
  1012. .list-group img {
  1013. float: left;
  1014. width: 32px;
  1015. margin-right: 10px;
  1016. border-radius: 4px;
  1017. }
  1018. .list-group .team-member-info {
  1019. overflow: hidden;
  1020. }
  1021. .list-group .github-btn {
  1022. float: right;
  1023. margin-top: 6px;
  1024. width: 121px;
  1025. height: 20px;
  1026. }