From 2c053af584ea48ff1fb6a7d9f287ebb8598ab8dc Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 10:55:18 +0200 Subject: [PATCH 001/248] changes --- docs/_static/css/header.css | 89 +++++++++++++++++++++++++++ docs/_static/css/main.css | 118 ++++++++++++++++++++++++++++++++++++ docs/_static/flair_logo.svg | 101 ++++++++++++++++++++++++++++++ docs/conf.py | 10 ++- docs/glossary/index.rst | 7 --- 5 files changed, 317 insertions(+), 8 deletions(-) create mode 100644 docs/_static/css/header.css create mode 100644 docs/_static/css/main.css create mode 100755 docs/_static/flair_logo.svg delete mode 100644 docs/glossary/index.rst diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css new file mode 100644 index 0000000000..2c086e1a40 --- /dev/null +++ b/docs/_static/css/header.css @@ -0,0 +1,89 @@ +.bd-header { + width: 100%; + height: var(--header-height); + background: var(--white-blue) !important; + .header-wrapper { + margin: 0 calc(10% + 10px); + height: 100%; + display: flex; + justify-content: space-between; + nav { + height: 100%; + ul { + display: flex; + height: 100%; + li { + height: 100%; + display: flex; + align-items: center; + a { + font-size: 1.1rem; + color: var(--orange-white); + svg { + height: 50%; + flex-grow: 1; + } + &.header-logo { + height: 100%; + display: flex; + align-items: center; + } + &.header-hover-underline { + position: relative; + &::after { + transition: width 150ms cubic-bezier(.17,.67,0,1); + content: ""; + width: 0; + height: 3px; + background-color: var(--orange-white); + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: -1rem; + } + &:hover::after { + width: 1rem; + } + } + } + margin-right: 3em; + } + } + } + .header-controls { + height: 100%; + ul { + height: 100%; + display: flex; + li { + margin-left: 3rem; + height: 100%; + display: flex; + align-items: center; + &:not(:last-of-type) { + cursor: pointer; + } + &:nth-of-type(2) { + svg { + &:first-of-type { + :root .dark-mode & { + display: none; + } + } + &:nth-of-type(2) { + display: none; + :root .dark-mode & { + display: block; + } + } + } + } + svg { + height: 35%; + width: auto; + } + } + } + } + } +} \ No newline at end of file diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css new file mode 100644 index 0000000000..0903efca63 --- /dev/null +++ b/docs/_static/css/main.css @@ -0,0 +1,118 @@ +@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap'); + +:root { + --flair-orange: #f79910; + --flair-orange-light: #ffc063; + --flair-orange-transparent: rgba(247, 153, 16, .5); + --white-transparent: rgba(255, 255, 255, .5); + --flair-blue: #2f2e41; + --white-blue: white; + --blue-white: var(--flair-blue); + --orange-white: var(--flair-orange); + --orange-white-transparent: var(--flair-orange-transparent); + --orange-blue: var(--flair-orange); + --blue-orange: var(--flair-blue); + --header-height: 90px; + --footer-height: 60px; + font-family: "Afacad", sans-serif; + font-optical-sizing: auto; + font-weight: 400; + font-size: 20px; + font-style: normal; +} + +:root[data-theme=dark] { + --white-blue: var(--flair-blue); + --blue-white: white; + --orange-white: white; + --orange-blue: var(--flair-blue); + --blue-orange: var(--flair-orange); + --orange-white-transparent: var(--white-transparent); +} + +.fill-white-blue { + fill: var(--white-blue); + stroke: none; +} + + +.fill-orange { + fill: var(--flair-orange); + stroke: none; +} + +.stroke-orange-white { + stroke: var(--orange-white); + fill: none; +} + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font: inherit; + vertical-align: baseline; + line-height: 1.2em; +} + +button { + font-family: inherit; +} + +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} + +body { + line-height: 1; + background-color: var(--white-blue); +} + +main { + min-height: calc(100vh - var(--header-height) - var(--footer-height)); +} + +ol, ul { + list-style: none; +} + +blockquote, q { + quotes: none; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +a { + color: var(--flair-orange); + text-decoration: none; + transition: color 200ms cubic-bezier(0,.35,.08,.89); + &:hover { + color: var(--flair-orange-light); + } +} + +::selection { + background: var(--flair-orange); + color: var(--white-blue); +} + +.inv-sel::selection { + background: var(--white-blue); + color: var(--flair-orange); +} \ No newline at end of file diff --git a/docs/_static/flair_logo.svg b/docs/_static/flair_logo.svg new file mode 100755 index 0000000000..e37b4f5a45 --- /dev/null +++ b/docs/_static/flair_logo.svg @@ -0,0 +1,101 @@ + + + + diff --git a/docs/conf.py b/docs/conf.py index 64624043e0..1664a3bb0f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -83,6 +83,14 @@ def linkcode_resolve(*args): # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] +html_css_files = [ + 'css/main.css', + 'css/header.css', +] + +html_logo = "_static/flair_logo.svg" +html_show_sphinx = False + # Napoleon settings napoleon_include_init_with_doc = True napoleon_include_private_with_doc = True @@ -116,7 +124,7 @@ def linkcode_resolve(*args): smv_tag_whitelist = r"^v\d+\.\d+\.\d+$" # Whitelist pattern for branches (set to None to ignore all branches) -smv_branch_whitelist = r"^master$" +smv_branch_whitelist = r"^master|documentation$" # Whitelist pattern for remotes (set to None to use local branches only) smv_remote_whitelist = r"^origin$" diff --git a/docs/glossary/index.rst b/docs/glossary/index.rst deleted file mode 100644 index c732a1a121..0000000000 --- a/docs/glossary/index.rst +++ /dev/null @@ -1,7 +0,0 @@ -Glossary -======== - -.. glossary:: - - Sentence - a sentence is a text-unit consisting of tokens, labels and possibly metadata. Notice that a sentence is not limited in size, hence a Sentence itself could hold either a full document, a paragraph, a simple phrase or a linguistic \ No newline at end of file From 2cf6097bc3623cf91c3a5e9aa83a4ce56297ce81 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 10:58:03 +0200 Subject: [PATCH 002/248] changes --- docs/index.rst | 85 ++------------------------------------------------ 1 file changed, 2 insertions(+), 83 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 3cff769118..b7adde6b62 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,92 +4,11 @@ flair .. _flair_docs_mainpage: -**Version**: |version| - -**Useful links**: -`Getting started `_ | -`Source Repository `_ | -`Issue Tracker `_ | - -Flair is a very simple framework for state-of-the-art Natural Language Processing (NLP) - -.. grid:: 2 - - .. grid-item-card:: - :img-top: ./_static/tutorial.svg - - Tutorial - ^^^^^^^^ - - New to Flair? Check out the Tutorials. It contains an introduction to Flair's main concepts. - - +++ - - .. button-ref:: tutorial/index - :expand: - :color: secondary - :click-parent: - - To the tutorials - - .. grid-item-card:: - :img-top: ./_static/api.svg - - API-docs - ^^^^^^^^ - - The API-docs provides in-depth information on the classes and functions designed for public use. - - +++ - - .. button-ref:: api/index - :expand: - :color: secondary - :click-parent: - - To the API docs - - .. grid-item-card:: - :img-top: ./_static/contributing.svg - - Contributor's Guide - ^^^^^^^^^^^^^^^^^^^ - - Want to add to the codebase? Can help add to the - documentation? The contributing guidelines will guide you through the - process of improving Flair. - - +++ - - .. button-ref:: contributing/index - :expand: - :color: secondary - :click-parent: - - To the contributor's guide - - .. grid-item-card:: - :img-top: ./_static/glossary.svg - - Glossary - ^^^^^^^^ - - Not sure what the exact meaning of certain terms is? Find their definition in the Glossary. - - +++ - - .. button-ref:: glossary/index - :expand: - :color: secondary - :click-parent: - - To the glossary .. toctree:: :maxdepth: 3 :hidden: Tutorials - API reference - Contributing - Glossary \ No newline at end of file + API + Contributing \ No newline at end of file From 4354525c1d7b5991eaad685b048567a925d477f5 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:01:42 +0200 Subject: [PATCH 003/248] changes --- docs/_static/html/landing_page_header_styles.html | 5 +++++ docs/index.rst | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/_static/html/landing_page_header_styles.html diff --git a/docs/_static/html/landing_page_header_styles.html b/docs/_static/html/landing_page_header_styles.html new file mode 100644 index 0000000000..d2fa50bbfd --- /dev/null +++ b/docs/_static/html/landing_page_header_styles.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index b7adde6b62..269af35b37 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,7 +3,8 @@ flair .. _flair_docs_mainpage: - +.. raw:: html + :file: html/landing_page_header_styles.html .. toctree:: :maxdepth: 3 From 097e9f6ddd3743e57ac3935489abd31019a2a99a Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:03:41 +0200 Subject: [PATCH 004/248] changes --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 269af35b37..be769eca7a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ flair .. _flair_docs_mainpage: .. raw:: html - :file: html/landing_page_header_styles.html + :file: _static/html/landing_page_header_styles.html .. toctree:: :maxdepth: 3 From 0322720d861cfbf09e30623f2bb3c8f17108a5cb Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:15:11 +0200 Subject: [PATCH 005/248] changes --- docs/_static/css/header.css | 2 +- docs/_static/flair_logo.svg | 4 ++-- docs/_static/html/landing_page_header_styles.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 2c086e1a40..efb28a6436 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -1,7 +1,7 @@ .bd-header { width: 100%; height: var(--header-height); - background: var(--white-blue) !important; + background: var(--flair-orange) !important; .header-wrapper { margin: 0 calc(10% + 10px); height: 100%; diff --git a/docs/_static/flair_logo.svg b/docs/_static/flair_logo.svg index e37b4f5a45..aad189d1b8 100755 --- a/docs/_static/flair_logo.svg +++ b/docs/_static/flair_logo.svg @@ -89,12 +89,12 @@ d="m 224.21,3.67 c -0.28,0.04 -0.3,0.33 0.01,0.42 1.21,0.42 2.32,1.25 3.11,2.44 1.92,2.92 1.11,6.77 -1.88,8.18 -0.18,0.09 -0.38,-0.08 -0.32,-0.27 0.16,-0.45 0.25,-0.94 0.25,-1.45 0,-1.57 -0.85,-2.95 -2.11,-3.69 -0.18,-0.11 -0.39,0.08 -0.32,0.28 0.22,0.66 0.16,1.46 -0.23,2.18 -0.41,0.77 -0.75,1.55 -2.6,1.77 -1.61,0.22 -2.69,0.45 -4.08,1.46 -0.03,0.02 -0.05,0.04 -0.08,0.06 -0.26,0.19 -0.51,0.4 -0.75,0.61 -0.06,0.05 -0.12,0.11 -0.17,0.16 -0.21,0.2 -0.42,0.42 -0.62,0.64 -0.05,0.06 -0.11,0.12 -0.16,0.18 -0.21,0.26 -0.42,0.52 -0.61,0.8 -0.02,0.03 -0.04,0.05 -0.06,0.08 -0.21,0.31 -0.4,0.64 -0.58,0.98 -0.02,0.04 -0.04,0.09 -0.06,0.13 -0.14,0.28 -0.27,0.57 -0.39,0.87 -0.04,0.11 -0.08,0.22 -0.12,0.32 -0.09,0.24 -0.16,0.49 -0.23,0.74 -0.03,0.12 -0.07,0.25 -0.09,0.38 -0.06,0.26 -0.1,0.52 -0.14,0.78 -0.02,0.12 -0.04,0.23 -0.05,0.35 -0.04,0.38 -0.07,0.77 -0.07,1.16 0,3.95 2.21,7.37 5.43,9.02 0.05,0.03 0.12,0.06 0.19,0.1 0.17,0.08 0.34,0.17 0.52,0.24 1.82,0.79 3.83,1.23 5.94,1.23 3.49,0 6.7,-1.18 9.26,-3.17 3.55,-2.76 5.84,-7.07 5.84,-11.92 0,-8.23 -6.62,-14.92 -14.83,-15.06 z m 7.46,18.53 c -0.82,2.9 -3.19,4.93 -5.96,5.47 -0.97,0.27 -2.06,0.29 -3.16,-0.02 -0.08,-0.02 -0.15,-0.05 -0.23,-0.08 -0.07,-0.02 -0.13,-0.03 -0.2,-0.05 V 27.5 c -2.48,-0.9 -3.96,-3.24 -3.35,-5.4 0.65,-2.29 3.39,-3.51 6.13,-2.74 1.28,0.36 2.33,1.1 3.02,2.02 1.38,-0.59 2.48,-1.77 2.92,-3.32 0.16,-0.55 0.21,-1.1 0.19,-1.64 0.93,1.71 1.22,3.76 0.64,5.78 z" id="path21" inkscape:connector-curvature="0" - style="fill:#f79910" /> \ No newline at end of file From 7211f2c8945762fa7a030909a2950e36c84d5be9 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:22:27 +0200 Subject: [PATCH 006/248] changes --- docs/_static/{flair_logo.svg => flair_logo_white.svg} | 0 docs/_static/html/landing_page_header_styles.html | 6 ++++++ docs/conf.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) rename docs/_static/{flair_logo.svg => flair_logo_white.svg} (100%) diff --git a/docs/_static/flair_logo.svg b/docs/_static/flair_logo_white.svg similarity index 100% rename from docs/_static/flair_logo.svg rename to docs/_static/flair_logo_white.svg diff --git a/docs/_static/html/landing_page_header_styles.html b/docs/_static/html/landing_page_header_styles.html index e539264515..6b8883796d 100644 --- a/docs/_static/html/landing_page_header_styles.html +++ b/docs/_static/html/landing_page_header_styles.html @@ -1,5 +1,11 @@ \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 1664a3bb0f..929358d3af 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -88,7 +88,7 @@ def linkcode_resolve(*args): 'css/header.css', ] -html_logo = "_static/flair_logo.svg" +html_logo = "_static/flair_logo_white.svg" html_show_sphinx = False # Napoleon settings From 33dbba3f743966f2ed16aca8ef38ccc30674367b Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:26:59 +0200 Subject: [PATCH 007/248] changes --- docs/_static/flair_logo_orange.svg | 101 ++++++++++++++++++ .../html/landing_page_header_styles.html | 4 +- 2 files changed, 104 insertions(+), 1 deletion(-) create mode 100755 docs/_static/flair_logo_orange.svg diff --git a/docs/_static/flair_logo_orange.svg b/docs/_static/flair_logo_orange.svg new file mode 100755 index 0000000000..aad189d1b8 --- /dev/null +++ b/docs/_static/flair_logo_orange.svg @@ -0,0 +1,101 @@ + + + + diff --git a/docs/_static/html/landing_page_header_styles.html b/docs/_static/html/landing_page_header_styles.html index 6b8883796d..b9a064d87d 100644 --- a/docs/_static/html/landing_page_header_styles.html +++ b/docs/_static/html/landing_page_header_styles.html @@ -5,7 +5,9 @@ img { visibility: hidden; } - background: red; + background-image: url("../flair_logo_orange.svg"); + background-size: contain; + background-repeat: no-repeat; } } \ No newline at end of file From fb4ee203b5b5879ee30f21dd37fd125fde0fa4c3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:29:04 +0200 Subject: [PATCH 008/248] changes --- docs/_static/flair_logo_orange.svg | 4 ++-- docs/_static/html/landing_page_header_styles.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_static/flair_logo_orange.svg b/docs/_static/flair_logo_orange.svg index aad189d1b8..e37b4f5a45 100755 --- a/docs/_static/flair_logo_orange.svg +++ b/docs/_static/flair_logo_orange.svg @@ -89,12 +89,12 @@ d="m 224.21,3.67 c -0.28,0.04 -0.3,0.33 0.01,0.42 1.21,0.42 2.32,1.25 3.11,2.44 1.92,2.92 1.11,6.77 -1.88,8.18 -0.18,0.09 -0.38,-0.08 -0.32,-0.27 0.16,-0.45 0.25,-0.94 0.25,-1.45 0,-1.57 -0.85,-2.95 -2.11,-3.69 -0.18,-0.11 -0.39,0.08 -0.32,0.28 0.22,0.66 0.16,1.46 -0.23,2.18 -0.41,0.77 -0.75,1.55 -2.6,1.77 -1.61,0.22 -2.69,0.45 -4.08,1.46 -0.03,0.02 -0.05,0.04 -0.08,0.06 -0.26,0.19 -0.51,0.4 -0.75,0.61 -0.06,0.05 -0.12,0.11 -0.17,0.16 -0.21,0.2 -0.42,0.42 -0.62,0.64 -0.05,0.06 -0.11,0.12 -0.16,0.18 -0.21,0.26 -0.42,0.52 -0.61,0.8 -0.02,0.03 -0.04,0.05 -0.06,0.08 -0.21,0.31 -0.4,0.64 -0.58,0.98 -0.02,0.04 -0.04,0.09 -0.06,0.13 -0.14,0.28 -0.27,0.57 -0.39,0.87 -0.04,0.11 -0.08,0.22 -0.12,0.32 -0.09,0.24 -0.16,0.49 -0.23,0.74 -0.03,0.12 -0.07,0.25 -0.09,0.38 -0.06,0.26 -0.1,0.52 -0.14,0.78 -0.02,0.12 -0.04,0.23 -0.05,0.35 -0.04,0.38 -0.07,0.77 -0.07,1.16 0,3.95 2.21,7.37 5.43,9.02 0.05,0.03 0.12,0.06 0.19,0.1 0.17,0.08 0.34,0.17 0.52,0.24 1.82,0.79 3.83,1.23 5.94,1.23 3.49,0 6.7,-1.18 9.26,-3.17 3.55,-2.76 5.84,-7.07 5.84,-11.92 0,-8.23 -6.62,-14.92 -14.83,-15.06 z m 7.46,18.53 c -0.82,2.9 -3.19,4.93 -5.96,5.47 -0.97,0.27 -2.06,0.29 -3.16,-0.02 -0.08,-0.02 -0.15,-0.05 -0.23,-0.08 -0.07,-0.02 -0.13,-0.03 -0.2,-0.05 V 27.5 c -2.48,-0.9 -3.96,-3.24 -3.35,-5.4 0.65,-2.29 3.39,-3.51 6.13,-2.74 1.28,0.36 2.33,1.1 3.02,2.02 1.38,-0.59 2.48,-1.77 2.92,-3.32 0.16,-0.55 0.21,-1.1 0.19,-1.64 0.93,1.71 1.22,3.76 0.64,5.78 z" id="path21" inkscape:connector-curvature="0" - style="fill:#ffffff" /> \ No newline at end of file diff --git a/docs/_templates/landing-page-banner.html b/docs/_templates/landing-page-banner.html new file mode 100644 index 0000000000..8130a83d52 --- /dev/null +++ b/docs/_templates/landing-page-banner.html @@ -0,0 +1,353 @@ +
+ +
\ No newline at end of file diff --git a/docs/_templates/landing-page-illustrations.html b/docs/_templates/landing-page-illustrations.html new file mode 100644 index 0000000000..3b4069cb75 --- /dev/null +++ b/docs/_templates/landing-page-illustrations.html @@ -0,0 +1,30 @@ +
+
+ + + Easy to Use +

