Henrik Giesel
db4cbfcb26
More uniform file naming
...
kebap-case for .ts, .scss, .html, and directories
2021-07-01 12:24:16 +02:00
Henrik Giesel
4ee66fb742
Add night_mode_lib as SCSS target
2021-06-21 21:44:23 +02:00
Henrik Giesel
7b01dd1719
Remove use of bootstrap-dark.night-mode for deckoptions
...
The CSS for the Switch component had a conflict regarding background color
Also generally it makes sense to put the CSS into the components
2021-06-21 21:16:40 +02:00
Henrik Giesel
ad6577d88c
Revert button with gear icon, that shows revert dropdown item
2021-06-21 19:11:10 +02:00
Henrik Giesel
73e66d6dd0
Add down-arrow SASS function
2021-06-21 17:02:48 +02:00
Henrik Giesel
7530121314
Match and fold tags
2021-06-17 20:27:34 +02:00
Henrik Giesel
6ce9d18e4c
Apply the Monokai theme
2021-06-17 17:18:00 +02:00
Henrik Giesel
48c8f89a11
Display CodeMirror in editingArea
2021-06-17 14:44:03 +02:00
kelciour
8a81533336
fix default font family
...
Probably a regression introduced with 818fe75721
2021-06-10 12:07:52 +03:00
Damien Elmes
5f44bf503e
make _vars.scss public
2021-06-04 14:39:53 +10:00
Damien Elmes
d38f57cf3c
Merge pull request #1213 from RumovZ/new-flags
...
Add pink, turquoise and purple flags
2021-06-02 11:22:26 +10:00
RumovZ
9e43c91a62
Tweak flag colors
2021-06-01 18:14:54 +02:00
RumovZ
9e56a4421b
Add violet, turquoise and purple flags
2021-05-31 12:03:30 +02:00
Henrik Giesel
d358d0eb1e
Remove rainbow SCSS
2021-05-31 00:20:41 +02:00
Henrik Giesel
054f96b726
Uniformly use variables to Button{Toolbar,Group} for setting button properties
...
Instead of using WithTheming around ButtonToolbar/ButtonGroup
2021-05-27 17:13:36 +02:00
Henrik Giesel
a55ab8e03a
Inline some bootstrap-dark styling
2021-05-26 08:40:00 +10:00
Henrik Giesel
e7f9eaf1ce
Restructure legacy scss / remove button_mixin import
2021-05-25 13:57:09 +02:00
Henrik Giesel
1647538d63
Fix background on DropdownItem + make transitions on buttons quicker
2021-05-24 19:53:30 +02:00
Damien Elmes
5036e25399
fix broken night mode styling
...
#1172 removed the select styling, but EnumSelector has not been updated
yet
2021-05-19 19:48:31 +10:00
Henrik Giesel
20d117e315
Add back global CSS for input
2021-05-18 19:30:43 +02:00
Henrik Giesel
a602561612
Make SaveButton functional
2021-05-18 18:55:22 +02:00
Henrik Giesel
1582bdb31e
Make styling on select button behave correctly
2021-05-18 17:50:18 +02:00
Henrik Giesel
d92a0c44c7
Add lefttopbtns as AddonButtons
2021-05-07 02:04:44 +02:00
Henrik Giesel
47edde0d00
Set tooltip for buttons correctly
2021-05-07 02:03:55 +02:00
Henrik Giesel
da5756822f
Add API for adding new buttons, updating existing ones in ButtonGroup
2021-05-07 02:03:55 +02:00
Henrik Giesel
a51eb42e7b
Simplify structure of EditorToolbar and ButtonGroup in editor HTML file
2021-05-07 02:03:55 +02:00
Henrik Giesel
59f0a2dd70
Make dynamicComponents usable for addons, rather than the components directly
...
rawButton({ html: ... })
instead of
{ component: RawButton, html: ... }
2021-04-23 16:43:36 +02:00
Damien Elmes
c7c81c8f15
override some bootstrap styles for night mode
...
There's probably a better way to accomplish this - fixes welcome!
Also fix the page reloading when enter hit inside the modal.
2021-04-22 21:57:32 +10:00
Damien Elmes
6d4c9994a8
disable overscroll on html as well
2021-04-22 19:54:44 +10:00
Henrik Giesel
05c36ef205
Satisfy svelte_check
2021-04-16 19:00:36 +02:00
Henrik Giesel
b102d0bbd2
Change style for Dropdown{Menu,Item} to match Button{Group,Dropdown}
2021-04-16 18:14:09 +02:00
Henrik Giesel
9cc05389fb
Abandon btn-secondary and btn-light in favor our own definitions btn-night and btn-day
2021-04-15 18:35:46 +02:00
Henrik Giesel
f4afb3e823
Style light mode button bar with borders
...
- whereas night mode toolbar has no visible borders
2021-04-15 13:09:50 +02:00
Henrik Giesel
a225accac3
Give light mode effects on hover/active/focus as well
2021-04-15 13:09:50 +02:00
Henrik Giesel
0d63ffcaeb
Add buttons_mixins.scss for sharing SCSS across components
2021-04-15 13:09:50 +02:00
Damien Elmes
c046ce1c26
move bootstrap into ts/sass
2021-04-15 16:10:01 +10:00
Damien Elmes
130e960262
support external building of sass; node_modules->ts/bootstrap
2021-04-15 15:59:17 +10:00
Henrik Giesel
d055bfa3c7
Remove unnecessary exports from sass/BUILD.bazel
...
I think these were just part of an unsuccessful experiment
Partially reverses fb26361274
2021-04-14 12:31:42 +02:00
Damien Elmes
898b8d2e09
Merge pull request #1125 from hgiesel/scrollbarcorner
...
Color Scrollbar bottom right corner
2021-04-14 12:43:34 +10:00
Henrik Giesel
082fd8d28f
Color in the Scrollbar corner at the bottom right into the appropriate color
2021-04-13 21:41:15 +02:00
Henrik Giesel
fb26361274
Create explicit dependencies for the congrats,editor,graphs scss files
2021-04-13 19:47:03 +02:00
Henrik Giesel
19903986f9
Move compile_sass.bzl to /ts + Remove core.css from data/web (unused?)
2021-04-13 19:47:03 +02:00
Henrik Giesel
5bcb2f080f
Declare dependencies in data/web/css
2021-04-13 19:47:03 +02:00
Henrik Giesel
9cba0c2d29
Make h1 explicitly bold in Graph.svelte
2021-04-13 19:47:03 +02:00
Henrik Giesel
630ee9c6bb
Use graphs-base and congrats-base
2021-04-13 19:47:03 +02:00
Henrik Giesel
8efbcddbb4
Do not include webview.css for editor
2021-04-13 19:47:03 +02:00
Henrik Giesel
b14dc3f7cb
Move card_counts and split off fusion_vars
2021-04-13 19:47:03 +02:00
Henrik Giesel
c944eeb5f6
Add base.scss
2021-04-13 19:47:03 +02:00
Damien Elmes
7c76693618
merge in Henrik's TS/Svelte refactor with some changes
...
- The previous commits moved the majority of the remaining global css
into components; move the remaining @emotion/css references into
ticks.scss and the styling of the Graph.svelte. This is not as elegant
as the emotion solution, but builds a whole lot faster, and most of
our styling can be scoped to a component anyway.
- Leave the .html files in ts/ for now. AnkiMobile uses them, and
AnkiDroid likely will in the future too. In the long run we'll likely
move to loading the JS into an existing page instead of loading a
separate page, but at that point we can just exclude the .html file from
copy_files_into_group() without affecting other clients.
Closes #1074
2021-03-21 23:01:18 +10:00
Damien Elmes
ebd3bba91b
fade out webview when pending updates; do some reviewer updates immediately
...
Issues that need fixing:
- when the editor saves the note with perform_op(), if it isn't modified,
no new undo entry is created, and perform_op then returns the changes
made by the previous operation instead
- the approach of fetching the last action in a subsequent backend
method is unsound, as another queued operation may sneak in first before
we have a chance to query the result - it would be better if it were
returned in a single atomic action
- redrawing the current card while editing is likely to make sound
autoplay annoyingly, and it has an unpleasant redraw. We may be better off
fading it out instead
Side note: the editor cursor moves to the start of the field when the
note is updated in another window - it might be nicer to have it move
the cursor to the end instead.
2021-03-19 19:45:21 +10:00