Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown fix #604

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions web/css/guide.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ body {
.ww,
.us,
.ca,
.uk {
.uk,
.de,
.se {
margin-bottom: 1rem;
justify-self: center;
width: auto;
Expand Down Expand Up @@ -50,7 +52,7 @@ li {
}

.existing-info-form {
margin-left: 3rem;
margin-left: 1rem;
display: flex;
}

Expand Down Expand Up @@ -212,7 +214,7 @@ li {
position: absolute;
content: "";
top: 14px;
right: -3.5rem;
right: 1.5rem;
width: 0;
height: 0;
border: 6px solid transparent;
Expand All @@ -236,14 +238,19 @@ li {
cursor: pointer;
user-select: none;
height: auto;
width: 15rem;
}

.dropdown-select {
margin-top: 0 !important;
}

/*style items (options):*/
.select-items {
position: absolute;
background-color: var(--bg);
margin-top: 0.5rem;
width: 20rem;
width: 15rem;
height: auto;
border-radius: 1rem;
box-shadow: var(--shadowPreset-3);
Expand Down
36 changes: 23 additions & 13 deletions web/guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/guide.css">
<script type="module" src="./dist/ts/framework.js" defer></script>
<script type="module" src="./dist/ts/guide.js"></script>
<script type="module" src="./dist/ts/hotfix.js" defer></script>
<script type="module" src="./dist/ts/templates.js"></script>

<script type="text/javascript" defer>
// Check local storage for theme setting
Expand All @@ -31,19 +30,30 @@
</script>
</head>
<body>
<!-- Templates -->
<template id="dropdown-template">
<div class="dropdown">
<div class="table">
<p class="tag"></p> <!-- Gender -->
<div class="dropdown-select">
<select>
<option></option> <!-- Select gender: -->
</select>
</div>
</div>
</div>
</template>

<div class="dd-nav-bar-top"></div>
<div class="dd-nav-bar">
<div class="country-select">
<select>
<option value="0">Select country:</option>
<option value="WW">WorldWide</option>
<option value="UK">United Kingdom</option>
<option value="US">United States</option>
<option value="CA">Canada</option>
<option value="SE">Sweden</option>
<option value="DE">Germany</option>
</select>
</div>
<custom-dropdown title="country" no-tag>
<custom-option>WorldWide</custom-option>
<custom-option>United Kingdom</custom-option>
<custom-option>United States</custom-option>
<custom-option>Canada</custom-option>
<custom-option>Sweden</custom-option>
<custom-option>Germany</custom-option>
</custom-dropdown>

<div class="existing-info-form">
<div class="form-option">
Expand Down
242 changes: 0 additions & 242 deletions web/ts/guide.ts

This file was deleted.

Loading
Loading