Skip to content

New templates and static #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions hyperkitty/static/hyperkitty/sass/_hyperkitty-base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

@import "original/hyperkitty-base";

body {
background-color: rgb(229, 231, 235);
color: rgb(49, 74, 87);
}

nav#navbar-main {
background-color: $navbarColor;
border-bottom: 2px solid rgb(209, 213, 219);

a.nav-link, div.navbar-header > a {
color: rgb(49, 74, 87);
}
}

.navbar-brand img {
height: 25px;
margin-right: 25px;
}

.btn-primary {
background-color: rgb(255, 159, 0);
border-color: rgb(255, 159, 0);
}
.btn-primary:hover {
background-color: rgba(255, 159, 0, 0.8);
border-color: rgb(255, 159, 0);
}

.boost-nav .nav-item a:hover {
color: rgb(255, 159, 0) !important;
}

.boost-nav .nav-item {
line-height: 14px;
margin-right: 25px !important;
}

footer {
background-color: $navbarColor;
}

nav {
$searchColor: white;
}

.navbar-toggler {
color: #999;
}


9 changes: 9 additions & 0 deletions hyperkitty/static/hyperkitty/sass/_hyperkitty-message.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

@import "original/hyperkitty-message";

.replies .email {
.subject {
padding-top: 5;
padding-left: 0;
}
}
5 changes: 5 additions & 0 deletions hyperkitty/static/hyperkitty/sass/_hyperkitty-variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

@import "original/hyperkitty-variables";

$rowHoverColor: #999;
$navbarColor: rgb(229,231,235);
112 changes: 112 additions & 0 deletions hyperkitty/static/hyperkitty/sass/original/_hyperkitty-base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
// floating navbar's height
$navbarHeight: 75px;
$navbarHoverColor: #e7e7e7;


html {
// for compatibility with Bootstrap 3, we set the default size to be 14 (b4 makes it 16).
font-size: 14px;
}

body {
background-color: white;
min-height: 100vh;
min-height: 100dvh;
display: grid;
grid-template-rows: auto 1fr auto;

}

nav#navbar-main {
background-color: $navbarColor;

a.nav-link, div.navbar-header > a {
color: white;
}

}




footer {
background-color: #f8f8f8;
border-top: 1px solid $navbarHoverColor;
margin-top: 2em;
padding: 1em;
text-align: center;
p {
margin: 0;
}

img {
height: 25px;
}
}

//=== NAVBAR
nav {
padding-top: 5px;
padding-bottom: 5px;

// general links
ul.nav-pills li:first-child {
padding-top: 2px;
}

// login/logout
ul.auth a:last-child {
padding-right: 0; /* flush with right margin */
}

// override bootstrap color for search button
.input-group-addon {
background: inherit;
}
$searchColor: rgb(146, 194, 245);
.search {
background-color: $searchColor;
text-align: center;
border: none;
}

.search-button {
background-color: $searchColor;
}

// postorius link
.postorius {
padding: 10px 20px;
margin: 0;
float: right;
}

.user-button {
background-color: inherit;
border: none;
}
}

// hack: forces search box to appear on one line in navbar in larger screens
// hack: we need extra .input-group to force search box to appear on one line in smaller screens
// note: any pixel-based width will allow hack to work
// @media (min-width: 768px) {
// nav .input-group {
// width: 200px;
// }
// }


.circle img {
border-radius: 50%;
width: 50px;
height: 50px;
/* width and height can be anything, as long as they're equal */
}

.circle-small img {
border-radius: 50%;
width: 40px;
height: 40px;
/* width and height can be anything, as long as they're equal */
}
Loading