Skip to content
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
2 changes: 1 addition & 1 deletion src/Shark.Sample.AuthorizationServer/Pages/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
<label class="checkbox-label">
<input type="checkbox" name="selectedScopes" value="@item" @(Html.Raw(true ? "checked=\"checked\"" : "")) />
<span>@item</span>
<span class="noselect">@item</span>
</label>
}
}
Expand Down
35 changes: 20 additions & 15 deletions src/Shark.Sample.AuthorizationServer/wwwroot/css/site.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
:root {
--color-primary: #8a4600;
--color-primary: #fcd34d;
--color-primary-hover: #fbbd24;
--color-primary-text: #1f2937;
--color-border: #ccc;
--color-text: #34495e;
}
Expand Down Expand Up @@ -36,15 +38,15 @@ body {

input[type="submit"] {
background-color: var(--color-primary);
color: white;
color: var(--color-primary-text);
border: none;
padding: 8px 20px;
padding: 10px 30px;
cursor: pointer;
border-radius: 4px;
border-radius: 3px;
}

input[type="submit"]:hover {
background-color: darkorange;
background-color: var(--color-primary-hover);
}


Expand All @@ -54,12 +56,11 @@ input[type="submit"] {
border: none;
padding: 1rem 2.5rem;
border-radius: 12px;
font-size: 1.1rem;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
margin: 1.5rem 0 0 0;
letter-spacing: 1px;
}

.button:hover {
Expand Down Expand Up @@ -94,7 +95,7 @@ input[type="checkbox"] {
appearance: none;
width: 20px;
height: 20px;
border: 2px solid var(--color-border);
border: 1px solid var(--color-border);
border-radius: 4px;
outline: none;
cursor: pointer;
Expand All @@ -109,11 +110,11 @@ input[type="checkbox"] {
input[type="checkbox"]:checked::before {
content: "";
position: absolute;
left: 5px;
top: 1px;
left: 6px;
top: 2px;
width: 6px;
height: 10px;
border: solid white;
border: solid var(--color-primary-text);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
Expand All @@ -128,10 +129,6 @@ input[type="checkbox"] {
transition: all 0.3s ease;
}

.checkbox-label:hover {
background: #e9ecef;
}

.label {
display: block;
color: #2c3e50;
Expand Down Expand Up @@ -329,3 +326,11 @@ input[type="checkbox"] {
justify-content: center;
margin-top: 1rem;
}

.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}