+ State-of-the-art NLP with just a few lines of code! Find entities, detect sentiment, and more. + Check out our demo! +

+
+
+ + + Huge Community +

+ With a community of ~200 contributors, Flair is used in hundreds of companies, + over 2,000 open source projects, and + 2,000+ papers! +

+
+
+ + + Open Source and Free +

+ Flair is completely free and open source, making it accessible for everyone to use + and report issues. +

+
+
\ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index be769eca7a..6a6d6b795f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,6 +6,12 @@ flair .. raw:: html :file: _static/html/landing_page_header_styles.html +.. raw:: html + :file: _templates/landing-page-banner.html + +.. raw:: html + :file: _templates/landing-page-illustrations.html + .. toctree:: :maxdepth: 3 :hidden: From c92f1b5e48cdad5759c8122c8c0a65a634a6e71a Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:36:33 +0200 Subject: [PATCH 010/248] changes --- docs/_static/css/landing-page-banner.css | 71 ----------- .../css/landing-page-illustrations.css | 38 ------ docs/_static/html/landing_page_styles.html | 111 +++++++++++++++++- 3 files changed, 109 insertions(+), 111 deletions(-) delete mode 100644 docs/_static/css/landing-page-banner.css delete mode 100644 docs/_static/css/landing-page-illustrations.css diff --git a/docs/_static/css/landing-page-banner.css b/docs/_static/css/landing-page-banner.css deleted file mode 100644 index ae3a78525c..0000000000 --- a/docs/_static/css/landing-page-banner.css +++ /dev/null @@ -1,71 +0,0 @@ -.landing-page { - .banner { - display: flex; - height: 510px; - background: var(--flair-orange); - .left-side { - align-items: flex-start; - display: flex; - flex-direction: column; - height: 100%; - justify-content: center; - width: 50%; - padding-left: 10%; - padding-right: 10%; - box-sizing: border-box; - svg { - height: 20%; - width: auto; - } - & > span { - font-size: 1.5rem; - margin: 1.3em 0; - line-height: 1.2em; - color: var(--white-blue); - } - #get-started { - background: var(--white-blue); - border: none; - padding: 0.2em 0.9em; - font-size: 1.5rem; - color: var(--blue-white); - font-weight: 600; - border-radius: .5em; - transition: transform 200ms cubic-bezier(0,.35,.08,.89); - &:hover { - transform: scale(1.1); - } - } - } - .right-side { - display: flex; - justify-content: flex-start; - align-items: center; - width: 50%; - .card { - margin-left: 3rem; - border-radius: 1rem; - width: 20%; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - transition: transform 200ms cubic-bezier(0,.35,.08,.89); - background: var(--white-blue); - color: var(--blue-white); - min-height: 42%; - &:hover { - transform: scale(1.1); - } - svg { - height: 40%; - width: auto; - } - & > span { - color: var(--blue-white); - margin-top: 1em; - } - } - } - } -} \ No newline at end of file diff --git a/docs/_static/css/landing-page-illustrations.css b/docs/_static/css/landing-page-illustrations.css deleted file mode 100644 index 28c58dcb7a..0000000000 --- a/docs/_static/css/landing-page-illustrations.css +++ /dev/null @@ -1,38 +0,0 @@ -.landing-page-illustrations { - display: flex; - padding: 5rem; - background: var(--white-blue); - .item { - flex: 1 1 0; - display: flex; - flex-direction: column; - justify-content: flex-start; - align-items: flex-start; - padding: 0 5%; - &:not(:last-of-type) { - border-right: #ccc 2px solid; - } - svg { - height: 12vw; - width: auto; - & + span { - margin-top: 2.5em; - margin-bottom: 0.75em; - font-size: 1.5rem; - font-weight: 600; - } - &:nth-of-type(2) { - display: none; - :root .dark-mode & { - display: block; - } - } - :root .dark-mode & { - display: none; - } - } - span, p { - color: var(--blue-white); - } - } -} \ No newline at end of file diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index c9ca7a8e5c..2cfc618bdc 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -1,6 +1,4 @@ \ No newline at end of file From 72fa60296d292e0cd22f0b3c7651e018be4fb6fe Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:38:40 +0200 Subject: [PATCH 011/248] changes --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 6a6d6b795f..47876aea55 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ flair .. _flair_docs_mainpage: .. raw:: html - :file: _static/html/landing_page_header_styles.html + :file: _static/html/landing_page_styles.html .. raw:: html :file: _templates/landing-page-banner.html From dbdf9d247ac6c4dea878c1aca2c238813283f55d Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 4 Aug 2024 11:44:42 +0200 Subject: [PATCH 012/248] changes --- docs/_static/html/landing_page_styles.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index 2cfc618bdc..fe99d482d7 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -1,4 +1,10 @@ \ No newline at end of file From da3ee908aaa0cecc8ab64420f49558471014afc6 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 12:34:33 +0200 Subject: [PATCH 034/248] changes --- docs/_static/html/landing_page_styles.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index 2a42b60e9d..35661ab101 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -159,7 +159,7 @@ a.list-group-item { background: var(--white-blue); &:hover { - background: var(--white-transparent); + background: var(--orange-white-transparent); color: var(--orange-white); } span { From 4960ad748c8b1bac3aa6f647896038083617a950 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 12:35:45 +0200 Subject: [PATCH 035/248] changes --- docs/_static/html/landing_page_styles.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index 35661ab101..9871541a87 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -160,7 +160,7 @@ background: var(--white-blue); &:hover { background: var(--orange-white-transparent); - color: var(--orange-white); + color: var(--white-blue); } span { color: var(--orange-white); From ac06833edba1f4582882d3a574aee6e8c13115dd Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 12:38:07 +0200 Subject: [PATCH 036/248] changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 112a1aec01..dc117caf74 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ } # dummy value that sphinx-github-style won't crash when run in temp folder. html_theme_options = { - "navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"] + "navbar_end": ["version-switcher", "navbar-icon-links"] } From ebf02556ab91cfb7b21dc8ee9921bbe065bc3557 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 12:40:58 +0200 Subject: [PATCH 037/248] changes --- docs/_templates/darkmode-toggle.html | 138 +++++++++++++++++++++++++++ docs/conf.py | 2 +- 2 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 docs/_templates/darkmode-toggle.html diff --git a/docs/_templates/darkmode-toggle.html b/docs/_templates/darkmode-toggle.html new file mode 100644 index 0000000000..9610954b69 --- /dev/null +++ b/docs/_templates/darkmode-toggle.html @@ -0,0 +1,138 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/docs/conf.py b/docs/conf.py index dc117caf74..f24ec214ac 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ } # dummy value that sphinx-github-style won't crash when run in temp folder. html_theme_options = { - "navbar_end": ["version-switcher", "navbar-icon-links"] + "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"] } From 665d495ebd06d18036a910d99365388547744549 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 12:47:38 +0200 Subject: [PATCH 038/248] changes --- docs/_static/css/main.css | 18 +++++++++++++++++- docs/_templates/darkmode-toggle.html | 5 ----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 5c28405bbf..67b489b6ae 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -21,7 +21,7 @@ font-style: normal; } -:root[data-theme=dark] { +:root.dark-mode { --white-blue: var(--flair-blue); --blue-white: white; --orange-white: white; @@ -119,4 +119,20 @@ a { .inv-sel::selection { background: var(--white-blue); color: var(--flair-orange); +} + +.fill-white-blue { + fill: var(--white-blue); + stroke: none; +} + + +.fill-orange { + fill: var(--flair-orange); + stroke: none; +} + +.stroke-orange-white { + stroke: var(--orange-white); + fill: none; } \ No newline at end of file diff --git a/docs/_templates/darkmode-toggle.html b/docs/_templates/darkmode-toggle.html index 9610954b69..a5851fb072 100644 --- a/docs/_templates/darkmode-toggle.html +++ b/docs/_templates/darkmode-toggle.html @@ -117,11 +117,6 @@ id="circle1" style="stroke:#ffffff;stroke-width:0.50868;stroke-dasharray:none;stroke-opacity:1" /> - + From d9314fad3fb42cd33da8de9929ba4682bc8dd936 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:28:44 +0200 Subject: [PATCH 044/248] changes --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index f24ec214ac..8352d92de1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,8 @@ } # dummy value that sphinx-github-style won't crash when run in temp folder. html_theme_options = { - "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"] + "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"], + "show_prev_next": False } From 711baafc0f1fc0ab3bd0dfab5eba12ac1e5560ed Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:33:43 +0200 Subject: [PATCH 045/248] changes --- docs/_static/css/header.css | 112 ++++++++++++++++++++++++++ docs/_templates/version-switcher.html | 2 +- 2 files changed, 113 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 55fc362886..16157e3360 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -3,6 +3,19 @@ height: var(--header-height); background: var(--flair-orange) !important; box-shadow: none; + .bd-header__inner { + margin: 0 10%; + padding: 0; + height: 100%; + display: flex; + justify-content: space-between; + .navbar-header-items__start { + padding: 0; + height: 55%;.bd-header { + width: 100%; + height: var(--header-height); + background: var(--flair-orange) !important; + box-shadow: none; .bd-header__inner { margin: 0 10%; padding: 0; @@ -69,6 +82,105 @@ } } } + .navbar-header-items__end { + + .navbar-item:first-of-type { + button.search-button { + background-size: contain; + background-repeat: no-repeat; + background-position: center; + border-radius: 0; + height: 1.75rem; + width: 1.75rem; + i { + visibility: hidden; + &:focus, &, &:active { + border: none; + outline: none; + } + } + } + } + .navbar-item:nth-of-type(2) { + svg { + cursor: pointer; + &:first-of-type { + :root .dark-mode & { + display: none; + } + } + &:nth-of-type(2) { + display: none; + :root .dark-mode & { + display: block; + } + } + } + } + svg { + height: 35%; + width: auto; + } + } + } +} + .navbar-item { + height: 100%; + .navbar-brand.logo { + height: 100%; + padding: 0; + display: block; + .logo__image { + height: 100%; + width: auto; + } + } + } + } + nav { + height: 100%; + ul.bd-navbar-elements { + display: flex; + height: 100%; + li.nav-item { + height: auto; + display: flex; + align-items: center; + margin-right: 0; + margin-left: 3rem; + + &.active a { + font-weight: inherit; + &::after { + width: 100%; + } + } + a { + position: relative; + font-size: 1.1rem; + padding: 0; + color: white; + &:hover { + color: white; + &::after { + width: 100%; + } + } + &::after { + transition: width 200ms cubic-bezier(0,.35,.08,.89); + content: ""; + width: 0; + height: 3px; + background-color: white; + position: absolute; + bottom: -.5rem; + left: 50%; + transform: translateX(-50%); + } + } + } + } + } .navbar-header-items__end { .navbar-item:first-of-type { diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index 6b598954e5..a90f974b89 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -43,7 +43,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("_static/magnifying_glass.svg"); + background-image: url("{{ pathto(_static/magnifying_glass.svg) }}"); } } } From cc658b1874264ea22830b314b175b6ffd9d691dd Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:37:03 +0200 Subject: [PATCH 046/248] changes --- docs/_templates/version-switcher.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index a90f974b89..85f7f7efc1 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -43,7 +43,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("{{ pathto(_static/magnifying_glass.svg) }}"); + background-image: url("{{ pathto(magnifying_glass.svg) }}"); } } } From cc1f12c52a72ded58603d8c663afd28be3e8972e Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:38:17 +0200 Subject: [PATCH 047/248] changes --- docs/_templates/version-switcher.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index 85f7f7efc1..b033e82285 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -43,7 +43,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("{{ pathto(magnifying_glass.svg) }}"); + background-image: url("{{ pathto(../_static/magnifying_glass.svg) }}"); } } } From c7ec7f113ac683d2261f3459926e91ed9ad498af Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:52:03 +0200 Subject: [PATCH 048/248] changes --- docs/_static/css/header.css | 113 --------------------- docs/_static/html/landing_page_styles.html | 15 ++- docs/_static/magnifying_glass.svg | 10 +- docs/_static/magnifying_glass_dark.svg | 56 ++++++++++ docs/_templates/version-switcher.html | 2 +- 5 files changed, 76 insertions(+), 120 deletions(-) create mode 100644 docs/_static/magnifying_glass_dark.svg diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 16157e3360..b927575b82 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -3,19 +3,6 @@ height: var(--header-height); background: var(--flair-orange) !important; box-shadow: none; - .bd-header__inner { - margin: 0 10%; - padding: 0; - height: 100%; - display: flex; - justify-content: space-between; - .navbar-header-items__start { - padding: 0; - height: 55%;.bd-header { - width: 100%; - height: var(--header-height); - background: var(--flair-orange) !important; - box-shadow: none; .bd-header__inner { margin: 0 10%; padding: 0; @@ -123,104 +110,4 @@ } } } -} - .navbar-item { - height: 100%; - .navbar-brand.logo { - height: 100%; - padding: 0; - display: block; - .logo__image { - height: 100%; - width: auto; - } - } - } - } - nav { - height: 100%; - ul.bd-navbar-elements { - display: flex; - height: 100%; - li.nav-item { - height: auto; - display: flex; - align-items: center; - margin-right: 0; - margin-left: 3rem; - - &.active a { - font-weight: inherit; - &::after { - width: 100%; - } - } - a { - position: relative; - font-size: 1.1rem; - padding: 0; - color: white; - &:hover { - color: white; - &::after { - width: 100%; - } - } - &::after { - transition: width 200ms cubic-bezier(0,.35,.08,.89); - content: ""; - width: 0; - height: 3px; - background-color: white; - position: absolute; - bottom: -.5rem; - left: 50%; - transform: translateX(-50%); - } - } - } - } - } - .navbar-header-items__end { - - .navbar-item:first-of-type { - button.search-button { - background-size: contain; - background-repeat: no-repeat; - background-position: center; - border-radius: 0; - background-color: red; - height: 55%; - width: auto; - i { - visibility: hidden; - &:focus, &, &:active { - border: none; - outline: none; - } - } - } - } - .navbar-item:nth-of-type(2) { - svg { - cursor: pointer; - &:first-of-type { - :root .dark-mode & { - display: none; - } - } - &:nth-of-type(2) { - display: none; - :root .dark-mode & { - display: block; - } - } - } - } - svg { - height: 35%; - width: auto; - } - } - } } \ No newline at end of file diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index 014a148462..2815b9573a 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -172,4 +172,17 @@ } } } - \ No newline at end of file + .bd-header { + .bd-header__inner { + .navbar-header-items__end { + .navbar-item:first-of-type { + button.search-button { + :root .dark-mode & { + background-image: url("{{ pathto('_static/magnifying_glass_dark.svg', 1) }}"); + } + } + } + } + } + } + diff --git a/docs/_static/magnifying_glass.svg b/docs/_static/magnifying_glass.svg index 5350d0e540..3048ce30c6 100644 --- a/docs/_static/magnifying_glass.svg +++ b/docs/_static/magnifying_glass.svg @@ -14,7 +14,7 @@ xmlns:svg="http://www.w3.org/2000/svg"> + style="fill:none;stroke:#f79910;stroke-opacity:1"> + style="fill:none;stroke:#f79910;stroke-opacity:1"> + style="fill:none;stroke:#f79910;stroke-opacity:1" /> + style="fill:none;stroke:#f79910;stroke-opacity:1" /> diff --git a/docs/_static/magnifying_glass_dark.svg b/docs/_static/magnifying_glass_dark.svg new file mode 100644 index 0000000000..5350d0e540 --- /dev/null +++ b/docs/_static/magnifying_glass_dark.svg @@ -0,0 +1,56 @@ + + + + + + + + + diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index b033e82285..a908b0044e 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -43,7 +43,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("{{ pathto(../_static/magnifying_glass.svg) }}"); + background-image: url("{{ pathto('_static/magnifying_glass.svg', 1) }}"); } } } From 413317d318dfaf41530da337a0900a3e494d5c56 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:54:32 +0200 Subject: [PATCH 049/248] changes --- docs/_static/html/landing_page_styles.html | 13 ------------- docs/index.rst | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/docs/_static/html/landing_page_styles.html b/docs/_static/html/landing_page_styles.html index 2815b9573a..0b43d7bb72 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_static/html/landing_page_styles.html @@ -172,17 +172,4 @@ } } } - .bd-header { - .bd-header__inner { - .navbar-header-items__end { - .navbar-item:first-of-type { - button.search-button { - :root .dark-mode & { - background-image: url("{{ pathto('_static/magnifying_glass_dark.svg', 1) }}"); - } - } - } - } - } - } diff --git a/docs/index.rst b/docs/index.rst index c8ddac1c9f..08241759ef 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,6 +11,24 @@ .. raw:: html :file: _templates/landing-page-illustrations.html +.. raw:: html + + + .. toctree:: :maxdepth: 3 :hidden: From 7335d3dfd1ffb4d48ef9701a603838e659a1afdc Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 13:56:48 +0200 Subject: [PATCH 050/248] changes --- .../landing_page_styles.html | 13 ++++++++++++ docs/index.rst | 20 +------------------ 2 files changed, 14 insertions(+), 19 deletions(-) rename docs/{_static/html => _templates}/landing_page_styles.html (92%) diff --git a/docs/_static/html/landing_page_styles.html b/docs/_templates/landing_page_styles.html similarity index 92% rename from docs/_static/html/landing_page_styles.html rename to docs/_templates/landing_page_styles.html index 0b43d7bb72..3c9efe3ce1 100644 --- a/docs/_static/html/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -172,4 +172,17 @@ } } } + .bd-header { + .bd-header__inner { + .navbar-header-items__end { + .navbar-item:first-of-type { + button.search-button { + :root .dark-mode & { + background-image: url("{{ pathto('_static/magnifying_glass_dark.svg', 1) }}"); + } + } + } + } + } + } diff --git a/docs/index.rst b/docs/index.rst index 08241759ef..c39010a2c7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,7 +3,7 @@ .. title:: Home .. raw:: html - :file: _static/html/landing_page_styles.html + :file: _templates/landing_page_styles.html .. raw:: html :file: _templates/landing-page-banner.html @@ -11,24 +11,6 @@ .. raw:: html :file: _templates/landing-page-illustrations.html -.. raw:: html - - - .. toctree:: :maxdepth: 3 :hidden: From 82c73beab26207a89b14a976f0992d61e8a19cde Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:01:48 +0200 Subject: [PATCH 051/248] changes --- docs/_templates/landing_page_styles.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html index 3c9efe3ce1..d9bf936818 100644 --- a/docs/_templates/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -178,7 +178,7 @@ .navbar-item:first-of-type { button.search-button { :root .dark-mode & { - background-image: url("{{ pathto('_static/magnifying_glass_dark.svg', 1) }}"); + background-image: url("_static/magnifying_glass_dark.svg"); } } } From 081db63cb8a5166f4d19a1c87bfa086cfee7b92d Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:04:50 +0200 Subject: [PATCH 052/248] changes --- docs/_templates/version-switcher.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index a908b0044e..9fb4bc511e 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -43,7 +43,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("{{ pathto('_static/magnifying_glass.svg', 1) }}"); + background-image: url("{{ pathto('_static/magnifying_glass_dark.svg', 1) }}"); } } } From 0de42e8804d18ef30e32f368f39890e912a2a70a Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:07:23 +0200 Subject: [PATCH 053/248] changes --- docs/_templates/landing_page_styles.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html index d9bf936818..ca4c834d8b 100644 --- a/docs/_templates/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -177,6 +177,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { + background-image: url("{{ pathto('_static/magnifying_glass.svg', 1) }}"); :root .dark-mode & { background-image: url("_static/magnifying_glass_dark.svg"); } From 056bdfffa04b01b7819e67b696c55ca193b737f4 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:07:39 +0200 Subject: [PATCH 054/248] changes --- docs/_templates/landing_page_styles.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html index ca4c834d8b..f88a033b3f 100644 --- a/docs/_templates/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -177,7 +177,7 @@ .navbar-header-items__end { .navbar-item:first-of-type { button.search-button { - background-image: url("{{ pathto('_static/magnifying_glass.svg', 1) }}"); + background-image: url("_static/magnifying_glass.svg"); :root .dark-mode & { background-image: url("_static/magnifying_glass_dark.svg"); } From 1d5f3c73bb738965b8e5274e5963e7d28ee610a1 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:13:07 +0200 Subject: [PATCH 055/248] changes --- docs/_static/css/header.css | 15 ++++++++++++ docs/_static/css/main.css | 16 ------------- docs/_templates/landing_page_styles.html | 30 ++++++++++++++---------- 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index b927575b82..6ef02d0faf 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -110,4 +110,19 @@ } } } +} + +.fill-white-blue { + fill: var(--white-blue); + stroke: none; +} + +.fill-orange { + fill: var(--flair-orange); + stroke: none; +} + +.stroke-moon { + stroke: white; + fill: none; } \ No newline at end of file diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 1b5007b26e..1c24bfc662 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -119,20 +119,4 @@ a { .inv-sel::selection { background: var(--white-blue); color: var(--flair-orange); -} - -.fill-white-blue { - fill: var(--white-blue); - stroke: none; -} - - -.fill-orange { - fill: var(--flair-orange); - stroke: none; -} - -.stroke-orange-white { - stroke: var(--orange-white); - fill: none; } \ No newline at end of file diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html index f88a033b3f..b9fcebe573 100644 --- a/docs/_templates/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -173,17 +173,21 @@ } } .bd-header { - .bd-header__inner { - .navbar-header-items__end { - .navbar-item:first-of-type { - button.search-button { - background-image: url("_static/magnifying_glass.svg"); - :root .dark-mode & { - background-image: url("_static/magnifying_glass_dark.svg"); - } - } - } - } - } - } + .bd-header__inner { + .navbar-header-items__end { + .navbar-item:first-of-type { + button.search-button { + background-image: url("_static/magnifying_glass.svg"); + :root .dark-mode & { + background-image: url("_static/magnifying_glass_dark.svg"); + } + } + } + } + } + } + .stroke-moon { + stroke: var(--orange-white); + fill: none; + } From 9c25250143c9a258c4da6568bbac1bd24a80cfc3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 14:13:30 +0200 Subject: [PATCH 056/248] changes --- docs/_templates/darkmode-toggle.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/darkmode-toggle.html b/docs/_templates/darkmode-toggle.html index a5851fb072..da11101150 100644 --- a/docs/_templates/darkmode-toggle.html +++ b/docs/_templates/darkmode-toggle.html @@ -1,7 +1,7 @@
- + Date: Wed, 7 Aug 2024 14:15:47 +0200 Subject: [PATCH 057/248] changes --- docs/_static/css/header.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 6ef02d0faf..3011bab05c 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -70,7 +70,9 @@ } } .navbar-header-items__end { - + .navbar-item:not(:last-of-type) { + margin-right: 2rem; + } .navbar-item:first-of-type { button.search-button { background-size: contain; From 7a74d52f5abefe8cd036d41502efc6559d72a6b2 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 15:00:37 +0200 Subject: [PATCH 058/248] changes --- docs/_static/css/footer.css | 12 ++++++++++++ docs/conf.py | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 docs/_static/css/footer.css diff --git a/docs/_static/css/footer.css b/docs/_static/css/footer.css new file mode 100644 index 0000000000..a28e39b799 --- /dev/null +++ b/docs/_static/css/footer.css @@ -0,0 +1,12 @@ +.bd-footer { + border: none; + background: var(--blue-orange); + .bd-footer__inner { + padding: 1rem 10%; + margin: 0; + box-sizing: border-box; + .footer-item * { + color: white; + } + } +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 8352d92de1..c9b02310b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,8 @@ html_theme_options = { "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"], - "show_prev_next": False + "show_prev_next": False, + "footer_end": [] } @@ -80,6 +81,7 @@ def linkcode_resolve(*args): html_css_files = [ 'css/main.css', 'css/header.css', + 'css/footer.css', 'css/version-switcher.css', ] From e067a437351996fd463fc242ea50f963c6fd79fa Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 15:17:31 +0200 Subject: [PATCH 059/248] changes --- docs/_templates/footer-links.html | 5 +++++ docs/_templates/landing-page-illustrations.html | 6 +++--- docs/_templates/version-switcher.html | 1 + docs/conf.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 docs/_templates/footer-links.html diff --git a/docs/_templates/footer-links.html b/docs/_templates/footer-links.html new file mode 100644 index 0000000000..074731dfb5 --- /dev/null +++ b/docs/_templates/footer-links.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/docs/_templates/landing-page-illustrations.html b/docs/_templates/landing-page-illustrations.html index 3b4069cb75..7a2185a4e4 100644 --- a/docs/_templates/landing-page-illustrations.html +++ b/docs/_templates/landing-page-illustrations.html @@ -5,7 +5,7 @@ Easy to Use

State-of-the-art NLP with just a few lines of code! Find entities, detect sentiment, and more. - Check out our demo! + Check out our demo!

@@ -14,7 +14,7 @@ Huge Community

With a community of ~200 contributors, Flair is used in hundreds of companies, - over 2,000 open source projects, and + over 2,000 open source projects, and 2,000+ papers!

@@ -24,7 +24,7 @@ Open Source and Free

Flair is completely free and open source, making it accessible for everyone to use - and report issues. + and report issues.

\ No newline at end of file diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html index 9fb4bc511e..642039f919 100644 --- a/docs/_templates/version-switcher.html +++ b/docs/_templates/version-switcher.html @@ -36,6 +36,7 @@ `); + document.querySelector('footer.bd-footer') Open Source and Free

From 627a0d69bf22c30b450f245c342d30ea931aa589 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 16:09:30 +0200 Subject: [PATCH 068/248] changes --- docs/_templates/landing-page-illustrations.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/landing-page-illustrations.html b/docs/_templates/landing-page-illustrations.html index fa6dc03869..7a2185a4e4 100644 --- a/docs/_templates/landing-page-illustrations.html +++ b/docs/_templates/landing-page-illustrations.html @@ -19,7 +19,7 @@

- + Open Source and Free

From a801fc205f3847af4dcd060ccbd05cf5bba471b0 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 16:10:33 +0200 Subject: [PATCH 069/248] changes --- docs/_templates/landing-page-illustrations.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/landing-page-illustrations.html b/docs/_templates/landing-page-illustrations.html index 7a2185a4e4..b6b55230a5 100644 --- a/docs/_templates/landing-page-illustrations.html +++ b/docs/_templates/landing-page-illustrations.html @@ -20,7 +20,7 @@

- + Open Source and Free

Flair is completely free and open source, making it accessible for everyone to use From e6128a47acb886081842fd881430611b5416a38b Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 20:22:52 +0200 Subject: [PATCH 070/248] changes --- docs/_static/css/header.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 7ddca94db2..8cc42304f4 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -116,6 +116,28 @@ } } +.search-button__wrapper.show { + .search-button__overlay { + background: var(--flair-blue); + } + form.bd-search { + i { + display: none; + } + input { + border: 2px var(--flair-orange) solid; + color: var(--flair-blue); + box-shadow: none; + padding: .25em 5.5em .25em .75em; + border-radius: 1rem; + font-size: 1.2rem; + } + .search-button__kbd-shortcut { + align-items: center; + } + } +} + .fill-white-blue { fill: var(--white-blue); stroke: none; From 78c22a349f9f6ee21e0c6378db3af4d63381acef Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 20:32:21 +0200 Subject: [PATCH 071/248] changes --- docs/_static/css/main.css | 4 ++++ docs/conf.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 1c24bfc662..cb2312234c 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -119,4 +119,8 @@ a { .inv-sel::selection { background: var(--white-blue); color: var(--flair-orange); +} + +.bd-container__inner { + max-width: 100%; } \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index ee93d563c9..b607ec474c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,7 +29,8 @@ html_theme_options = { "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"], "show_prev_next": False, - "footer_end": ["footer-links/legal-notice.html", "footer-links/x.html", "footer-links/linkedin.html"] + "footer_end": ["footer-links/legal-notice.html", "footer-links/x.html", "footer-links/linkedin.html"], + "secondary_sidebar_items": [] } From 37da6d5b4ba486d0292a284e87fd7beb7da91b96 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 20:41:24 +0200 Subject: [PATCH 072/248] changes --- docs/_static/css/sidebar.css | 5 +++++ docs/conf.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/_static/css/sidebar.css diff --git a/docs/_static/css/sidebar.css b/docs/_static/css/sidebar.css new file mode 100644 index 0000000000..b72a05b072 --- /dev/null +++ b/docs/_static/css/sidebar.css @@ -0,0 +1,5 @@ +.bd-sidebar-primary.bd-sidebar { + h3 { + display: none; + } +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index b607ec474c..b421b261e4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -84,6 +84,7 @@ def linkcode_resolve(*args): 'css/header.css', 'css/footer.css', 'css/version-switcher.css', + 'css/sidebar.css', ] html_logo = "_static/flair_logo_white.svg" @@ -111,7 +112,6 @@ def linkcode_resolve(*args): "**": [ "globaltoc.html", "searchbox.html", - "versioning.html", ], "index": [], } From 8e6e0d7becac2bb6e5144e5d602880c59e0ee75c Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 20:51:26 +0200 Subject: [PATCH 073/248] changes --- docs/_static/css/sidebar.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/_static/css/sidebar.css b/docs/_static/css/sidebar.css index b72a05b072..38eba96a5c 100644 --- a/docs/_static/css/sidebar.css +++ b/docs/_static/css/sidebar.css @@ -1,5 +1,29 @@ .bd-sidebar-primary.bd-sidebar { + padding: 2rem; + width: auto; h3 { display: none; } + * { + color: var(--flair-blue); + } + .toctree-l1 { + font-size: 1.5rem; + font-weight: 600; + margin-top: .8rem; + } + .toctree-l2 { + font-size: 1rem; + font-weight: 400; + margin-top: .8rem; + ul { + margin-left: 1rem; + } + } + .toctree-l3 { + margin-top: .8rem; + } + .current { + color: var(--flair-orange); + } } \ No newline at end of file From 86cb934433ee374d7ee63ca5c2d960520a05ab7b Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 21:34:23 +0200 Subject: [PATCH 074/248] changes --- docs/_static/css/main.css | 20 +++++++++++++ docs/_static/css/sidebar.css | 36 ++++++++++++++++++++++-- docs/_templates/landing_page_styles.html | 3 ++ docs/conf.py | 3 +- 4 files changed, 57 insertions(+), 5 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index cb2312234c..ee52630e51 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -123,4 +123,24 @@ a { .bd-container__inner { max-width: 100%; +} + + /* width */ +::-webkit-scrollbar { + width: 10px; +} + +/* Track */ +::-webkit-scrollbar-track { + background: #2f2e41; +} + +/* Handle */ +::-webkit-scrollbar-thumb { + background: #888; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: #555; } \ No newline at end of file diff --git a/docs/_static/css/sidebar.css b/docs/_static/css/sidebar.css index 38eba96a5c..4a219be4f9 100644 --- a/docs/_static/css/sidebar.css +++ b/docs/_static/css/sidebar.css @@ -1,11 +1,35 @@ .bd-sidebar-primary.bd-sidebar { - padding: 2rem; - width: auto; + top: 90px; + width: 350px; + padding: 0; + border: none; + overflow: initial; + background: var(--white-blue); + #rtd-footer-container, .sidebar-primary-items__end { + display: none; + } + &::after { + content: ""; + background: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 100%); + height: 100%; + width: 7px; + position: absolute; + right: 0; + transform: translateX(100%); + top: 0; + } h3 { display: none; } * { - color: var(--flair-blue); + color: var(--blue-white); + } + .sidebar-primary-items__start { + overflow-y: auto; + padding: 2rem; + } + .sidebar-primary-item { + padding: 0; } .toctree-l1 { font-size: 1.5rem; @@ -26,4 +50,10 @@ .current { color: var(--flair-orange); } + code { + padding: 0; + background: transparent; + border: none; + font-weight: 400; + } } \ No newline at end of file diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html index b9fcebe573..042cca785c 100644 --- a/docs/_templates/landing_page_styles.html +++ b/docs/_templates/landing_page_styles.html @@ -190,4 +190,7 @@ stroke: var(--orange-white); fill: none; } + #searchbox { + display: none; + } diff --git a/docs/conf.py b/docs/conf.py index b421b261e4..9aa061a52b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,8 +110,7 @@ def linkcode_resolve(*args): html_sidebars = { "**": [ - "globaltoc.html", - "searchbox.html", + "globaltoc.html" ], "index": [], } From 1834e12d5bd65d06158318910aeeb748d2a920c3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 21:38:59 +0200 Subject: [PATCH 075/248] changes --- docs/_static/css/header.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/css/header.css b/docs/_static/css/header.css index 8cc42304f4..4f075f5fc7 100644 --- a/docs/_static/css/header.css +++ b/docs/_static/css/header.css @@ -60,7 +60,7 @@ transition: width 200ms cubic-bezier(0,.35,.08,.89); content: ""; width: 0; - height: 3px; + height: 2px; background-color: white; position: absolute; bottom: -.5rem; From e788605c40c9a32d2cd0e0bcf2f77ea1adbaa7cd Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 21:49:49 +0200 Subject: [PATCH 076/248] changes --- docs/_static/css/main.css | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index ee52630e51..5b68d02269 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -14,6 +14,9 @@ --blue-orange: var(--flair-blue); --header-height: 90px; --footer-height: 60px; + --track-color: #dddddd; + --track-thumb: #bbbbbb; + --track-thumb-hover: #999999; font-family: "Afacad", sans-serif; font-optical-sizing: auto; font-weight: 400; @@ -28,6 +31,9 @@ --orange-blue: var(--flair-blue); --blue-orange: var(--flair-orange); --orange-white-transparent: var(--white-transparent); + --track-color: #38374a; + --track-thumb: #4c4b5c; + --track-thumb-hover: #5c5b69; } .fill-white-blue { @@ -125,22 +131,18 @@ a { max-width: 100%; } - /* width */ ::-webkit-scrollbar { width: 10px; } -/* Track */ ::-webkit-scrollbar-track { - background: #2f2e41; + background: var(--track-color); } -/* Handle */ ::-webkit-scrollbar-thumb { - background: #888; + background: var(--track-thumb); } -/* Handle on hover */ ::-webkit-scrollbar-thumb:hover { - background: #555; + background: var(--track-thumb-hover); } \ No newline at end of file From 509f6847190c8afb6b72abe4345e69656cb7ed59 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 21:56:10 +0200 Subject: [PATCH 077/248] changes --- docs/_static/css/main.css | 17 +++++++++-------- docs/_static/css/sidebar.css | 3 +++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 5b68d02269..8968068092 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -131,18 +131,19 @@ a { max-width: 100%; } -::-webkit-scrollbar { - width: 10px; +body::-webkit-scrollbar, ::-webkit-scrollbar { + width: 10px; } -::-webkit-scrollbar-track { - background: var(--track-color); +body::-webkit-scrollbar-track, ::-webkit-scrollbar-track { + background: var(--track-color); } -::-webkit-scrollbar-thumb { - background: var(--track-thumb); +body::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb { + background: var(--track-thumb); + border-radius: 0; } -::-webkit-scrollbar-thumb:hover { - background: var(--track-thumb-hover); +body::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:hover { + background: var(--track-thumb-hover); } \ No newline at end of file diff --git a/docs/_static/css/sidebar.css b/docs/_static/css/sidebar.css index 4a219be4f9..749122db8c 100644 --- a/docs/_static/css/sidebar.css +++ b/docs/_static/css/sidebar.css @@ -24,6 +24,9 @@ * { color: var(--blue-white); } + a:hover { + color: var(--flair-orange); + } .sidebar-primary-items__start { overflow-y: auto; padding: 2rem; From 694cbba3a6d21affc800a8c7a5ace58bd9b113ae Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 7 Aug 2024 21:58:47 +0200 Subject: [PATCH 078/248] changes --- docs/_static/css/sidebar.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/_static/css/sidebar.css b/docs/_static/css/sidebar.css index 749122db8c..598be603cd 100644 --- a/docs/_static/css/sidebar.css +++ b/docs/_static/css/sidebar.css @@ -26,6 +26,12 @@ } a:hover { color: var(--flair-orange); + * { + color: var(--flair-orange); + } + } + a * { + transition: color 200ms cubic-bezier(0,.35,.08,.89); } .sidebar-primary-items__start { overflow-y: auto; From 6bbc2bbfc23abda65e347bc6685786b5aaa4edca Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 09:04:48 +0200 Subject: [PATCH 079/248] changes --- docs/_static/css/tutorial.css | 33 +++++++++++++++++++++++++++++++++ docs/conf.py | 1 + 2 files changed, 34 insertions(+) create mode 100644 docs/_static/css/tutorial.css diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css new file mode 100644 index 0000000000..16b47118d1 --- /dev/null +++ b/docs/_static/css/tutorial.css @@ -0,0 +1,33 @@ +ul.bd-breadcrumbs { + li.breadcrumb-home .fa-home { + &::before { + content: "Home"; + font-family: "Afacad", sans-serif; + font-size: 1rem; + font-weight: 400; + color: var(--blue-white); + } + } + li.breadcrumb-item:not(.breadcrumb-home) { + &::before { + content: ""; + width: 1px; + height: 1rem; + background: white; + display: inline-block; + padding: 0; + transform: rotate(30deg); + margin: 0 .6rem; + } + a { + color: var(--blue-white); + font-size: 1rem; + font-weight: 400; + } + &.active { + color: var(--blue-white); + font-size: 1rem; + font-weight: 400; + } + } +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 9aa061a52b..f5e6d6c6a1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -85,6 +85,7 @@ def linkcode_resolve(*args): 'css/footer.css', 'css/version-switcher.css', 'css/sidebar.css', + 'css/tutorial.css' ] html_logo = "_static/flair_logo_white.svg" From 60e2b72f76085b2c3a6f1d70d264603361e94bd0 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 09:13:27 +0200 Subject: [PATCH 080/248] changes --- docs/_static/css/tutorial.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 16b47118d1..d0a0462e48 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -1,3 +1,21 @@ +.bd-header-article { + margin-bottom: 2rem; +} + +.bd-main .bd-content .bd-article-container{ + max-width: initial; + padding: 4rem 5rem; + box-sizing: border-box; +} + +.bd-main .bd-content .bd-article-container .bd-article { + padding: 0; +} + +.header-article-items.header-article__inner { + padding: 0; +} + ul.bd-breadcrumbs { li.breadcrumb-home .fa-home { &::before { From a5b859863d6e65f78753ac496c1823ec79d1c8ec Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 09:21:51 +0200 Subject: [PATCH 081/248] changes --- docs/_static/css/main.css | 2 +- docs/_static/css/tutorial.css | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 8968068092..1778597b8b 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -20,7 +20,7 @@ font-family: "Afacad", sans-serif; font-optical-sizing: auto; font-weight: 400; - font-size: 20px; + font-size: 21px; font-style: normal; } diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index d0a0462e48..9d700f7fd9 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -1,7 +1,3 @@ -.bd-header-article { - margin-bottom: 2rem; -} - .bd-main .bd-content .bd-article-container{ max-width: initial; padding: 4rem 5rem; @@ -10,6 +6,22 @@ .bd-main .bd-content .bd-article-container .bd-article { padding: 0; + h1 { + font-size: 3rem; + color: var(--blue-white); + font-weight: 600; + margin-top: 0.5em; + } + h2 { + font-size: 1.6rem; + color: var(--blue-white); + font-weight: 600; + margin-top: 2em; + } + p { + color: var(--blue-white); + margin: 0.5em 0 1em 0; + } } .header-article-items.header-article__inner { From bd558be123d38316c2686738034ed720f095c49d Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 09:31:04 +0200 Subject: [PATCH 082/248] changes --- docs/_static/css/main.css | 4 ++++ docs/_static/css/tutorial.css | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index 1778597b8b..bf73dbb939 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -6,12 +6,15 @@ --flair-orange-transparent: rgba(247, 153, 16, .5); --white-transparent: rgba(255, 255, 255, .5); --flair-blue: #2f2e41; + --flair-dark-blue: #262635; + --light-gray: #e6e6e6; --white-blue: white; --blue-white: var(--flair-blue); --orange-white: var(--flair-orange); --orange-white-transparent: var(--flair-orange-transparent); --orange-blue: var(--flair-orange); --blue-orange: var(--flair-blue); + --gray-dark-blue: var(--light-gray); --header-height: 90px; --footer-height: 60px; --track-color: #dddddd; @@ -31,6 +34,7 @@ --orange-blue: var(--flair-blue); --blue-orange: var(--flair-orange); --orange-white-transparent: var(--white-transparent); + --gray-dark-blue: var(--flair-dark-blue); --track-color: #38374a; --track-thumb: #4c4b5c; --track-thumb-hover: #5c5b69; diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 9d700f7fd9..a09ba9974a 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -1,6 +1,6 @@ .bd-main .bd-content .bd-article-container{ max-width: initial; - padding: 4rem 5rem; + padding: 4rem 30% 4rem 5rem; box-sizing: border-box; } @@ -20,7 +20,18 @@ } p { color: var(--blue-white); - margin: 0.5em 0 1em 0; + margin: 0.4em 0 0.9em 0; + } + .highlight-python { + .highlight { + background: transparent; + pre { + background: var(--gray-dark-blue); + .nn, .n { + color: var(--blue-white); + } + } + } } } From 6d49182704225eea5185f2cda4ee55fa50d9a412 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 09:42:52 +0200 Subject: [PATCH 083/248] changes --- docs/_static/css/tutorial.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index a09ba9974a..fde1236f2a 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -26,10 +26,18 @@ .highlight { background: transparent; pre { + padding: 1.1em 1.5em; + border-radius: 1rem; background: var(--gray-dark-blue); .nn, .n { color: var(--blue-white); } + .c1 { + color: #999; + :root .dark-mode & { + color: #696991; + } + } } } } From 7373488224b51980c85729a987c5feadfb615009 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 10:07:59 +0200 Subject: [PATCH 084/248] changes --- docs/_static/css/main.css | 2 +- docs/_static/css/tutorial.css | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index bf73dbb939..e2b94342c0 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap'); :root { --flair-orange: #f79910; diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index fde1236f2a..56241ee3f5 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -26,17 +26,30 @@ .highlight { background: transparent; pre { + font-family: "Source Code Pro", monospace; padding: 1.1em 1.5em; border-radius: 1rem; background: var(--gray-dark-blue); - .nn, .n { + .nn, .n, .o, .p { color: var(--blue-white); } + .kn { + color: #CF8E6D; + } + .kp { + color: #57AAF7; + } + .nb { + color: #8888C6; + } .c1 { - color: #999; - :root .dark-mode & { + color: #5F826B; + /*:root .dark-mode & { color: #696991; - } + }*/ + } + .s1 { + color : #6AAB73; } } } From ac2ec964c71eb53d976648b23be289352a5d6394 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 10:37:24 +0200 Subject: [PATCH 085/248] changes --- docs/_static/css/tutorial.css | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 56241ee3f5..c03fbf9758 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -54,6 +54,52 @@ } } } + .highlight-console { + .highlight { + background: transparent; + } + pre { + font-family: "Source Code Pro", monospace; + border-radius: 1rem; + padding: 1.1em 1.5em; + background: var(--gray-dark-blue); + color: var(--blue-white); + .go { + font-size: inherit; + padding-right: 1.1em; + } + } + } + .admonition, div.admonition, .admonition.note, div.admonition.note { + box-shadow: none !important; + background: linear-gradient(180deg, var(--flair-orange) 0, var(--flair-orange) 2rem, var(--white-blue) 2rem, var(--white-blue) 100%); + border: 2px var(--flair-orange) solid; + border-radius: 1rem; + padding: 0; + box-sizing: border-box; + p.admonition-title { + background: var(--flair-orange); + border-radius: 0 0 1rem 1rem; + margin: 0; + font-size: 1.5rem; + font-weight: 400; + padding: 0.5em 2.2em; + position: relative; + line-height: 1em; + &::before { + content: none; + } + &::after { + color: white; + margin-left: 0.4em; + font-size: 0.9em; + } + } + p:not(.admonition-title) { + padding: 0.5em 2.2em 0.25em 3.3em; + line-height: 1em; + } + } } .header-article-items.header-article__inner { From 730cb18104394355c6e8bf2cafd24bca530af2fe Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 10:55:27 +0200 Subject: [PATCH 086/248] changes --- docs/_static/css/tutorial.css | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index c03fbf9758..3c4f5d53a8 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -138,4 +138,34 @@ ul.bd-breadcrumbs { font-weight: 400; } } +} + +table.table { + tr { + &:not(:last-of-type), &:has(th) { + border-bottom: 2px var(--blue-white) solid; + } + th { + font-weight: 600; + } + th, td { + padding: .5em .2em .15em .2em; + &:first-of-type { + padding-left: 0; + } + &:last-of-type { + padding-right: 0; + } + } + } +} + +.reference .docutils { + border: 2px var(--flair-orange) solid; + background: transparent; + border-radius: 0.5em; + font-weight: 400; + font-family: "Source Code Pro", monospace; + font-size: 0.8em; + color: var(--blue-white); } \ No newline at end of file From 4010213ada6c24f5d529d7a184f9b63daa583b9a Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 11:10:54 +0200 Subject: [PATCH 087/248] changes --- docs/_static/css/tutorial.css | 46 ++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 3c4f5d53a8..dd6de62e0b 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -18,6 +18,12 @@ font-weight: 600; margin-top: 2em; } + h3 { + font-size: 1.2rem; + color: var(--blue-white); + font-weight: 600; + margin-top: 2em; + } p { color: var(--blue-white); margin: 0.4em 0 0.9em 0; @@ -30,31 +36,31 @@ padding: 1.1em 1.5em; border-radius: 1rem; background: var(--gray-dark-blue); - .nn, .n, .o, .p { + .nn, .n, .o, .p, .kp { color: var(--blue-white); } - .kn { + .kn, .k, .ow { color: #CF8E6D; } - .kp { - color: #57AAF7; - } .nb { color: #8888C6; } .c1 { - color: #5F826B; - /*:root .dark-mode & { - color: #696991; - }*/ + color: #7A7E85; } - .s1 { + .s1, .sa, .si { color : #6AAB73; } + .mi { + color: #2AACB8; + } } } } - .highlight-console { + .highlight-console, .highlight-default { + * { + color: var(--blue-white); + } .highlight { background: transparent; } @@ -97,7 +103,9 @@ } p:not(.admonition-title) { padding: 0.5em 2.2em 0.25em 3.3em; - line-height: 1em; + } + .highlight-python, .highlight-default, .highlight-console, .highlight { + margin-bottom: 0.7rem; } } } @@ -160,12 +168,22 @@ table.table { } } -.reference .docutils { - border: 2px var(--flair-orange) solid; +.docutils, .docutils.literal { + border: 2px var(--blue-white) solid; background: transparent; border-radius: 0.5em; font-weight: 400; font-family: "Source Code Pro", monospace; font-size: 0.8em; color: var(--blue-white); +} +.reference { + .docutils, .docutils.literal { + border: 2px var(--flair-orange) solid; + transition: color, background-color 200ms ease-in-out; + &:hover { + background: var(--flair-orange); + color: white; + } + } } \ No newline at end of file From b0014ebb394c0dea507d2a71ea96a44c8c7b3d65 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 11:21:40 +0200 Subject: [PATCH 088/248] changes --- docs/_static/css/tutorial.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index dd6de62e0b..bc07a9001b 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -148,7 +148,9 @@ ul.bd-breadcrumbs { } } -table.table { +table.table {border-collapse: collapse; + border-radius: 1rem; + box-shadow: 0 0 0 2px var(--blue-white); tr { &:not(:last-of-type), &:has(th) { border-bottom: 2px var(--blue-white) solid; @@ -157,12 +159,12 @@ table.table { font-weight: 600; } th, td { - padding: .5em .2em .15em .2em; + padding: .4em .2em 0 .2em; &:first-of-type { - padding-left: 0; + padding-left: .5em; } &:last-of-type { - padding-right: 0; + padding-right: .5em; } } } From 4a76a8be036b442714f2f57a256fa30dfe770cb7 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 11:30:18 +0200 Subject: [PATCH 089/248] changes --- docs/_static/css/tutorial.css | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index bc07a9001b..728e2b7363 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -48,7 +48,7 @@ .c1 { color: #7A7E85; } - .s1, .sa, .si { + .s1, .s2, .sa, .si { color : #6AAB73; } .mi { @@ -171,21 +171,40 @@ table.table {border-collapse: collapse; } .docutils, .docutils.literal { - border: 2px var(--blue-white) solid; + border: none; background: transparent; border-radius: 0.5em; font-weight: 400; font-family: "Source Code Pro", monospace; font-size: 0.8em; color: var(--blue-white); + position: relative; + z-index: 1; + &::before { + content: ""; + width: 100%; + height: 90%; + top: 50%; + left: 0; + transform: translateY(-50%); + border-radius: 0.5em; + border: 2px var(--blue-white) solid; + position: absolute; + } } .reference { .docutils, .docutils.literal { - border: 2px var(--flair-orange) solid; - transition: color, background-color 200ms ease-in-out; + transition: color 200ms ease-in-out; &:hover { - background: var(--flair-orange); + &::before { + background: var(--flair-orange); + } color: white; } + &::before { + z-index: -1; + border-color: var(--flair-orange); + transition: background-color 200ms ease-in-out; + } } } \ No newline at end of file From 9fe360a8780cdd2eb8712e0306fbba1b83b840ec Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 11:43:14 +0200 Subject: [PATCH 090/248] changes --- docs/_static/css/tutorial.css | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 728e2b7363..26c9ad3d2d 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -6,6 +6,9 @@ .bd-main .bd-content .bd-article-container .bd-article { padding: 0; + .headerlink { + display: none; + } h1 { font-size: 3rem; color: var(--blue-white); @@ -28,6 +31,13 @@ color: var(--blue-white); margin: 0.4em 0 0.9em 0; } + ul { + list-style: initial; + margin-left: 1rem; + ::marker { + color: var(--blue-white); + } + } .highlight-python { .highlight { background: transparent; @@ -51,7 +61,7 @@ .s1, .s2, .sa, .si { color : #6AAB73; } - .mi { + .mi, .mf { color: #2AACB8; } } @@ -122,14 +132,18 @@ ul.bd-breadcrumbs { font-size: 1rem; font-weight: 400; color: var(--blue-white); + transition: color 200ms ease-in-out; } } + li.breadcrumb-home a:hover .fa-home::before { + color: var(--flair-orange); + } li.breadcrumb-item:not(.breadcrumb-home) { &::before { content: ""; width: 1px; height: 1rem; - background: white; + background: var(--blue-white); display: inline-block; padding: 0; transform: rotate(30deg); @@ -139,6 +153,9 @@ ul.bd-breadcrumbs { color: var(--blue-white); font-size: 1rem; font-weight: 400; + &:hover { + color: var(--flair-orange); + } } &.active { color: var(--blue-white); From 2a25cadddd45c5fb8f99e4eee84c5325f366f2de Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 11:49:30 +0200 Subject: [PATCH 091/248] changes --- docs/_static/css/tutorial.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 26c9ad3d2d..cf66b9f027 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -67,7 +67,7 @@ } } } - .highlight-console, .highlight-default { + [class^="highlight-"]:not(.highlight-python) { * { color: var(--blue-white); } From f81ef2ce0489fbc0725a7d8e22f32e066c4ef81e Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 12:05:52 +0200 Subject: [PATCH 092/248] changes --- docs/_static/css/tutorial.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index cf66b9f027..cd2dc7e9ba 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -49,12 +49,15 @@ .nn, .n, .o, .p, .kp { color: var(--blue-white); } - .kn, .k, .ow { + .kn, .k, .ow, .kc { color: #CF8E6D; } .nb { color: #8888C6; } + .nf { + color: #56A8F5; + } .c1 { color: #7A7E85; } @@ -224,4 +227,14 @@ table.table {border-collapse: collapse; transition: background-color 200ms ease-in-out; } } +} + +#flair-tutorials, [id^="tutorial"] { + li { + list-style-type: "»"; + padding-left: 0.25em; + ::marker { + color: var(--blue-white); + } + } } \ No newline at end of file From cedca6d981f11540fc62de1099d09484d9d17dcb Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 12:22:26 +0200 Subject: [PATCH 093/248] changes --- docs/_static/css/api.css | 0 docs/conf.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/_static/css/api.css diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/conf.py b/docs/conf.py index f5e6d6c6a1..b1238878bc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -85,7 +85,8 @@ def linkcode_resolve(*args): 'css/footer.css', 'css/version-switcher.css', 'css/sidebar.css', - 'css/tutorial.css' + 'css/tutorial.css', + 'css/api.css' ] html_logo = "_static/flair_logo_white.svg" From 3feaa21e12f1e29ef8224cde604170423d7f418f Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 12:49:54 +0200 Subject: [PATCH 094/248] changes --- docs/_static/css/api.css | 12 ++++++++++++ docs/_static/css/tutorial.css | 27 ++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index e69de29bb2..b25b39cd2f 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -0,0 +1,12 @@ +.sidebar-primary-item { + .docutils { + &::before { + content: none; + } + .pre { + font-family: "Afacad", sans-serif; + font-size: 1rem; + text-overflow: ellipsis; + } + } +} \ No newline at end of file diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index cd2dc7e9ba..0c48a3a79f 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -229,12 +229,37 @@ table.table {border-collapse: collapse; } } -#flair-tutorials, [id^="tutorial"] { +#flair-tutorials, #api-docs, [id^="tutorial"], [id^="flair"] { li { list-style-type: "»"; padding-left: 0.25em; + margin-top: .5em; ::marker { color: var(--blue-white); + font-size: 1.2rem; + } + } + .toctree-wrapper li[class^="toctree-l"] { + margin-top: .5em; + &::marker { + font-size: 1.2rem; + } + & > a { + font-size: 1.2rem; + } + } + .docutils { + color: var(--flair-orange); + &:hover { + color: var(--flair-orange-light); + } + &::before { + content: none; + } + .pre { + font-family: "Afacad", sans-serif; + text-overflow: ellipsis; + font-size: 1.2rem; } } } \ No newline at end of file From 59024414f238a661865be8c0452191ce00ac07f6 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 12:54:29 +0200 Subject: [PATCH 095/248] changes --- docs/_static/css/tutorial.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 0c48a3a79f..fa960786e2 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -32,10 +32,14 @@ margin: 0.4em 0 0.9em 0; } ul { - list-style: initial; - margin-left: 1rem; + list-style-type: "»"; + margin-left: .6em; + li { + padding-left: .3em; + } ::marker { color: var(--blue-white); + font-size: inherit; } } .highlight-python { From ec80d59c49202750d8cf9c6bc802e6fba5f37f41 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 13:26:50 +0200 Subject: [PATCH 096/248] changes --- docs/_static/css/api.css | 13 +++++++++++++ docs/_static/octocat.svg | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 docs/_static/octocat.svg diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index b25b39cd2f..39d05de307 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -9,4 +9,17 @@ text-overflow: ellipsis; } } +} + +.sig { + color: var(--blue-white); + font-family: "Source Code Pro", monospace; + .linkcode-link { + .pre { + display: none; + } + &::after { + content: url("_static/octocat.svg"); + } + } } \ No newline at end of file diff --git a/docs/_static/octocat.svg b/docs/_static/octocat.svg new file mode 100644 index 0000000000..ce2cf1d99d --- /dev/null +++ b/docs/_static/octocat.svg @@ -0,0 +1,41 @@ + + + + + + From 5491a45ba2050a383385f402badb33bc03f8c1fc Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 13:28:59 +0200 Subject: [PATCH 097/248] changes --- docs/_static/css/api.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index 39d05de307..378063ee37 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -19,7 +19,7 @@ display: none; } &::after { - content: url("_static/octocat.svg"); + content: url("../../_static/octocat.svg"); } } } \ No newline at end of file From 00f4e1bf1fca567d0875fba09a124a27cd2cc2a0 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 13:58:02 +0200 Subject: [PATCH 098/248] changes --- docs/_static/css/api.css | 46 ++++++++++++++++++++++++++++++++++++++- docs/_static/css/main.css | 2 ++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index 378063ee37..dc3f3a5435 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -15,11 +15,55 @@ color: var(--blue-white); font-family: "Source Code Pro", monospace; .linkcode-link { + padding: 0; + display: inline-block; + width: 1.5rem; + height: 1.5rem; + transform: translateY(25%); .pre { display: none; } &::after { - content: url("../../_static/octocat.svg"); + content:""; + background-image: url('../../_static/octocat.svg'); + background-size: cover; + display: inline-block; + width: 100%; + height: 100%; + } + } +} + +.sig-name.descname { + color: var(--flair-orange); +} + +.class, .method { + .sig { + margin-top: 2rem; + } + dd { + margin-left: 0 !important; + padding-left: 3rem !important; + border-left: 2px var(--gray-white) solid; + dl.field-list { + background-color: transparent; + border: 2px var(--flair-orange) solid; + border-radius: 1rem; + padding: 1rem 1.5rem; + dt { + background-color: transparent !important; + color: var(--blue-white); + font-weight: 600; + font-size: 1.5rem; + padding: 0 !important; + margin: 0 !important; + } + dd { + margin: 0 !important; + padding: 0 !important; + border-left: none; + } } } } \ No newline at end of file diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index e2b94342c0..d3c6242c41 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -15,6 +15,7 @@ --orange-blue: var(--flair-orange); --blue-orange: var(--flair-blue); --gray-dark-blue: var(--light-gray); + --gray-white: var(--light-gray); --header-height: 90px; --footer-height: 60px; --track-color: #dddddd; @@ -35,6 +36,7 @@ --blue-orange: var(--flair-orange); --orange-white-transparent: var(--white-transparent); --gray-dark-blue: var(--flair-dark-blue); + --gray-white: white; --track-color: #38374a; --track-thumb: #4c4b5c; --track-thumb-hover: #5c5b69; From f4805474da2dbb741e768405913a0fead318f316 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 14:06:00 +0200 Subject: [PATCH 099/248] changes --- docs/_static/css/api.css | 3 ++- docs/_static/css/tutorial.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index dc3f3a5435..0a9bba2b67 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -38,9 +38,10 @@ color: var(--flair-orange); } -.class, .method { +.class, .method, .function { .sig { margin-top: 2rem; + margin-bottom: 1rem; } dd { margin-left: 0 !important; diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index fa960786e2..c9ec7d4f64 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -252,7 +252,7 @@ table.table {border-collapse: collapse; font-size: 1.2rem; } } - .docutils { + .docutils:not(.py) { color: var(--flair-orange); &:hover { color: var(--flair-orange-light); From 55fcb22a311dc7c5282c986bf51710eada5f3340 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 14:13:47 +0200 Subject: [PATCH 100/248] changes --- docs/_static/css/api.css | 35 +++++++++++++++++++++++++++++++++++ docs/_static/css/main.css | 1 + docs/_static/css/tutorial.css | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index 0a9bba2b67..e0640a06ef 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -67,4 +67,39 @@ } } } +} + +div.deprecated { + box-shadow: none !important; + background: linear-gradient(180deg, var(--error-red) 0, var(--error-red) 2rem, var(--white-blue) 2rem, var(--white-blue) 100%); + border: 2px var(--error-red) solid; + border-radius: 1rem; + padding: 0; + box-sizing: border-box; + p { + &::before { + content: none; + } + } + /* p { + background: var(--flair-orange); + border-radius: 0 0 1rem 1rem; + margin: 0; + font-size: 1.5rem; + font-weight: 400; + padding: 0.5em 2.2em; + position: relative; + line-height: 1em; + &::before { + content: none; + } + &::after { + color: white; + margin-left: 0.4em; + font-size: 0.9em; + } + } + p:not(.admonition-title) { + padding: 0.5em 2.2em 0.25em 3.3em; + }*/ } \ No newline at end of file diff --git a/docs/_static/css/main.css b/docs/_static/css/main.css index d3c6242c41..12a8a7abcb 100644 --- a/docs/_static/css/main.css +++ b/docs/_static/css/main.css @@ -16,6 +16,7 @@ --blue-orange: var(--flair-blue); --gray-dark-blue: var(--light-gray); --gray-white: var(--light-gray); + --error-red: #e32239; --header-height: 90px; --footer-height: 60px; --track-color: #dddddd; diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index c9ec7d4f64..58880393a8 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -121,7 +121,7 @@ p:not(.admonition-title) { padding: 0.5em 2.2em 0.25em 3.3em; } - .highlight-python, .highlight-default, .highlight-console, .highlight { + [class^="highlight-"] { margin-bottom: 0.7rem; } } From 719c740c33b58476b628ca41a4f888c31891f1c1 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 14:25:40 +0200 Subject: [PATCH 101/248] changes --- docs/_static/css/api.css | 44 +++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index e0640a06ef..16c6f2777b 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -41,7 +41,12 @@ .class, .method, .function { .sig { margin-top: 2rem; - margin-bottom: 1rem; + margin-bottom: .5em; + padding-bottom: .5em; + } + dt:target { + background: var(--flair-orange-transparent); + border-radius: 10px; } dd { margin-left: 0 !important; @@ -71,35 +76,28 @@ div.deprecated { box-shadow: none !important; - background: linear-gradient(180deg, var(--error-red) 0, var(--error-red) 2rem, var(--white-blue) 2rem, var(--white-blue) 100%); + background: var(--error-red); border: 2px var(--error-red) solid; border-radius: 1rem; - padding: 0; + padding: 0.5em 2.2em 0 2.2em; box-sizing: border-box; p { - &::before { - content: none; + span.versionmodified.deprecated::before { + color: white; } - } - /* p { - background: var(--flair-orange); - border-radius: 0 0 1rem 1rem; - margin: 0; - font-size: 1.5rem; - font-weight: 400; - padding: 0.5em 2.2em; - position: relative; - line-height: 1em; &::before { content: none; } - &::after { - color: white; - margin-left: 0.4em; - font-size: 0.9em; - } } - p:not(.admonition-title) { - padding: 0.5em 2.2em 0.25em 3.3em; - }*/ +} + +a.github::before { + content: ""; + height: 1em; + width: 1em; + display: inline-block; + background-image: url("../../_static/octocat.svg"); + background-size: contain; + background-position: center; + transform: translateY(25%); } \ No newline at end of file From 34d76c86492461749f49faa572da8b9a7b6570fc Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 14:42:42 +0200 Subject: [PATCH 102/248] changes --- docs/_static/css/api.css | 24 +++++++++++++----------- docs/_static/css/tutorial.css | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index 16c6f2777b..fad83624d7 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -17,9 +17,9 @@ .linkcode-link { padding: 0; display: inline-block; - width: 1.5rem; - height: 1.5rem; - transform: translateY(25%); + width: 1rem; + height: 1rem; + transform: translateY(10%) scale(1.5); .pre { display: none; } @@ -38,16 +38,18 @@ color: var(--flair-orange); } -.class, .method, .function { - .sig { - margin-top: 2rem; - margin-bottom: .5em; - padding-bottom: .5em; - } - dt:target { +.sig { + margin-top: 2rem; + margin-bottom: .5em; + padding-bottom: .5em; + padding-top: .5em; + &:target { background: var(--flair-orange-transparent); - border-radius: 10px; + border-radius: .5rem; } +} + +.class, .method, .function, .data { dd { margin-left: 0 !important; padding-left: 3rem !important; diff --git a/docs/_static/css/tutorial.css b/docs/_static/css/tutorial.css index 58880393a8..8b1e0d72e9 100644 --- a/docs/_static/css/tutorial.css +++ b/docs/_static/css/tutorial.css @@ -233,7 +233,7 @@ table.table {border-collapse: collapse; } } -#flair-tutorials, #api-docs, [id^="tutorial"], [id^="flair"] { +#flair-tutorials, #api-docs, #contributing, [id^="tutorial"], [id^="flair"] { li { list-style-type: "»"; padding-left: 0.25em; From fabfec107979e6f37f8f033eac9116519ccf1b1b Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 15:08:49 +0200 Subject: [PATCH 103/248] changes --- docs/_static/css/api.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index fad83624d7..1dd843d54c 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -14,6 +14,7 @@ .sig { color: var(--blue-white); font-family: "Source Code Pro", monospace; + line-height: 2em; .linkcode-link { padding: 0; display: inline-block; @@ -59,6 +60,9 @@ border: 2px var(--flair-orange) solid; border-radius: 1rem; padding: 1rem 1.5rem; + ul { + padding-left: 0 !important; + } dt { background-color: transparent !important; color: var(--blue-white); @@ -74,6 +78,12 @@ } } } + .n { + color: #2AACB8; + } + .default_value { + color: #8888C6; + } } div.deprecated { @@ -102,4 +112,18 @@ a.github::before { background-size: contain; background-position: center; transform: translateY(25%); +} + +blockquote { + font-family: "Source Code Pro", monospace; + border-radius: 1rem; + padding: 1.1em 1.5em; + background: var(--gray-dark-blue); + color: var(--blue-white); + &::before { + content: none; + } + p { + margin: 0 !important; + } } \ No newline at end of file From 4fbdcd272c3e19f9fdf37c7519efa67aeb2f34b6 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 14 Aug 2024 15:12:43 +0200 Subject: [PATCH 104/248] changes --- docs/_static/css/api.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/_static/css/api.css b/docs/_static/css/api.css index 1dd843d54c..5fd8ef8c89 100644 --- a/docs/_static/css/api.css +++ b/docs/_static/css/api.css @@ -45,9 +45,12 @@ padding-bottom: .5em; padding-top: .5em; &:target { - background: var(--flair-orange-transparent); + background: rgba(47, 46, 65, 0.15); border-radius: .5rem; } + :root .dark-mode &:target { + background: rgba(255, 255, 255, 0.15); + } } .class, .method, .function, .data { From 0422de10e73bf797e93417d4c32f710196755087 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:16:32 +0200 Subject: [PATCH 105/248] changes --- docs/legal-notice/index.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/legal-notice/index.rst diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst new file mode 100644 index 0000000000..08b272d915 --- /dev/null +++ b/docs/legal-notice/index.rst @@ -0,0 +1,12 @@ +.. _flair_legal-notice: + +.. title:: Legal notice + +.. raw:: html + :file: _templates/landing_page_styles.html + +.. raw:: html + :file: _templates/landing-page-banner.html + +.. raw:: html + :file: _templates/landing-page-illustrations.html \ No newline at end of file From 79d664fafc9d01b96d8e3b83f06bbe8ae6f393cd Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:21:24 +0200 Subject: [PATCH 106/248] changes --- docs/_templates/footer-links.html | 5 ----- docs/_templates/footer-links/legal-notice.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 docs/_templates/footer-links.html diff --git a/docs/_templates/footer-links.html b/docs/_templates/footer-links.html deleted file mode 100644 index 074731dfb5..0000000000 --- a/docs/_templates/footer-links.html +++ /dev/null @@ -1,5 +0,0 @@ -

\ No newline at end of file diff --git a/docs/_templates/footer-links/legal-notice.html b/docs/_templates/footer-links/legal-notice.html index 44658a6eba..ff1eed5ca9 100644 --- a/docs/_templates/footer-links/legal-notice.html +++ b/docs/_templates/footer-links/legal-notice.html @@ -1 +1 @@ -Legal notice \ No newline at end of file +Legal notice \ No newline at end of file From 3b3379da6f564aea40174572af9029e72390752c Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:24:51 +0200 Subject: [PATCH 107/248] changes --- docs/_templates/footer-links/legal-notice.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/footer-links/legal-notice.html b/docs/_templates/footer-links/legal-notice.html index ff1eed5ca9..30553d5aed 100644 --- a/docs/_templates/footer-links/legal-notice.html +++ b/docs/_templates/footer-links/legal-notice.html @@ -1 +1 @@ -Legal notice \ No newline at end of file +Legal notice \ No newline at end of file From 1cadc5b898ea4ba66fd688dc7b6754598b375a6b Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:30:07 +0200 Subject: [PATCH 108/248] changes --- docs/_templates/footer-links/legal-notice.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_templates/footer-links/legal-notice.html b/docs/_templates/footer-links/legal-notice.html index 30553d5aed..ab3b0dd4ac 100644 --- a/docs/_templates/footer-links/legal-notice.html +++ b/docs/_templates/footer-links/legal-notice.html @@ -1 +1 @@ -Legal notice \ No newline at end of file +Legal notice \ No newline at end of file From c95f8598d8b5cb479f38bf74d6135d59e5718f28 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:32:07 +0200 Subject: [PATCH 109/248] changes --- docs/_templates/legal-notice-content.html | 3 +++ docs/legal-notice/index.rst | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 docs/_templates/legal-notice-content.html diff --git a/docs/_templates/legal-notice-content.html b/docs/_templates/legal-notice-content.html new file mode 100644 index 0000000000..7b25d9a135 --- /dev/null +++ b/docs/_templates/legal-notice-content.html @@ -0,0 +1,3 @@ +
+ HELLO; WORLD; +
\ No newline at end of file diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst index 08b272d915..812268cebb 100644 --- a/docs/legal-notice/index.rst +++ b/docs/legal-notice/index.rst @@ -3,10 +3,4 @@ .. title:: Legal notice .. raw:: html - :file: _templates/landing_page_styles.html - -.. raw:: html - :file: _templates/landing-page-banner.html - -.. raw:: html - :file: _templates/landing-page-illustrations.html \ No newline at end of file + :file: _templates/legal-notice-content-html \ No newline at end of file From 5e63d976b2b0f47647760875d74aa3ef6899b655 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:33:48 +0200 Subject: [PATCH 110/248] changes --- docs/legal-notice/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst index 812268cebb..7eafaeeb3f 100644 --- a/docs/legal-notice/index.rst +++ b/docs/legal-notice/index.rst @@ -3,4 +3,4 @@ .. title:: Legal notice .. raw:: html - :file: _templates/legal-notice-content-html \ No newline at end of file + :file: _templates/legal-notice-content.html \ No newline at end of file From fda3778b10b24a144715575ff051bc1bfb42a8f6 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:35:32 +0200 Subject: [PATCH 111/248] changes --- docs/legal-notice/index.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst index 7eafaeeb3f..70779f7ce0 100644 --- a/docs/legal-notice/index.rst +++ b/docs/legal-notice/index.rst @@ -3,4 +3,12 @@ .. title:: Legal notice .. raw:: html - :file: _templates/legal-notice-content.html \ No newline at end of file + :file: _templates/legal-notice-content.html + +.. toctree:: + :maxdepth: 3 + :hidden: + + Tutorials + API + Contributing \ No newline at end of file From 197e58fa5412dc0ebed39aa4336e4971beeaea66 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:39:12 +0200 Subject: [PATCH 112/248] changes --- docs/legal-notice/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst index 70779f7ce0..54b24b860c 100644 --- a/docs/legal-notice/index.rst +++ b/docs/legal-notice/index.rst @@ -1,6 +1,7 @@ -.. _flair_legal-notice: +Legal Notice +============ -.. title:: Legal notice +.. title:: Legal Notice .. raw:: html :file: _templates/legal-notice-content.html From 2a61780dcc8e0cda682683cb0cc5bf3427d536f7 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:42:50 +0200 Subject: [PATCH 113/248] changes --- docs/legal-notice/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst index 54b24b860c..5da0252fd4 100644 --- a/docs/legal-notice/index.rst +++ b/docs/legal-notice/index.rst @@ -4,7 +4,7 @@ Legal Notice .. title:: Legal Notice .. raw:: html - :file: _templates/legal-notice-content.html + :file: ../_templates/legal-notice-content.html .. toctree:: :maxdepth: 3 From da9a507659c19841bd8b1096962dd3f98736a979 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:49:29 +0200 Subject: [PATCH 114/248] changes --- docs/_static/css/legal-notice.css | 0 docs/_templates/legal-notice-content.html | 35 ++++++++++++++++++++++- docs/conf.py | 3 +- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 docs/_static/css/legal-notice.css diff --git a/docs/_static/css/legal-notice.css b/docs/_static/css/legal-notice.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/_templates/legal-notice-content.html b/docs/_templates/legal-notice-content.html index 7b25d9a135..7e4951ef01 100644 --- a/docs/_templates/legal-notice-content.html +++ b/docs/_templates/legal-notice-content.html @@ -1,3 +1,36 @@
- HELLO; WORLD; +
+
+
+

Contact

+

+ In case of questions, feel free to open a + Github Issue + or write me an email: + alan.akbik@hu-berlin.de. +

+

+ + Flair NLP is maintained by: + +
+ Alan Akbik
+ Humboldt-Universität zu Berlin
+ Institut für Informatik / Lehrstuhl Maschinelles Lernen
+ Unter den Linden 6
+ 10099 Berlin
+ Germany +

+

+ Website +

+

+ Privacy Policy
+ The webserver / web hosting company might collect certain log files to prevent abuse of services. + These log files can include: IP address, URL, date and time.
+ We do not use any tracking services or cookies to track or re-identify visitors. +

+
+
+
\ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index b1238878bc..f5f0541ab1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -86,7 +86,8 @@ def linkcode_resolve(*args): 'css/version-switcher.css', 'css/sidebar.css', 'css/tutorial.css', - 'css/api.css' + 'css/api.css', + 'css/legal-notice.css', ] html_logo = "_static/flair_logo_white.svg" From 033edd96eb8fe4c7278fdff5c48f3e6ae83b7e36 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 17 Aug 2024 11:56:57 +0200 Subject: [PATCH 115/248] changes --- docs/_static/css/legal-notice.css | 6 ++++++ docs/_templates/legal-notice-content.html | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/_static/css/legal-notice.css b/docs/_static/css/legal-notice.css index e69de29bb2..e9794bb7b4 100644 --- a/docs/_static/css/legal-notice.css +++ b/docs/_static/css/legal-notice.css @@ -0,0 +1,6 @@ +.legal-notice { + h2 { + font-size: 1.75rem; + font-weight: 600; + } +} \ No newline at end of file diff --git a/docs/_templates/legal-notice-content.html b/docs/_templates/legal-notice-content.html index 7e4951ef01..15a5a0ac8a 100644 --- a/docs/_templates/legal-notice-content.html +++ b/docs/_templates/legal-notice-content.html @@ -1,8 +1,7 @@ -
-
-
+