aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/AppBar.css
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-26 19:54:24 +0800
committercrupest <crupest@outlook.com>2021-06-26 19:54:24 +0800
commitc3f17f1dd1099c244e36d09b14c3e131d703830e (patch)
tree9f6b58f3bf16bcd119f22475625464537aa2b42b /FrontEnd/src/views/common/AppBar.css
parenta168336c0761b263ee5371218cbf6da236c0acce (diff)
downloadtimeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.tar.gz
timeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.tar.bz2
timeline-c3f17f1dd1099c244e36d09b14c3e131d703830e.zip
...
Diffstat (limited to 'FrontEnd/src/views/common/AppBar.css')
-rw-r--r--FrontEnd/src/views/common/AppBar.css90
1 files changed, 90 insertions, 0 deletions
diff --git a/FrontEnd/src/views/common/AppBar.css b/FrontEnd/src/views/common/AppBar.css
new file mode 100644
index 00000000..c6f4e184
--- /dev/null
+++ b/FrontEnd/src/views/common/AppBar.css
@@ -0,0 +1,90 @@
+.app-bar {
+ display: flex;
+ align-items: center;
+ height: 56px;
+ position: fixed;
+ z-index: 1030;
+ top: 0;
+ left: 0;
+ right: 0;
+ background-color: var(--tl-primary-color);
+ transition: background-color 1s;
+}
+.app-bar a {
+ color: var(--tl-text-on-primary-r1-color);
+ text-decoration: none;
+ margin: 0 1em;
+ transition: color 1s;
+}
+.app-bar a:hover {
+ color: var(--tl-text-on-primary-color);
+}
+.app-bar a.active {
+ color: var(--tl-text-on-primary-color);
+}
+
+.app-bar-brand {
+ display: flex;
+ align-items: center;
+}
+
+.app-bar-brand-icon {
+ height: 2em;
+}
+
+.app-bar-main-area {
+ display: flex;
+ flex-grow: 1;
+}
+
+.app-bar-link-area {
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+}
+
+.app-bar-user-area {
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+ margin-left: auto;
+}
+
+.small-screen .app-bar-main-area {
+ position: absolute;
+ top: 56px;
+ left: 0;
+ right: 0;
+ transform-origin: top;
+ transition: transform 0.6s, background-color 1s;
+ background-color: var(--tl-primary-color);
+ flex-direction: column;
+}
+.small-screen .app-bar-main-area.app-bar-collapse {
+ transform: scale(1, 0);
+}
+.small-screen .app-bar-main-area a {
+ text-align: left;
+ padding: 0.5em 0.5em;
+}
+.small-screen .app-bar-link-area {
+ flex-direction: column;
+ align-items: stretch;
+}
+.small-screen .app-bar-user-area {
+ flex-direction: column;
+ align-items: stretch;
+ margin-left: unset;
+}
+.small-screen .app-bar-avatar {
+ align-self: flex-end;
+}
+
+.app-bar-toggler {
+ margin-left: auto;
+ font-size: 2em;
+ margin-right: 1em;
+ color: var(--tl-text-on-primary-color);
+ cursor: pointer;
+ user-select: none;
+}