mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
161 lines
6.6 KiB
HTML
161 lines
6.6 KiB
HTML
<!doctype html>
|
|
<!--
|
|
@license
|
|
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
Code distributed by Google as part of the polymer project is also
|
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
-->
|
|
<html>
|
|
<head>
|
|
|
|
<title>iron-dropdown</title>
|
|
|
|
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
|
<link rel="import" href="../../iron-image/iron-image.html">
|
|
<link rel="import" href="../../paper-styles/demo-pages.html">
|
|
<link rel="import" href="x-select.html">
|
|
<style>
|
|
|
|
.dropdown-content {
|
|
background-color: white;
|
|
line-height: 20px;
|
|
border-radius: 3px;
|
|
box-shadow: 0px 2px 6px #ccc;
|
|
}
|
|
|
|
.random-content {
|
|
padding: 1.5em 2em;
|
|
max-width: 250px;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid #ccc;
|
|
background-color: #eee;
|
|
padding: 1em;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:focus {
|
|
outline: none;
|
|
border-color: blue;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
display: block;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
position: relative;
|
|
padding: 1em;
|
|
text-decoration: none;
|
|
}
|
|
|
|
li:not(:last-of-type) {
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
iron-image {
|
|
padding: 1em;
|
|
background-color: #fff;
|
|
box-shadow: 0px 2px 6px #ccc;
|
|
border-radius: 3px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<template is="dom-bind" id="Demo">
|
|
<div class="vertical-section vertical-section-container ">
|
|
<h1>iron-dropdown</h1>
|
|
<p>Examples of vanilla elements.</p>
|
|
<div>
|
|
<x-select>
|
|
<button class="dropdown-trigger">Basic</button>
|
|
<div class="dropdown-content random-content">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
</x-select>
|
|
<x-select>
|
|
<button class="dropdown-trigger">Overflowing</button>
|
|
<div class="dropdown-content random-content">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
|
|
</div>
|
|
</x-select>
|
|
<x-select vertical-align="bottom">
|
|
<button class="dropdown-trigger">Bottom-left Aligned</button>
|
|
<div class="dropdown-content random-content">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
</x-select>
|
|
<x-select horizontal-align="right" vertical-align="top">
|
|
<button class="dropdown-trigger">Top-right Aligned</button>
|
|
<div class="dropdown-content random-content">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
</x-select>
|
|
<x-select horizontal-align="left" vertical-align="top">
|
|
<button class="dropdown-trigger"> Content</button>
|
|
<iron-image class="dropdown-content" src="../../iron-image/demo/polymer.svg"></iron-image>
|
|
</x-select>
|
|
<x-select horizontal-align="right" vertical-align="top">
|
|
<button class="dropdown-trigger">Unordered list</button>
|
|
<ul class="dropdown-content" tabindex="0">
|
|
<template is="dom-repeat" items="[[dinosaurs]]">
|
|
<li><a href="javascript:void(0)">[[item]]</a></li>
|
|
</template>
|
|
</ul>
|
|
</x-select>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
Demo.dinosaurs = [
|
|
'allosaurus',
|
|
'brontosaurus',
|
|
'carcharodontosaurus',
|
|
'diplodocus',
|
|
'ekrixinatosaurus',
|
|
'fukuiraptor',
|
|
'gallimimus',
|
|
'hadrosaurus',
|
|
'iguanodon',
|
|
'jainosaurus',
|
|
'kritosaurus',
|
|
'liaoceratops',
|
|
'megalosaurus',
|
|
'nemegtosaurus',
|
|
'ornithomimus',
|
|
'protoceratops',
|
|
'quetecsaurus',
|
|
'rajasaurus',
|
|
'stegosaurus',
|
|
'triceratops',
|
|
'utahraptor',
|
|
'vulcanodon',
|
|
'wannanosaurus',
|
|
'xenoceratops',
|
|
'yandusaurus',
|
|
'zephyrosaurus'
|
|
];
|
|
</script>
|
|
</body>
|
|
</html>
|