components.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Browser Sync - Control Panel</title>
  5. <meta charset="utf-8"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <link rel="stylesheet" href="css/core.min.css"/>
  10. </head>
  11. <body>
  12. <main>
  13. <link rel="stylesheet" href="css/components.css" />
  14. <span style="color: red">Crossbow WARNING:</span> Include not found: ../../public/img/icons/svg/symbols.svg
  15. <div class="tube">
  16. <h1>Browsersync UI Components</h1>
  17. <p>Also, you can view static representations of each section:</p>
  18. <ul bs-list="inline" class="">
  19. <li>
  20. <a href="/server-info.html" >Overview</a> <span bs-sep>|</span>
  21. </li>
  22. <li>
  23. <a href="/sync-options.html" >Sync Options</a> <span bs-sep>|</span>
  24. </li>
  25. <li>
  26. <a href="/history.html" >History</a> <span bs-sep>|</span>
  27. </li>
  28. <li>
  29. <a href="/plugins.html" >Plugins</a> <span bs-sep>|</span>
  30. </li>
  31. <li>
  32. <a href="/remote-debug.html" >Remote Debug</a> <span bs-sep>|</span>
  33. </li>
  34. <li>
  35. <a href="/network-throttle.html" >Network Throttle</a> <span bs-sep>|</span>
  36. </li>
  37. <li>
  38. <a href="/help.html" >Help / About</a>
  39. </li>
  40. </ul>
  41. <hr/>
  42. </div>
  43. <div class="tube">
  44. <h1>Typography</h1>
  45. <h1>Heading 1</h1>
  46. <h2>Heading 2</h2>
  47. <h3>Heading 3</h3>
  48. <p class="lede">Lede paragraph. Lorem ipsum dolor sit amet.</p>
  49. <p>Paragraph. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero esse molestias, itaque, quia sed laudantium laboriosam amet aliquam ipsam, laborum asperiores quod obcaecati, maiores fugiat nihil cum minus provident vitae.</p>
  50. <p class="small">Small paragraph. Lorem ipsum dolor sit amet.</p>
  51. <p><a href="#links">Link</a> <span bs-sep>|</span> <a href="#">Another link</a></p>
  52. <p>Inline tags. Lorem <strong>strong</strong> ipsum <code>code</code> dolar <mark>mark</mark> si <em>em</em>.</p>
  53. <hr>
  54. <ul>
  55. <li>Lorem ipsum dolor sit amet.</li>
  56. <li>Ratione dolore veritatis voluptas consequuntur!</li>
  57. <li>Odit quis, pariatur ipsum vel.
  58. <ul>
  59. <li>Lorem ipsum dolor sit amet.</li>
  60. <li>Ratione dolore veritatis voluptas consequuntur!</li>
  61. <li>Odit quis, pariatur ipsum vel.</li>
  62. <li>Suscipit laudantium, quam debitis tempore.</li>
  63. <li>Nobis vero nesciunt suscipit porro.</li>
  64. </ul>
  65. </li>
  66. <li>Suscipit laudantium, quam debitis tempore.</li>
  67. <li>Nobis vero nesciunt suscipit porro.</li>
  68. </ul>
  69. <ol>
  70. <li>Lorem ipsum dolor sit amet.</li>
  71. <li>Ratione dolore veritatis voluptas consequuntur!</li>
  72. <li>Odit quis, pariatur ipsum vel.
  73. <ol>
  74. <li>Lorem ipsum dolor sit amet.</li>
  75. <li>Ratione dolore veritatis voluptas consequuntur!</li>
  76. <li>Odit quis, pariatur ipsum vel.</li>
  77. <li>Suscipit laudantium, quam debitis tempore.</li>
  78. <li>Nobis vero nesciunt suscipit porro.</li>
  79. </ol>
  80. </li>
  81. <li>Suscipit laudantium, quam debitis tempore.</li>
  82. <li>Nobis vero nesciunt suscipit porro.</li>
  83. </ol>
  84. <dl>
  85. <dt>Lorem ipsum dolor sit amet.</dt>
  86. <dd>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, hic.</dd>
  87. <dt>Lorem ipsum dolor sit amet.</dt>
  88. <dd>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, hic.</dd>
  89. <dt>Lorem ipsum dolor sit amet.</dt>
  90. <dd>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, hic.</dd>
  91. </dl>
  92. <hr>
  93. <table>
  94. <caption>The Very Best Eggnog</caption>
  95. <thead>
  96. <tr>
  97. <th scope="col">Ingredients</th>
  98. <th scope="col">Serves 12</th>
  99. <th scope="col">Serves 24</th>
  100. </tr>
  101. </thead>
  102. <tbody>
  103. <tr>
  104. <td data-title="Ingredient">Milk</td>
  105. <td data-title="For 12">1 quart</td>
  106. <td data-title="For 24">2 quart</td>
  107. </tr>
  108. <tr>
  109. <td data-title="Ingredient">Cloves</td>
  110. <td data-title="For 12">5</td>
  111. <td data-title="For 24">10</td>
  112. </tr>
  113. <tr>
  114. <td data-title="Ingredient">Egg Yolks</td>
  115. <td data-title="For 12">12</td>
  116. <td data-title="For 24">24</td>
  117. </tr>
  118. <tr>
  119. <td data-title="Ingredient">Cups Sugar</td>
  120. <td data-title="For 12">1 ½ cups</td>
  121. <td data-title="For 24">3 cups</td>
  122. </tr>
  123. <tr>
  124. <td data-title="Ingredient">Dark Rum</td>
  125. <td data-title="For 12">1 ½ cups</td>
  126. <td data-title="For 24">3 cups</td>
  127. </tr>
  128. <tr>
  129. <td data-title="Ingredient">Freshly grated nutmeg to taste</td>
  130. <td data-title="For 12"></td>
  131. <td data-title="For 24"></td>
  132. </tr>
  133. </tbody>
  134. </table>
  135. </div>
  136. <hr/>
  137. <div class="tube">
  138. <h1>Buttons</h1>
  139. <p>Default button styles</p>
  140. <p>
  141. <button bs-button>Button</button>
  142. <button bs-button="size-small">Button Small</button>
  143. <button bs-button="size-small" disabled>Button Small</button>
  144. </p>
  145. <p>Subtle button styles</p>
  146. <p>
  147. <button bs-button="subtle">Button</button>
  148. <button bs-button="size-small subtle">Button Small</button>
  149. <button bs-button="size-small subtle" disabled>Button Small</button>
  150. </p>
  151. <p>Alternative Subtle button styles</p>
  152. <p>
  153. <button bs-button="subtle-alt">Button</button>
  154. <button bs-button="size-small subtle-alt">Button Small</button>
  155. <button bs-button="size-small subtle-alt" disabled>Button Small</button>
  156. </p>
  157. <hr/>
  158. <p>Default buttons with icons</p>
  159. <div>
  160. <button bs-button="icon-left"><svg bs-svg-icon><use xlink:href="#svg-square-add"></use></svg> Icon Left</button>
  161. <button bs-button="icon-right"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Icon Right</button>
  162. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  163. <button bs-button="icon" disabled><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  164. </div>
  165. <div>
  166. <button bs-button="size-small icon-left"><svg bs-svg-icon><use xlink:href="#svg-square-add"></use></svg> Icon Left</button>
  167. <button bs-button="size-small icon-right"><svg bs-svg-icon><use xlink:href="#svg-bug"></use></svg> Icon Right</button>
  168. <button bs-button="size-small icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  169. <button bs-button="size-small icon" disabled><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  170. </div>
  171. <br/>
  172. <p>Subtle buttons with icons</p>
  173. <div>
  174. <button bs-button="subtle icon-left"><svg bs-svg-icon><use xlink:href="#svg-square-add"></use></svg> Icon Left</button>
  175. <button bs-button="subtle icon-right"><svg bs-svg-icon><use xlink:href="#svg-bug"></use></svg> Icon Right</button>
  176. <button bs-button="subtle icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  177. <button bs-button="subtle icon" disabled><svg bs-svg-icon><use xlink:href="#svg-help"></use></svg></button>
  178. </div>
  179. <div>
  180. <button bs-button="size-small subtle icon-left"><svg bs-svg-icon><use xlink:href="#svg-square-add"></use></svg> Icon Left</button>
  181. <button bs-button="size-small subtle icon-right"><svg bs-svg-icon><use xlink:href="#svg-bug"></use></svg> Icon Right</button>
  182. <button bs-button="size-small subtle icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  183. <button bs-button="size-small subtle icon" disabled><svg bs-svg-icon><use xlink:href="#svg-help"></use></svg></button>
  184. </div>
  185. <br/>
  186. <p>Alternative Subtle button styles with icons</p>
  187. <div>
  188. <button bs-button="size-small subtle-alt icon-left"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Icon Left</button>
  189. <button bs-button="size-small subtle-alt icon-right"><svg bs-svg-icon><use xlink:href="#svg-bug"></use></svg> Icon Right</button>
  190. <button bs-button="size-small subtle-alt icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  191. <button bs-button="size-small subtle-alt icon" disabled><svg bs-svg-icon><use xlink:href="#svg-help"></use></svg></button>
  192. </div>
  193. </div>
  194. <hr/>
  195. <div class="tube">
  196. <h1>Button bars</h1>
  197. <div bs-button-group>
  198. <button bs-button="icon-left"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Website</button>
  199. <button bs-button="icon-left"><svg bs-svg-icon><use xlink:href="#svg-twitter"></use></svg> Twitter</button>
  200. <button bs-button="icon-right"><svg bs-svg-icon><use xlink:href="#svg-github"></use></svg> Github</button>
  201. <button bs-button="icon" disabled><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  202. </div>
  203. <div bs-button-group>
  204. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg></button>
  205. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-twitter"></use></svg></button>
  206. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-github"></use></svg></button>
  207. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-target"></use></svg></button>
  208. </div>
  209. <div bs-button-group>
  210. <button bs-button="">Button</button>
  211. <button bs-button="icon"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg></button>
  212. <button bs-button="icon-left"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  213. <button bs-button disabled>n/a</button>
  214. <button bs-button="icon-right"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  215. </div>
  216. <div bs-button-group>
  217. <button bs-button="subtle-alt">Button</button>
  218. <button bs-button="subtle-alt icon"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg></button>
  219. <button bs-button="subtle-alt icon-left"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  220. <button bs-button="subtle-alt" disabled>n/a</button>
  221. <button bs-button="subtle-alt icon-right"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  222. </div>
  223. <div bs-button-group>
  224. <button bs-button="size-small subtle-alt">Button</button>
  225. <button bs-button="size-small subtle-alt icon"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg></button>
  226. <button bs-button="size-small subtle-alt icon-left"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  227. <button bs-button="size-small subtle-alt" disabled>n/a</button>
  228. <button bs-button="size-small subtle-alt icon-right"><svg bs-svg-icon><use xlink:href="#svg-globe"></use></svg> Button Small</button>
  229. </div>
  230. </div>
  231. <hr/>
  232. <div class="tube">
  233. <h1>Form inputs</h1>
  234. <div bs-input="text">
  235. <label for="grid-size" bs-input-label>Grid Size</label>
  236. <input id="grid-size" type="text" size="16px" value="16px" placeholder=""/>
  237. </div>
  238. <br/>
  239. <div bs-input="text">
  240. <label for="some-input" bs-input-label>Some input</label>
  241. <input id="some-input" type="text" size="" value="" placeholder="EG: #main"/>
  242. </div>
  243. <br/>
  244. <p bs-label-heading>Form label</p>
  245. <div bs-input="text">
  246. <label for="overlay-01" bs-input-label>Input + Button</label>
  247. <div bs-input-group>
  248. <input bs-stack id="overlay-01" type="text" size="10" value="" placeholder="EG: #main"/>rs
  249. <button bs-button="subtle-alt icon"><svg bs-svg-icon><use xlink:href="#svg-circle-plus"></use></svg></button>
  250. </div>
  251. </div>
  252. <div bs-input="text">
  253. <label for="new-restriction" bs-input-label>New Restriction</label>
  254. <input bs-stack id="new-restriction" type="text" size="" value="" ng-model="ctrl.restriction" placeholder="eg: #main">
  255. <div bs-state-wrapper ng-class="[ctrl.state.classname]">
  256. <button type="submit" id="add-restriction" bs-button="size-small subtle-alt icon-left" ng-disabled="ctrl.state.waiting">
  257. <svg bs-svg-icon="" icon="circle-plus"><use xlink:href="#svg-circle-plus"></use></svg>Add</button>
  258. <div bs-state-icons>
  259. <svg bs-svg-icon icon="circle-ok" bs-state="success inline"><use xlink:href="#svg-circle-ok"></use></svg>
  260. <svg bs-svg-icon icon="circle-minus" bs-state="waiting inline" bs-anim="spin"><use xlink:href="#svg-circle-minus"></use></svg>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <hr/>
  266. <div class="tube">
  267. <h1>Lists</h1>
  268. </div>
  269. <div class="tube">
  270. <h2>Simple list</h2>
  271. <ul bs-list>
  272. <li>Item 1</li>
  273. <li>Item 2</li>
  274. <li>Item 3</li>
  275. <li>Item 4</li>
  276. <li>Item 5</li>
  277. </ul>
  278. <br/>
  279. <h2>Bordered list</h2>
  280. <ul bs-list="bordered">
  281. <li>/gallery/new-item</li>
  282. <li><a href="#">https://github.com/shakyShane/browser-sync/pull/400</a></li>
  283. <li>Item 3</li>
  284. <li>Item 4</li>
  285. <li>Item 5</li>
  286. </ul>
  287. <br/>
  288. <h2>Bordered list with controls</h2>
  289. </div>
  290. <ul bs-list="bordered inline-controls">
  291. <li>
  292. <p>https://github.com/BrowserSync/browser-sync/</p>
  293. <div bs-button-group>
  294. <button href="#" bs-button="subtle-alt icon">
  295. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  296. </button>
  297. <button href="#" bs-button="subtle-alt icon">
  298. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  299. </button>
  300. </div>
  301. </li>
  302. <li>
  303. <p>https://github.com/BrowserSync/browser-sync/issues</p>
  304. <div bs-button-group>
  305. <button href="#" bs-button="subtle-alt icon">
  306. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  307. </button>
  308. <button href="#" bs-button="subtle-alt icon">
  309. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  310. </button>
  311. </div>
  312. </li>
  313. <li>
  314. <p>https://twitter.com/browsersync</p>
  315. <div bs-button-group>
  316. <button href="#" bs-button="subtle-alt icon">
  317. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  318. </button>
  319. <button href="#" bs-button="subtle-alt icon">
  320. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  321. </button>
  322. </div>
  323. </li>
  324. <li>
  325. <p>https://browsersync.io</p>
  326. <div bs-button-group>
  327. <button href="#" bs-button="subtle-alt icon">
  328. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  329. </button>
  330. <button href="#" bs-button="subtle-alt icon">
  331. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  332. </button>
  333. </div>
  334. </li>
  335. <li>
  336. <p>https://stackoverflow.com/questions/tagged/browser-sync</p>
  337. <div bs-button-group>
  338. <button href="#" bs-button="subtle-alt icon">
  339. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  340. </button>
  341. <button href="#" bs-button="subtle-alt icon">
  342. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  343. </button>
  344. </div>
  345. </li>
  346. <li>
  347. <p>https://www.browsersync.io/docs/options/#option-snippetOptions</p>
  348. <div bs-button-group>
  349. <button href="#" bs-button="subtle-alt icon">
  350. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  351. </button>
  352. <button href="#" bs-button="subtle-alt icon">
  353. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  354. </button>
  355. </div>
  356. </li>
  357. <li>
  358. <p>https://github.com/shakyShane/browser-sync/blob/master/CONTRIBUTING.md</p>
  359. <div bs-button-group>
  360. <button href="#" bs-button="subtle-alt icon">
  361. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  362. </button>
  363. <button href="#" bs-button="subtle-alt icon">
  364. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  365. </button>
  366. </div>
  367. </li>
  368. <li>
  369. <p>https://www.browsersync.io/docs/options</p>
  370. <div bs-button-group>
  371. <button href="#" bs-button="subtle-alt icon">
  372. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  373. </button>
  374. <button href="#" bs-button="subtle-alt icon">
  375. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  376. </button>
  377. </div>
  378. </li>
  379. <li>
  380. <p>https://wearejh.com</p>
  381. <div bs-button-group>
  382. <button href="#" bs-button="subtle-alt icon">
  383. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  384. </button>
  385. <button href="#" bs-button="subtle-alt icon">
  386. <svg bs-svg-icon><use xlink:href="#svg-bin"></use></svg>
  387. </button>
  388. </div>
  389. </li>
  390. </ul>
  391. <div class="tube">
  392. <h1>Headings</h1>
  393. <div bs-panel="controls outline">
  394. <h1 bs-heading>
  395. <svg bs-svg-icon><use xlink:href="#svg-cog"></use></svg>
  396. Server Info
  397. </h1>
  398. </div>
  399. </div>
  400. <hr/>
  401. <div class="tube">
  402. <h1>Panels</h1>
  403. </div>
  404. <div class="tube">
  405. <p>Page heading</p>
  406. <div bs-panel="controls outline">
  407. <h1 bs-heading>
  408. <svg bs-svg-icon><use xlink:href="#svg-cog"></use></svg>
  409. Overview
  410. </h1>
  411. </div>
  412. <hr/>
  413. <div bs-panel="controls outline">
  414. <h1 bs-heading>
  415. <svg bs-svg-icon><use xlink:href="#svg-syncall"></use></svg>
  416. Sync all
  417. </h1>
  418. </div>
  419. <div bs-button-row>
  420. <button bs-button="inline icon-left success" ng-click="setMany(true)">
  421. <svg bs-svg-icon><use xlink:href="#svg-circle-ok"></use></svg>
  422. Enable All
  423. </button>
  424. <button bs-button="icon-left inline" ng-click="setMany(false)">
  425. <svg bs-svg-icon><use xlink:href="#svg-circle-delete"></use></svg>
  426. Disable all
  427. </button>
  428. </div>
  429. </div>
  430. <div bs-panel="controls outline">
  431. <h1 bs-heading>
  432. <svg bs-svg-icon><use xlink:href="#svg-cog"></use></svg>
  433. Overview
  434. </h1>
  435. </div>
  436. <hr/>
  437. <div class="tube">
  438. <h1>Header</h1>
  439. </div>
  440. <header bs-header role="banner">
  441. <div bs-header-row="brand">
  442. <span class="icon icon-word">
  443. <svg>
  444. <use xlink:href="#svg-logo-word"></use>
  445. </svg>
  446. </span>
  447. <a href="https://www.npmjs.com/package/browser-sync" bs-link="version" target="_blank">v{{app.options.version}}</a>
  448. <span bs-toggle="nav" ng-click="app.toggleMenu('shane')" ng-class="{'active': app.ui.sectionMenu}">
  449. <svg>
  450. <use xlink:href="#svg-list"></use>
  451. </svg>
  452. <svg bs-state="alt">
  453. <use xlink:href="#svg-circle-delete"></use>
  454. </svg>
  455. </span>
  456. </div>
  457. <aside bs-controls="top">
  458. <div bs-flex="top">
  459. <a href="#" bs-control title="Reload all Browsers" ng-click="app.reloadAll()">
  460. <svg bs-svg-icon><use xlink:href="#svg-repeat"></use></svg>
  461. Reload all
  462. </a>
  463. <a href="{{app.options.port | localRootUrl:app.options.scheme}}" target="_blank" bs-control title="Open a new tab" ng-if="app.options" ng-show="app.options.mode !== 'snippet'" class="ng-scope">
  464. <svg bs-svg-icon><use xlink:href="#svg-newtab"></use></svg>
  465. New Tab
  466. </a>
  467. <a href="#" bs-control title="Reset the scroll position of all browsers to 0" ng-click="app.scrollAllTo(0)">
  468. <svg bs-svg-icon><use xlink:href="#svg-square-up"></use></svg>
  469. Scroll Top
  470. </a>
  471. <a href="#" bs-control title="Reset all Browsers to Homepage" ng-click="app.sendAllTo('/')" ng-show="app.options.mode !== 'snippet'">
  472. <svg bs-svg-icon><use xlink:href="#svg-home"></use></svg>
  473. Reset All
  474. </a>
  475. </div>
  476. </aside>
  477. </header>
  478. <div class="tube">
  479. <h1>Switches</h1>
  480. </div>
  481. <section bs-panel="switch" ng-class="{'disabled': !active}">
  482. <div bs-panel-content>
  483. <div bs-panel-icon>
  484. <div class="switch">
  485. <input id="switch-1"
  486. ng-model="item[prop]"
  487. ng-change="toggle(item)"
  488. class="cmn-toggle cmn-toggle-round"
  489. type="checkbox"
  490. checked="">
  491. <label for="switch-1"></label>
  492. </div>
  493. </div>
  494. <div>
  495. <p bs-text="lede">Css Grid Overlay</p>
  496. <p>Some other content</p>
  497. </div>
  498. </div>
  499. <div bs-panel-content>
  500. <div bs-inputs bs-grid="wide-4 desk-2">
  501. <div bs-grid-item>
  502. <div bs-input="text">
  503. <label for="grid-size" bs-input-label>Grid Size</label>
  504. <input id="grid-size" type="text" size="16px" value="16px" placeholder=""/>
  505. </div>
  506. </div>
  507. <div bs-grid-item>
  508. <div bs-input="text">
  509. <label for="grid-colour" bs-input-label>Grid Colour</label>
  510. <input id="grid-colour" type="text" size="rgba(0, 0, 0, 0.2)" value="rgba(0, 0, 0, 0.2)" placeholder=""/>
  511. </div>
  512. </div>
  513. <div bs-grid-item>
  514. <div bs-input="text">
  515. <label for="grid-selector" bs-input-label>Grid Selector</label>
  516. <input id="grid-selector" type="text" size="body" value="body" placeholder=""/>
  517. </div>
  518. </div>
  519. </div>
  520. <div bs-inputs bs-grid="wide-4 desk-2">
  521. <div bs-grid-item>
  522. <div bs-input="text">
  523. <label for="offset-top" bs-input-label>Offset Top</label>
  524. <input id="offset-top" type="text" size="0" value="0" placeholder=""/>
  525. </div>
  526. </div>
  527. <div bs-grid-item>
  528. <div bs-input="text">
  529. <label for="offset-bottom" bs-input-label>Offset Bottom</label>
  530. <input id="offset-bottom" type="text" size="0" value="0" placeholder=""/>
  531. </div>
  532. </div>
  533. </div>
  534. <div bs-inputs bs-grid="wide-4 desk-2">
  535. <div bs-grid-item>
  536. <div bs-input="inline">
  537. <input type="checkbox" id="vertical-axis" checked>
  538. <label for="vertical-axis" bs-input-label>Vertical Axis</label>
  539. </div>
  540. </div>
  541. <div bs-grid-item>
  542. <div bs-input="inline">
  543. <input type="checkbox" id="horizontal-axis" checked>
  544. <label for="horizontal-axis" bs-input-label>Horizontal Axis</label>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. </section>
  550. </main>
  551. </body>
  552. </html>