Builds for
1 pipeline
passed
in
17 minutes 29 seconds
feat: add new frontend skeleton
Showing
7 changed files
with
155 additions
and
0 deletions
khubox-front/index.html
0 → 100644
This diff is collapsed. Click to expand it.
khubox-front/static/css/bootstrap.min.css
0 → 100644
This diff could not be displayed because it is too large.
khubox-front/static/css/main.css
0 → 100644
| 1 | +body { | ||
| 2 | + font-size: .875rem; | ||
| 3 | +} | ||
| 4 | + | ||
| 5 | +.login-html, .login-body { | ||
| 6 | + height: 100%; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +.login-body { | ||
| 10 | + display: -ms-flexbox; | ||
| 11 | + display: flex; | ||
| 12 | + -ms-flex-align: center; | ||
| 13 | + align-items: center; | ||
| 14 | + padding-top: 40px; | ||
| 15 | + padding-bottom: 40px; | ||
| 16 | + background-color: #f5f5f5; | ||
| 17 | +} | ||
| 18 | + | ||
| 19 | +.form-signin { | ||
| 20 | + width: 100%; | ||
| 21 | + max-width: 330px; | ||
| 22 | + padding: 15px; | ||
| 23 | + margin: auto; | ||
| 24 | +} | ||
| 25 | +.form-signin .checkbox { | ||
| 26 | + font-weight: 400; | ||
| 27 | +} | ||
| 28 | +.form-signin .form-control { | ||
| 29 | + position: relative; | ||
| 30 | + box-sizing: border-box; | ||
| 31 | + height: auto; | ||
| 32 | + padding: 10px; | ||
| 33 | + font-size: 16px; | ||
| 34 | +} | ||
| 35 | +.form-signin .form-control:focus { | ||
| 36 | + z-index: 2; | ||
| 37 | +} | ||
| 38 | +.form-signin .input-top { | ||
| 39 | + margin-bottom: -1px; | ||
| 40 | + border-bottom-right-radius: 0; | ||
| 41 | + border-bottom-left-radius: 0; | ||
| 42 | +} | ||
| 43 | +.form-signin .input-mid { | ||
| 44 | + margin-bottom: -1px; | ||
| 45 | + border-radius: 0; | ||
| 46 | +} | ||
| 47 | +.form-signin .input-bot { | ||
| 48 | + margin-bottom: 10px; | ||
| 49 | + border-top-left-radius: 0; | ||
| 50 | + border-top-right-radius: 0; | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +.feather { | ||
| 54 | + width: 16px; | ||
| 55 | + height: 16px; | ||
| 56 | + vertical-align: text-bottom; | ||
| 57 | +} | ||
| 58 | + | ||
| 59 | +/* | ||
| 60 | + * Sidebar | ||
| 61 | + */ | ||
| 62 | + | ||
| 63 | +.sidebar { | ||
| 64 | + position: fixed; | ||
| 65 | + top: 0; | ||
| 66 | + bottom: 0; | ||
| 67 | + left: 0; | ||
| 68 | + z-index: 100; /* Behind the navbar */ | ||
| 69 | + padding: 48px 0 0; /* Height of navbar */ | ||
| 70 | + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); | ||
| 71 | +} | ||
| 72 | + | ||
| 73 | +@media (max-width: 767.98px) { | ||
| 74 | + .sidebar { | ||
| 75 | + top: 5rem; | ||
| 76 | + } | ||
| 77 | +} | ||
| 78 | + | ||
| 79 | +.sidebar-sticky { | ||
| 80 | + position: relative; | ||
| 81 | + top: 0; | ||
| 82 | + height: calc(100vh - 48px); | ||
| 83 | + padding-top: .5rem; | ||
| 84 | + overflow-x: hidden; | ||
| 85 | + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ | ||
| 86 | +} | ||
| 87 | + | ||
| 88 | +@supports ((position: -webkit-sticky) or (position: sticky)) { | ||
| 89 | + .sidebar-sticky { | ||
| 90 | + position: -webkit-sticky; | ||
| 91 | + position: sticky; | ||
| 92 | + } | ||
| 93 | +} | ||
| 94 | + | ||
| 95 | +.sidebar .nav-link { | ||
| 96 | + font-weight: 500; | ||
| 97 | + color: #333; | ||
| 98 | +} | ||
| 99 | + | ||
| 100 | +.sidebar .nav-link .feather { | ||
| 101 | + margin-right: 4px; | ||
| 102 | + color: #999; | ||
| 103 | +} | ||
| 104 | + | ||
| 105 | +.sidebar .nav-link.active { | ||
| 106 | + color: #007bff; | ||
| 107 | +} | ||
| 108 | + | ||
| 109 | +.sidebar .nav-link:hover .feather, | ||
| 110 | +.sidebar .nav-link.active .feather { | ||
| 111 | + color: inherit; | ||
| 112 | +} | ||
| 113 | + | ||
| 114 | +.sidebar-heading { | ||
| 115 | + font-size: .75rem; | ||
| 116 | + text-transform: uppercase; | ||
| 117 | +} | ||
| 118 | + | ||
| 119 | +/* | ||
| 120 | + * Navbar | ||
| 121 | + */ | ||
| 122 | + | ||
| 123 | +.navbar-brand { | ||
| 124 | + padding-top: .75rem; | ||
| 125 | + padding-bottom: .75rem; | ||
| 126 | + font-size: 1rem; | ||
| 127 | + background-color: rgba(0, 0, 0, .25); | ||
| 128 | + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); | ||
| 129 | +} | ||
| 130 | + | ||
| 131 | +.navbar .navbar-toggler { | ||
| 132 | + top: .25rem; | ||
| 133 | + right: 1rem; | ||
| 134 | +} | ||
| 135 | + | ||
| 136 | +.navbar .form-control { | ||
| 137 | + padding: .75rem 1rem; | ||
| 138 | + border-width: 0; | ||
| 139 | + border-radius: 0; | ||
| 140 | +} | ||
| 141 | + | ||
| 142 | +.form-control-dark { | ||
| 143 | + color: #fff; | ||
| 144 | + background-color: rgba(255, 255, 255, .1); | ||
| 145 | + border-color: rgba(255, 255, 255, .1); | ||
| 146 | +} | ||
| 147 | + | ||
| 148 | +.form-control-dark:focus { | ||
| 149 | + border-color: transparent; | ||
| 150 | + box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); | ||
| 151 | +} | ||
| 152 | + | ||
| 153 | +.dropdown-item { | ||
| 154 | + font-size: 0.8rem; | ||
| 155 | +} |
This diff is collapsed. Click to expand it.
khubox-front/static/js/feather.min.js
0 → 100644
This diff is collapsed. Click to expand it.
khubox-front/static/js/jquery-3.5.1.min.js
0 → 100644
This diff is collapsed. Click to expand it.
khubox-front/static/js/main.js
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment