vrifox/gitea-theme
Archived
1
0
Fork 0
This repository has been archived on 2022-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-theme/scss/import/include.scss

508 lines
9.6 KiB
SCSS
Raw Permalink Normal View History

2020-10-30 18:05:31 +01:00
@mixin contribution-heatmap {
div {
h4.total-contributions {}
svg.vch__wrapper {
g.vch__months__labels__wrapper {
text.vch__month__label {
fill: $white-dark;
}
}
g.vch__days__labels__wrapper {
text.vch__day__label {
fill: $white-dark;
}
}
g.vch__legend__wrapper {
text {
fill: $white-dark;
}
rect {
@include contribution-heatmap-colors;
}
}
g.vch__year__wrapper {
g.vch__month__wrapper {
rect.vch__day__square {
@include contribution-heatmap-colors;
}
}
}
}
}
}
@mixin contribution-heatmap-colors {
&[style*="fill: rgb(244, 244, 244);"] {
fill: $bg50 !important;
}
&[style*="fill: rgb(216, 239, 191);"] {
fill: $bg60 !important;
}
&[style*="fill: rgb(159, 219, 129);"] {
fill: $bg70 !important;
}
&[style*="fill: rgb(102, 199, 75);"] {
2020-10-30 23:02:58 +01:00
fill: $red-dark !important;
2020-10-30 18:05:31 +01:00
}
&[style*="fill: rgb(96, 153, 38);"] {
2020-10-30 23:02:58 +01:00
fill: $red !important;
2020-10-30 18:05:31 +01:00
}
&[style*="fill: rgb(2, 89, 0);"] {
2020-10-30 23:02:58 +01:00
fill: $red-light !important;
2020-10-30 18:05:31 +01:00
}
}
2020-10-30 21:28:13 +01:00
@mixin label-milestone-menu {
.left.small.menu {
background: transparent;
border: 0;
.item {
background: $bg60;
color: $white;
font-family: $font-family;
&:first-child {
border-radius: $border-radius 0 0 $border-radius;
}
&:hover {
background: $bg50;
}
&:last-child {
border-radius: 0 $border-radius $border-radius 0;
}
&.active {
background: $bg50;
}
}
}
}
@mixin open-closed-buttons {
.basic.button {
2020-10-30 22:54:19 +01:00
font-family: $font-family;
2020-10-30 21:28:13 +01:00
&:not(.active) {
background: $bg60;
color: $white;
&:hover {
background: $bg50;
}
}
&.green {
background: $green;
box-shadow: none;
color: $white-light;
&:hover {
background: $green-dark;
}
}
&.red {
background: $red;
box-shadow: none;
color: $white-light;
&:hover {
background: $red-dark;
}
}
.svg {
@if $nojavascript == true {
display: none;
}
}
}
}
@mixin search-issues {
form.form {
.input {
input {
background: $bg40;
border: 2px solid $bg60;
color: $white;
2020-10-30 22:54:19 +01:00
font-family: $font-family;
2020-10-30 21:28:13 +01:00
&:focus {
background: $bg50;
border: 2px solid $bg60;
color: $white;
}
}
.button {
background: $bg60;
border: 0;
2020-10-30 22:54:19 +01:00
font-family: $font-family;
2020-10-30 21:28:13 +01:00
&:hover {
background: $bg50;
}
}
}
}
}
2020-10-30 22:54:19 +01:00
@mixin issue-list {
.issue.list {
.item {
border-bottom: 1px dashed $bg70;
.label {
background: $white;
color: $bg60;
}
.title {
border-bottom: 1px solid transparent;
color: $white;
transition: border .2s, color .2s;
&:hover {
border-bottom: 1px solid $red;
color: $red;
}
}
.desc {
color: $white-dark;
a.milestone {
color: $white !important;
&:hover {
color: $red !important;
}
}
}
}
}
}
@mixin dropdown {
.dropdown {
background: $bg60;
border-radius: $border-radius;
color: $white;
padding: 10px 0 10px 13px;
&:first-of-type {
margin-left: auto;
}
&:hover {
background: $bg50;
.menu {
@if $nojavascript == true {
display: block;
}
}
}
span.text {
i.dropdown.icon {
padding: 0;
}
}
.menu {
background: $bg60;
border: 1px solid $bg50;
box-shadow: none;
margin-top: 0;
.item {
color: $white !important;
&:hover {
background: $bg50;
}
}
}
}
}
@mixin dropdown-floating {
.dropdown.floating {
&:hover {
.context.user.menu {
display: none;
}
}
.text {
color: $white;
}
.context.user.menu {
background: $bg50;
.header {
color: $white;
}
.scrolling.menu.items {
border: 0;
}
.item {
background: $bg50 !important;
2020-10-30 22:54:19 +01:00
border-radius: 0;
color: $white !important;
&:hover {
background: $bg40;
}
&.active {
background: $bg40 !important;
&:hover {
background: $bg30 !important;
}
}
}
}
}
}
2020-11-08 19:50:40 +01:00
2020-11-08 20:45:29 +01:00
@mixin dropdown-selection {
2020-11-10 20:06:35 +01:00
.dropdown.selection {
2020-11-08 20:45:29 +01:00
background: $bg60;
2020-11-10 20:06:35 +01:00
border: 0;
2020-11-08 20:45:29 +01:00
border-radius: $border-radius;
color: $white;
padding: 10px 0 10px 13px;
&:hover {
background: $bg50;
.menu {
@if $nojavascript == true {
display: block;
}
}
}
2020-11-10 20:06:35 +01:00
&.visible {
.text {
color: $white;
2020-11-08 20:45:29 +01:00
}
}
2020-11-10 20:06:35 +01:00
i.dropdown.icon {
padding: 10px;
}
.text {
padding: 1.5px 0;
}
2020-11-08 20:45:29 +01:00
.menu {
background: $bg60;
2020-11-10 20:06:35 +01:00
border: 0;
2020-11-08 20:45:29 +01:00
box-shadow: none;
margin-top: 0;
.item {
2020-11-10 20:06:35 +01:00
border-color: $bg50;
2020-11-08 20:45:29 +01:00
color: $white !important;
&:hover {
background: $bg50;
}
}
}
}
}
2020-11-08 19:50:40 +01:00
@mixin secondary-menu_new-menu {
.secondary.menu {
background-color: $bg70 !important;
border-radius: 0;
2020-11-08 20:45:29 +01:00
padding-bottom: 2px;
&::after {
background: linear-gradient(90deg, transparent, $bg70);
}
2020-11-08 19:50:40 +01:00
.item {
color: $white-dark;
&:hover {
color: $white-light !important;
}
&.active {
color: $white !important;
&:hover {
color: $white-light;
}
}
svg {
@if $nojavascript == true {
display: none;
}
}
.label {
background: $bg60;
}
}
}
}
2020-11-08 20:09:41 +01:00
@mixin settings {
.container {
2020-11-10 20:06:35 +01:00
.message {
box-shadow: none;
color: $white;
&.positive {
background: $green;
}
&.negative {
background: $green;
}
}
2020-11-08 20:09:41 +01:00
.header {
background: $bg60;
border: 0;
color: $white;
}
.attached.segment {
background: $bg30;
border: 0;
form.form {
.field {
2020-11-08 20:45:29 +01:00
&.required {
label {
&::after {
color: $red;
}
}
}
a.red.button {
background: $red;
&:hover {
background: $red-dark;
}
}
button.green.button {
background: $green;
&:hover {
background: $green-dark;
}
2020-11-08 20:09:41 +01:00
}
input {
background: $bg40;
2020-11-10 20:06:35 +01:00
border: 0;
2020-11-08 20:09:41 +01:00
color: $white;
font-family: $font-family;
2020-11-10 20:06:35 +01:00
&::selection {
background: $white;
color: $bg40;
}
2020-11-08 20:09:41 +01:00
&:focus {
background: $bg50;
color: $white;
}
}
2020-11-08 20:45:29 +01:00
label {
color: $white;
&.poping.up {
&::before {
2020-11-10 20:06:35 +01:00
background: $bg60;
border-color: $bg70;
2020-11-08 20:45:29 +01:00
}
&::after {
color: $white;
}
}
2020-11-10 20:06:35 +01:00
.text.red {
color: $red !important;
}
2020-11-08 20:45:29 +01:00
}
textarea {
background: $bg40;
2020-11-10 20:06:35 +01:00
border: 0;
color: $white;
&::selection {
background: $white;
color: $bg40;
}
2020-11-08 20:45:29 +01:00
}
2020-11-08 20:09:41 +01:00
}
}
2020-11-10 20:06:35 +01:00
@include dropdown-selection;
2020-11-08 20:09:41 +01:00
}
}
}
2020-12-10 20:13:32 +01:00
@mixin sha-label {
.sha.label {
background: $bg70;
border: 0 !important;
color: $white;
transition: background .2s, color .2s;
&:hover {
background: $bg60;
color: $white;
}
&.isSigned.isVerified {
background: $bg70 !important;
&:hover {
background: $bg60 !important;
.detail.icon {
background: $bg60 !important;
}
}
.detail.icon {
background: $bg70 !important;
border: 0 !important;
color: $green !important;
margin: -6px -8px -4px 0 !important;
padding: 5px 4px 5px 0 !important;
&:hover {
background: $bg60 !important;
}
}
}
}
}
2020-12-29 10:30:43 +01:00
@mixin search {
form.form {
.input {
input {
background: $bg40;
border: 2px solid $bg60;
color: $white;
&:focus {
background: $bg50;
border: 2px solid $bg60;
color: $white-light;
}
}
.button {
background: $bg60;
border: 0;
&:hover {
background: $bg50;
}
}
}
}
}
@mixin repository-list {
.repository.list {
.item {
&:not(:first-child) {
border-top: 1px solid $bg60;
}
.header {
a.name {
font-family: $font-family;
i.archive.icon {
color: $white-dark !important;
}
}
.metas {
@if $singleuser == true {
display: none;
}
span {
color: $white-dark !important;
}
}
}
.description {
p {
2020-12-31 13:15:37 +01:00
color: $white-dark;
2020-12-29 10:30:43 +01:00
&.time {
color: $white-dark;
}
}
.tags {
a .label {
background: $bg60;
color: $white;
&:hover {
background: $bg70;
color: $white-light;
}
}
}
}
}
}
}
2020-12-31 13:15:37 +01:00
@mixin divider {
.divider {
border-bottom: 1px solid $bg60 !important;
border-top: 0 !important;
}
}