Skip to content

Commit

Permalink
fix: changed css values for the secondary buttons (add and remove file)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekhvoya committed Dec 21, 2023
1 parent d8dc609 commit 68685cc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
31 changes: 22 additions & 9 deletions src/asset/pinnwand.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,27 @@ section.paste-submit {
margin-bottom: .5rem;
}

div.file-meta button,
section.paste-submit button,
div.file-meta button.remove,
section.paste-submit button.add {
margin: 0 .5rem 0 0;
padding: .4rem 1.4rem;
float: right;
background: var(--color1);
color: var(--color3);
border: .0625rem solid var(--color3);
cursor: pointer;
font-size: 1.1rem;
text-align: center;
}

div.file-meta button.remove:hover,
section.paste-submit button.add:hover {
color: var(--color1);
background: var(--color3);
border: .0625rem solid var(--color1);
}

section.paste-submit button[type=submit],
button.confirm {
box-sizing: border-box;
border: .0625rem solid var(--color3);
Expand All @@ -190,8 +209,7 @@ button.confirm {
text-align: center;
}

div.file-meta button:hover,
section.paste-submit button:hover,
section.paste-submit button[type=submit]:hover,
button.confirm:hover {
color: var(--color3);
background: var(--color1);
Expand Down Expand Up @@ -371,11 +389,6 @@ article h1 {
margin-bottom: .5rem;
}

button.remove, button.add {
margin: 0 .5rem 0 0;
float: right;
}

.source {
table, tr, td {
border-spacing: 0;
Expand Down
Binary file modified src/pinnwand/static/pinnwand.css
Binary file not shown.
18 changes: 8 additions & 10 deletions test/e2e/utils/string_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@


def random_string(size=1000) -> str:
return random.choice(string.ascii_letters) + "".join(
[
random.choice(
string.ascii_letters
+ string.digits
+ string.punctuation
+ " \n\t"
)
for i in range(size)
]
return (
"".join(
[
random.choice(string.ascii_letters + string.digits + " \n\t")
for i in range(size)
]
)
+ string.punctuation
)


Expand Down

0 comments on commit 68685cc

Please sign in to comment.