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

Styles: add Entry #712

Draft
wants to merge 1 commit into
base: danirabbit/demo-styles
Choose a base branch
from
Draft
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 lib/Styles/Granite/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ paper,
box-shadow:
highlight(),
// Intentionally not in ems since it's used as a stroke
0 0 0 1px $border-color,
0 0 0 1px scale-color($border-color, $alpha: -50%),
shadow(1);

&.rounded {
Expand Down
11 changes: 11 additions & 0 deletions lib/Styles/Gtk/Entry.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
entry {
background-color: bg-color(1);
border: 1px solid $border-color;
border-radius: rem($window_radius / 3);
padding: 6px;

placeholder {
color: mix($fg-color, bg-color(1), $weight: 75%);
margin: 0;
}
}
1 change: 1 addition & 0 deletions lib/Styles/Gtk/Index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'Button.scss';
@import 'Entry.scss';
@import 'HeaderBar.scss';
@import 'Image.scss';
@import 'Popover.scss';
Expand Down
2 changes: 1 addition & 1 deletion lib/Styles/Index-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $toplevel-border-color: rgba(black, 0.75);
}

// Outset box shadow or border color on inputs like buttons, entries, checkboxes
$border-color: rgba(black, 0.1);
$border-color: rgba(black, 0.2);

// Text, images, and other foreground elements
$fg-color: white;
Expand Down
2 changes: 1 addition & 1 deletion lib/Styles/Index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $toplevel-border-color: rgba(black, 0.2);
}

// Outset box shadow or border color on inputs like buttons, entries, checkboxes
$border-color: rgba(black, 0.05);
$border-color: rgba(black, 0.1);

// Text, images, and other foreground elements
$fg-color: $BLACK_500;
Expand Down