I2P brand styleguides for the web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

302 lines
4.9 KiB

5 years ago
// Alerts
.alert {
border-radius: 15px;
&-primary {
color: #3b4f87;
background-color: #e2e6f0;
border-color: #6679ac;
& hr {
border-top-color: #6679ac;
}
& .alert-link {
color: #003600;
}
5 years ago
}
&-secondary {
color: $gray-700;
background-color: $gray-200;
border-color: $gray-600;
& hr {
border-top-color: $gray-600;
}
& .alert-link {
color: $gray-800;
}
5 years ago
}
&-success {
color: #105c10;
background-color: #e1f2e1;
border-color: #60ab60;
& hr {
border-top-color: #1d731d;
}
& .alert-link {
color: #003b00;
}
5 years ago
}
&-warning {
color: #6b4c00;
background-color: #ffeab5;
border-color: #cca443;
& hr {
border-top-color: #cca443;
}
& .alert-link {
color: #a66b00;
}
5 years ago
}
&-danger {
color: #700b00;
background-color: #ffcac4;
border-color: #e15647;
& hr {
border-top-color: #e15647;
}
& .alert-link {
color: #880000;
}
}
}
5 years ago
// Primary & Secondary Backgrounds
7 years ago
.background-primary {
background-color: $primary;
}
.background-secondary {
background-color: $secondary;
}
5 years ago
.background-black {
background-color: $black;
}
.background-white {
background-color: $white;
}
// Text colors
7 years ago
.color-primary {
5 years ago
color: $primary;
7 years ago
}
.color-secondary {
color: $secondary;
}
.rb-code {
6 years ago
font-family: 'Source Code Pro', monospace !important;
7 years ago
}
.rb-isBold {
font-weight: bold;
}
5 years ago
// Buttons
.btn-primary,
.btn-outline-primary,
.btn-lg,
.btn-large,
.btn-outline-large,
.btn-md,
.btn-medium,
.btn-outline-medium {
line-height: 1em;
}
7 years ago
.btn-primary {
background-color: $primary !important;
border-color: transparent !important;
padding: 1rem 1.5rem !important;
font-size: 1rem;
&:hover {
background-color: $secondary !important;
border-color: transparent !important;
}
}
.btn-white {
color: $primary !important;
5 years ago
background-color: $white !important;
border-color: transparent !important;
padding: 1rem 1.5rem !important;
font-size: 1rem;
&:hover {
5 years ago
color: $white !important;
background-color: $secondary !important;
border-color: transparent !important;
}
}
7 years ago
.btn-small {
background-color: $primary !important;
border-color: transparent !important;
padding: .08rem .4rem 0 !important;
font-size: .8rem;
5 years ago
color: $white;
7 years ago
&:hover {
background-color: $secondary !important;
border-color: transparent !important;
}
}
.btn-medium {
background-color: $primary !important;
border-color: transparent !important;
padding: .5rem 1rem !important;
font-size: 1rem !important;
5 years ago
color: $white;
7 years ago
&:hover {
background-color: $secondary !important;
border-color: transparent !important;
5 years ago
color: $white;
7 years ago
}
}
.btn-large {
border-radius: .3rem;
background-color: $primary !important;
border-color: transparent !important;
border-radius: 2em;
padding: .5rem 1rem !important;
font-size: 1.25rem !important;
5 years ago
color: $white;
7 years ago
&:hover {
background-color: $secondary !important;
border-color: transparent !important;
5 years ago
color: $white;
7 years ago
}
}
.btn-outline-medium {
border-color: $primary !important;
color: $primary !important;
padding: .5rem 1rem !important;
font-size: 1rem !important;
background-color: transparent !important;
&:hover {
5 years ago
color: $white !important;
7 years ago
background-color: $primary !important;
border-color: transparent !important;
}
}
.btn-outline-small {
border-color: $primary !important;
color: $primary !important;
padding: .08rem .4rem 0 !important;
font-size: .8rem;
background-color: transparent !important;
&:hover {
5 years ago
color: 4 !important;
7 years ago
background-color: $primary !important;
border-color: transparent !important;
}
}
.btn-outline-primary {
border-color: $primary !important;
color: $primary !important;
padding: 1rem 1.5rem !important;
font-size: 1rem;
&:hover {
5 years ago
color: $white !important;
7 years ago
background-color: $primary !important;
border-color: transparent !important;
}
}
.btn-link {
color: var(--link) !important;
font-family: "Nunito", sans-serif;
7 years ago
&:hover {
color: var(--link-hover) !important;
7 years ago
}
}
.btn-pill {
border-radius: 30px;
7 years ago
}
.badge-primary {
background-color: $primary !important;
}
.badge-secondary {
background-color: $secondary !important;
}
.rb-link {
color: var(--link) !important;
7 years ago
&:hover {
color: var(--link-hover) !important;
7 years ago
}
}
.mark, mark {
background-color: $gray-300 !important;
7 years ago
padding: .2em !important;
}
img {
max-width: 100%;
}
.theme-toggle {
display: inline-flex;
position: absolute;
cursor: pointer;
top: 36px;
right: 36px;
}
@media screen and (max-width: 991px) {
.theme-toggle {
display: inline-flex;
position: absolute;
right: 96px;
}
}
5 years ago
// Dropdowns
.dropdown-toggle {
background-color: var(--box) !important;
color: var(--text) !important;
}
.dropdown-menu {
background-color: var(--box) !important;
}
.dropdown-item {
color: var(--primary) !important;
&:hover {
color: var(--text);
background-color: var(--sidebar-inner-bg);
}
}