init
This commit is contained in:
53
themes/godocs-1/assets/scss/templates/_bootstrap.scss
Normal file
53
themes/godocs-1/assets/scss/templates/_bootstrap.scss
Normal file
@@ -0,0 +1,53 @@
|
||||
// Bootstrap 5.3.0
|
||||
|
||||
@import "../bootstrap/mixins/banner";
|
||||
@include bsBanner("");
|
||||
|
||||
// scss-docs-start import-stack
|
||||
// Configuration
|
||||
@import "../bootstrap/functions";
|
||||
@import "../bootstrap/variables";
|
||||
@import "../bootstrap/variables-dark";
|
||||
@import "../bootstrap/maps";
|
||||
@import "../bootstrap/mixins";
|
||||
@import "../bootstrap/utilities";
|
||||
|
||||
// Layout & components
|
||||
@import "../bootstrap/root";
|
||||
@import "../bootstrap/reboot";
|
||||
@import "../bootstrap/type";
|
||||
@import "../bootstrap/images";
|
||||
@import "../bootstrap/containers";
|
||||
@import "../bootstrap/grid";
|
||||
@import "../bootstrap/tables";
|
||||
@import "../bootstrap/forms";
|
||||
@import "../bootstrap/buttons";
|
||||
@import "../bootstrap/transitions";
|
||||
@import "../bootstrap/dropdown";
|
||||
// @import "../bootstrap/button-group";
|
||||
@import "../bootstrap/nav";
|
||||
@import "../bootstrap/navbar";
|
||||
@import "../bootstrap/card";
|
||||
@import "../bootstrap/accordion";
|
||||
@import "../bootstrap/breadcrumb";
|
||||
@import "../bootstrap/pagination";
|
||||
@import "../bootstrap/badge";
|
||||
// @import "../bootstrap/alert";
|
||||
// @import "../bootstrap/progress";
|
||||
@import "../bootstrap/list-group";
|
||||
// @import "../bootstrap/close";
|
||||
// @import "../bootstrap/toasts";
|
||||
@import "../bootstrap/modal";
|
||||
// @import "../bootstrap/tooltip";
|
||||
// @import "../bootstrap/popover";
|
||||
// @import "../bootstrap/carousel";
|
||||
// @import "../bootstrap/spinners";
|
||||
// @import "../bootstrap/offcanvas";
|
||||
// @import "../bootstrap/placeholders";
|
||||
|
||||
// Helpers
|
||||
@import "../bootstrap/helpers";
|
||||
|
||||
// Utilities
|
||||
@import "../bootstrap/utilities/api";
|
||||
// scss-docs-end import-stack
|
||||
569
themes/godocs-1/assets/scss/templates/_main.scss
Normal file
569
themes/godocs-1/assets/scss/templates/_main.scss
Normal file
@@ -0,0 +1,569 @@
|
||||
.search-wrapper {
|
||||
position: relative;
|
||||
cursor: text;
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
height: 54px;
|
||||
border: 1px solid $border-color;
|
||||
padding-left: 40px !important;
|
||||
border-radius: 5px;
|
||||
width: 320px;
|
||||
@extend .shadow;
|
||||
|
||||
@include mobile {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
&-sm {
|
||||
height: 45px;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: $text-light;
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.search-button {
|
||||
border: 1px solid $border-color;
|
||||
color: $text-light;
|
||||
background-color: transparent;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 4px;
|
||||
cursor: text;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.card {
|
||||
@extend .shadow;
|
||||
@extend .rounded;
|
||||
transition: .2s ease;
|
||||
border: 0;
|
||||
|
||||
&-lg {
|
||||
.card-body {
|
||||
padding: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
color: $color-primary;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
font-size: 22px;
|
||||
@extend .rounded;
|
||||
}
|
||||
|
||||
&-text {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
&-body {
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px 15px 60px rgba(62, 62, 62, 0.2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
margin-bottom: 0;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
height: 42px;
|
||||
width: 42px;
|
||||
line-height: 42px;
|
||||
text-align: center;
|
||||
color: $white;
|
||||
background: $color-primary;
|
||||
border-radius: 6px;
|
||||
|
||||
&:hover {
|
||||
background: darken($color: $color-primary, $amount: 10) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer-menu {
|
||||
margin-bottom: 0;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
color: $text-color;
|
||||
transition: .2s ease;
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* sidenav */
|
||||
.sidenav {
|
||||
border-right: 1px solid $border-color;
|
||||
padding-right: 20px;
|
||||
|
||||
@include mobile {
|
||||
border: none;
|
||||
border-top: 1px solid $border-color;
|
||||
margin-top: 20px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
&>li {
|
||||
a {
|
||||
padding: 20px 0;
|
||||
color: $text-dark;
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid $border-color;
|
||||
}
|
||||
}
|
||||
|
||||
.sidelist {
|
||||
ul {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.parent {
|
||||
&>a {
|
||||
color: $color-primary !important;
|
||||
position: relative;
|
||||
margin-left: 10px;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: -10px;
|
||||
top: 25%;
|
||||
height: 50%;
|
||||
width: 1px;
|
||||
background: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
|
||||
a {
|
||||
padding: 5px 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: $text-dark;
|
||||
}
|
||||
|
||||
li.active>a {
|
||||
margin-left: 10px;
|
||||
|
||||
&::before {
|
||||
height: 5px;
|
||||
width: 5px;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
top: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* /sidenav */
|
||||
|
||||
|
||||
.page-list {
|
||||
list-style-type: none;
|
||||
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
padding: 7px 0;
|
||||
font-size: 20px;
|
||||
color: $text-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin-top: 50px;
|
||||
justify-content: space-between;
|
||||
|
||||
a {
|
||||
color: $color-primary;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
i {
|
||||
line-height: 1.7;
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
// copy to clipboard
|
||||
.highlight {
|
||||
position: relative;
|
||||
|
||||
.copy-to-clipboard {
|
||||
background: $color-primary;
|
||||
color: $white;
|
||||
cursor: pointer;
|
||||
padding: 4px 5px;
|
||||
line-height: 1;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
:not(pre)>code+span.copy-to-clipboard {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// autocomplete
|
||||
.autocomplete-suggestions {
|
||||
border: 0;
|
||||
border-radius: 0 0 6px 6px;
|
||||
box-shadow: 0px 50px 60px rgba(62, 62, 62, 0.102) !important;
|
||||
background: $white;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
|
||||
&-track {
|
||||
background: $light;
|
||||
}
|
||||
|
||||
&-thumb {
|
||||
background: $border-color;
|
||||
}
|
||||
}
|
||||
|
||||
.autocomplete-suggestion {
|
||||
transition: .2s ease;
|
||||
padding: 10px;
|
||||
font-weight: 500;
|
||||
|
||||
&.selected {
|
||||
background: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search-item {
|
||||
a {
|
||||
color: $text-dark;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid $border-color;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
font-size: 16px;
|
||||
height: 40px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-bottom: 1px solid $border-color;
|
||||
border-radius: 0;
|
||||
padding: 10px 0;
|
||||
color: $text-dark;
|
||||
|
||||
&::placeholder {
|
||||
font-size: 16px;
|
||||
color: $text-light;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
border-color: $color-primary;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.form-select {
|
||||
font-size: 16px;
|
||||
color: rgba($text-dark, .8);
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(34,34,34,.5)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
||||
background-position: right center;
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
border-color: $color-primary;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
option:checked {
|
||||
font-size: 36px !important;
|
||||
}
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
height: 100px;
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
margin-bottom: 20px;
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
display: block;
|
||||
width: fit-content;
|
||||
|
||||
&.added {
|
||||
background: #3778FF;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.fixed {
|
||||
background: #F54773;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.changed {
|
||||
background: #3AAA55;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.depricated {
|
||||
background: #343434;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.removed {
|
||||
background: #3bbfe4;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.security {
|
||||
background: #F53535;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.unreleased {
|
||||
background: #A037FF;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
:not(.highlight) pre {
|
||||
background: $light;
|
||||
}
|
||||
|
||||
// content style
|
||||
.content {
|
||||
span[style="color:#585b70;font-style:italic"] {
|
||||
color: #7f818c !important;
|
||||
}
|
||||
|
||||
&>img {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
* {
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
margin-left:20px;
|
||||
|
||||
li {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 0;
|
||||
margin-bottom: 20px;
|
||||
|
||||
li {
|
||||
padding-left: 20px;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
border-radius: 50%;
|
||||
background: lighten($color: $text-color, $amount: 20);
|
||||
left: 3px;
|
||||
top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
border: 1px solid #EEEEEE;
|
||||
border-radius: 5px;
|
||||
border-spacing: 0;
|
||||
border-collapse: separate;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
table td,
|
||||
table th {
|
||||
padding: .75rem;
|
||||
vertical-align: top;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
tr:not(:last-child) {
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
thead {
|
||||
background: $light;
|
||||
margin-bottom: 0;
|
||||
|
||||
tr {
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
background: #fff;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-size: 20px !important;
|
||||
color: $text-dark;
|
||||
padding: 20px 30px;
|
||||
border-left: 2px solid $color-primary;
|
||||
margin: 40px 0;
|
||||
font-weight: bold;
|
||||
background: $light;
|
||||
|
||||
p {
|
||||
color: rgba($text-dark, 0.8);
|
||||
font-size: 18px !important;
|
||||
margin-bottom: 0 !important;
|
||||
line-height: 1.7;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: 15px 20px !important;
|
||||
margin: 10px 0 30px 0 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
code {
|
||||
margin-bottom: 0 !important;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
iframe {
|
||||
display: block;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.accordion-body {
|
||||
color: $black;
|
||||
|
||||
*:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-nav-button {
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.content .tab-nav-button {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
[data-tab-item] {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
blockquote,
|
||||
.notices {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
code {
|
||||
color:$color-primary;
|
||||
font-weight: 500;
|
||||
}
|
||||
115
themes/godocs-1/assets/scss/templates/_navigation.scss
Normal file
115
themes/godocs-1/assets/scss/templates/_navigation.scss
Normal file
@@ -0,0 +1,115 @@
|
||||
.navigation {
|
||||
transition: .2s ease;
|
||||
|
||||
&.nav-bg {
|
||||
background: $white;
|
||||
@extend .shadow;
|
||||
|
||||
@include desktop {
|
||||
top: -50px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-inline button {
|
||||
transition: 0s;
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
.form-inline {
|
||||
cursor: pointer;
|
||||
margin: 0 10px 0 auto !important;
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
position: static;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
width: 30px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
i {
|
||||
color: $text-dark;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.fa-xmark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fa-bars {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&[aria-expanded="true"] {
|
||||
i {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fa-xmark {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
margin: 0;
|
||||
|
||||
.nav-link {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-light .navbar-nav .nav-link {
|
||||
color: $text-dark;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-expand-lg .navbar-nav .nav-link {
|
||||
padding: 20px;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
|
||||
@include desktop {
|
||||
padding: 10px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
#select-language {
|
||||
border: 1px solid $border-color;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.nav-tabs,
|
||||
.nav-tabs > li {
|
||||
list-style: none !important;
|
||||
}
|
||||
|
||||
.nav.nav-tabs .nav-item::before,
|
||||
.nav.nav-pills .nav-item::before {
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
.nav-link,
|
||||
.nav-link:hover {
|
||||
color:#484848;
|
||||
}
|
||||
|
||||
.nav-pills-custom {
|
||||
--bs-nav-tabs-link-active-color: #ffffff;
|
||||
--bs-nav-tabs-link-active-bg: #759E4C;
|
||||
}
|
||||
106
themes/godocs-1/assets/scss/templates/search-modal.scss
Normal file
106
themes/godocs-1/assets/scss/templates/search-modal.scss
Normal file
@@ -0,0 +1,106 @@
|
||||
// search-modal
|
||||
.search-modal-dialog {
|
||||
margin-top: 150px;
|
||||
max-width: 600px;
|
||||
@include desktop {
|
||||
margin-top: 80px;
|
||||
}
|
||||
}
|
||||
.search-modal {
|
||||
.input-group-text,
|
||||
.search-form-control {
|
||||
border: 2px solid rgba($color-primary, 0.5);
|
||||
}
|
||||
.search-form-control {
|
||||
padding-right: 15px;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.modal-body {
|
||||
max-height: calc(100vh - 350px);
|
||||
padding: 1rem;
|
||||
overflow-y: auto;
|
||||
background-color: #f5f6f7;
|
||||
box-shadow: inset 0px 2px 18px #ddd;
|
||||
border-bottom-left-radius: calc(0.3rem - 1px);
|
||||
border-bottom-right-radius: calc(0.3rem - 1px);
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
&-track {
|
||||
background: $white;
|
||||
}
|
||||
&-thumb {
|
||||
background: #c7c7c7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.search-result-item {
|
||||
&:first-child {
|
||||
.section:not(:empty) {
|
||||
margin-top: -15px;
|
||||
}
|
||||
}
|
||||
&:not(:last-child) a {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
> .section {
|
||||
padding: 0 0.75rem;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 25px;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.block {
|
||||
display: block;
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #eee;
|
||||
background-color: #fff;
|
||||
transition: 0.1s;
|
||||
p {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
font-weight: 500;
|
||||
mark:not(:first-child) {
|
||||
background-color: transparent;
|
||||
}
|
||||
mark {
|
||||
color: $color-primary;
|
||||
background-color: rgba($color-primary, 0.05);
|
||||
}
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($color-primary, 0.8);
|
||||
* {
|
||||
color: white !important;
|
||||
}
|
||||
mark {
|
||||
color: $color-primary !important;
|
||||
background-color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#search-result-body {
|
||||
&:empty {
|
||||
&::after {
|
||||
content: "No result to show!";
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin: 1.5rem 0;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user