Skip to content

Commit

Permalink
feat: sync UI with lottie.github.io (#12)
Browse files Browse the repository at this point in the history
* chore: update .gitignore

* docs(editing/schema): macos graphviz note

* ci: deploy pages to temp branch

* feat: adjust UI with lottie.github.io

* fix(gitignore): dont list tools/schema_tools

* fix: bring back cinder theme and style it

* ci: bring back main branch
  • Loading branch information
Aidosmf authored Jan 31, 2024
1 parent 74ede5f commit dda3f6c
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main
- docs-setup
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
docs/lottie.schema.json
site/
__pycache__

# Operating system
.DS_Store
2 changes: 2 additions & 0 deletions docs/editing/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ There are several Python scripts that are used in the build process,
ensure the requirements listed under `/tools/requirements.txt` are
installed in your Python environment.

> If you facing errors on MacOS - you might need to install `graphviz` [differently]((https://graphviz.org/download/#mac))
The first step is to build the combined schema:

```bash
Expand Down
113 changes: 113 additions & 0 deletions docs/static/css/lottie-theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
body {
color: #1a1c1c;
}

.navbar {
font-size: 16px;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.navbar-default {
background-color: white;
border-bottom: 0;
}

.navbar-default .navbar-brand {
color: #006a5f;
font-weight: 600;
}

.navbar-default .navbar-nav > li > a {
color: #006a5f;
font-weight: 600;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #1a1c1c;
background-color: white;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #1a1c1c;
background-color: white;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #1a1c1c;
background-color: white;
}

.navbar-default .dropdown-menu {
background-color: white;
}

.navbar-default .dropdown-menu > li > a,
.navbar-default .dropdown-menu > li > a:focus {
color: #1a1c1c;
font-weight: 600;
}

.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > .active > a,
.navbar-default .dropdown-menu > .active > a:hover {
background-color: #ebfbfa;
}

.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: rgba(0, 106, 95, 0.5);
}

.navbar-dark .navbar-brand {
color: #006a5f;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #006a5f;
}

.navbar-default .navbar-toggle .icon-bar {
background-color: #006a5f;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: rgba(0, 0, 0, 0.075);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #006a5f !important;
}

a {
color: #006a5f;
}

a:hover {
color: #1a1c1c;
}

.dropdown-item {
color: #1a1c1c;
}

.dropdown-item:hover,
.dropdown-item:focus {
color: #1a1c1c;
text-decoration: none;
background-color: #ebfbfa;
}

.dropdown-item.active,
.dropdown-item:active {
color: #fff;
text-decoration: none;
background-color: #006a5f;
}
1 change: 1 addition & 0 deletions tools/theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<script src="/lottie-spec/static/js/lottie_raw_utils.js"></script>
<script src="/lottie-spec/static/js/value_editors.js"></script>
<link rel="stylesheet" href="/lottie-spec/static/css/style.css" />
<link rel="stylesheet" href="/lottie-spec/static/css/lottie-theme.css" />
{% endblock %}


Expand Down

0 comments on commit dda3f6c

Please sign in to comment.