123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- :root {
- --text: #fcfcfc;
- --mainbg: #933984;
- --background: #4b1a4f;
- --secondary-background: #31363b;
- --background-darker: #2f1b2e;
- --accent: #00b7c3;
- --yellow: #8B8000;
- --repo-hover: #b762b7;
- --border: #d76aff;
- color-scheme: dark;
- }
- body {
- font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
- color: var(--text);
- background-color: var(--background-darker);
- transition: ease-in-out 0.25s;
- margin: 0;
- }
- ::-webkit-scrollbar {
- width: 8px;
- height: 10px;
- }
- ::-webkit-scrollbar-thumb {
- border-radius: 8px;
- background: var(--background);
- border: 1px solid var(--border);
- }
- main {
- margin: 0 10vw;
- padding: 10px;
- background-color: var(--mainbg);
- border: 1px solid #ed7ced;
- border-radius: 4px;
- }
- .navbar {
- display: flex;
- align-items: center;
- justify-content: start;
- flex-direction: row;
- padding: 8px;
- margin-bottom: 8px;
- background-color: var(--background);
- border-bottom: 1px solid var(--border);
- }
- .navbar .item {
- align-self: center;
- box-shadow: none;
- border: none;
- padding: .78571429em .92857143em;
- margin: 0 .35714286em;
- background: none;
- transition: color .1s ease;
- border-radius: .28571429rem;
- }
- .index-gh {
- background: var(--background);
- border: 1px solid var(--border);
- color: var(--text);
- padding: 4px;
- border-radius: 8px;
- }
- .brand {
- display: flex;
- align-items: center;
- gap: 8px;
- transition: ease-in-out 0.25s;
- color: var(--text);
- }
- .navbar-slogan:hover {
- text-decoration: underline;
- text-underline-offset: 5px;
- }
- .brand:hover {
- color: var(--text);
- text-decoration: underline;
- }
- .error {
- background-color: var(--background);
- border: 1px solid var(--border);
- padding: 8px;
- border-radius: 4px;
- font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
- color: var(--text);
- }
- .center { text-align: center; }
- .logo { max-width: 220px; }
- .hero h1 { font-size: 5.5em; }
- .hero h2 { font-size: 3em; }
- a {
- color: var(--text);
- text-decoration: underline;
- text-underline-offset: 5px;
- }
- a:hover {
- color: var(--accent);
- }
- .setup-notice {
- background-color: var(--yellow);
- padding: 8px;
- border-radius: 4px;
- font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
- color: var(--text);
- }
- .setup-notice > a {
- text-decoration: underline;
- text-underline-offset: 5px;
- }
- .setup-notice > a:hover {
- color: var(--text);
- opacity: 1;
- }
- /* URI: /explore */
- .explore-card, .user-repo-card {
- background-color: var(--background);
- border: 1px solid var(--border);
- padding: 8px;
- border-radius: 4px;
- margin: 8px 0 8px 0;
- text-overflow: ellipsis;
- white-space: wrap;
- text-decoration: none;
- display: flex;
- transition: ease-in-out 0.25s;
- }
- .explore-card:hover, .user-repo-card:hover {
- background-color: var(--secondary-background);
- color: var(--text);
- }
- /* URI: /:user */
- .user-profile {
- background-color: var(--background);
- border: 1px solid var(--border);
- padding: 8px;
- border-radius: 4px;
- margin: 8px;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .user-profile h1 {
- color: var(--accent);
- margin: 4px;
- word-wrap: nowrap;
- text-overflow: ellipsis;
- }
- .user-profile h2 {
- margin: 4px;
- }
- .user-profile p {
- margin: 4px;
- }
- .user-profile img {
- border: 4px solid var(--accent);
- border-radius: 50%;
- }
- .user-bio,
- .user-readme {
- background-color: var(--background);
- border: 1px solid var(--border);
- padding: 8px;
- border-radius: 4px;
- margin: 8px;
- }
- .user-bio-text,
- .user-readme-text {
- background-color: var(--background-darker);
- padding: 8px;
- border-radius: 4px;
- margin-bottom: 0;
- }
- .user-readme-text {
- margin-top: 0;
- }
- .file-table {
- width: 100%;
- }
- .social-links {
- display: flex;
- flex-direction: column;
- }
- .user-repo-card {
- background-color: var(--background-darker);
- padding: 4px;
- border-radius: 4px;
- margin: 8px 0 8px 0;
- text-overflow: ellipsis;
- white-space: wrap;
- text-decoration: none;
- display: flex;
- flex-direction: column;
- transition: ease-in-out 0.25s;
- }
- .user-repo-card > p {
- margin: 8px;
- }
- .user-repo-card:hover {
- background-color: var(--secondary-background);
- color: var(--text);
- }
- .lang-bar:last-child {
- margin-bottom: 0;
- }
- .lang-bar {
- width: 100%;
- display: inherit;
- height: 10px;
- border-radius:4px;
- overflow: hidden;
- user-select: none;
- }
- /* URI: /:user/:repo */
- .button {
- background-color: var(--background);
- border: 1px solid var(--border);
- padding: 8px;
- border-radius: 4px;
- margin: 8px;
- color: var(--text);
- text-decoration: none;
- text-align: center;
- display: inline-block;
- }
- .button:hover {
- background-color: var(--secondary-background);
- color: var(--text);
- }
- .button-parent {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: row;
- }
- .file-list {
- list-style-type: none;
- padding: 0;
- margin: 0;
- }
- .file-u-list {
- padding: 0;
- margin: 0;
- list-style-type: none;
- }
- .file-u-list:hover {
- background-color: var(--repo-hover);
- }
- /* URI: /file/:user/:repo/:file */
- .user-readme pre {
- padding: 8px;
- border-radius: 4px;
- /*white-space: pre-wrap;*/
- overflow-x: auto;
- }
- .user-container {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .secondary {
- background-color: var(--secondary-background);
- }
- @media screen and (max-width: 900px) {
- main {
- margin: 8px;
- }
- .navbar-slogan {
- display: none;
- }
- .navbarImg {
- height: 40px;
- }
- .explore-card {
- margin-left: 0;
- margin-bottom: 8px;
- margin-right: 0;
- }
- .social-links {
- flex-direction: column;
- }
- }
- .cl {
- padding-left: 8px
- }
- /* 糞vimvixen */
- .vimvixen-console-frame {
- display: none;
- }
- .right.stackable.menu {
- margin-left: auto;
- display: flex;
- align-items: inherit;
- flex-direction: inherit;
- }
|