Site Notice

hello, world

Difference between revisions of "MediaWiki:Css-doc.css"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
 
(16 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  * CC BY-NC-SA
 
  * CC BY-NC-SA
 
  **/
 
  **/
body{
+
/** Background **/
    display: block;
+
body {
    position: absolute;
+
  display: block;
    left: 0;
+
  position: absolute;
    top: 0;
+
  left: 0;
    z-index: 10;
+
  top: 0;
    width: 100%;
+
  z-index: 10;
    height: 100%;
+
  width: 100%;
 +
  height: 100%;
 
}
 
}
 
body:before {
 
body:before {
    content: '';
+
  content: '';
    position: fixed;
+
  position: fixed;
    z-index: -1;
+
  z-index: -1;
    top: 0;
+
  top: 0;
    right: 0;
+
  right: 0;
    bottom: 0;
+
  bottom: 0;
    left: 0;
+
  left: 0;
    background-size: cover !important;
+
  background-size: cover !important;
    background: linear-gradient(65deg, #dbdbdb 5%, #f2f5f5 5%, #f2f5f5 80%, #90e7ff 80%, #a8d9f2 95%, #28caff 95%) center 0 no-repeat;
+
  background: linear-gradient(65deg, #dbdbdb 5%, #f2f5f5 5%, #f2f5f5 80%, #90e7ff 80%, #a8d9f2 95%, #28caff 95%) center 0 no-repeat;
 +
}
 +
/** Top nav **/
 +
.top-nav {
 +
  position: fixed;
 +
  z-index: 10;
 +
}
 +
.top-nav h1.header {
 +
  font-size: 20px;
 +
  margin: 18px;
 
}
 
}
 +
/** Sidenav **/
 
nav a.sidenav-trigger {
 
nav a.sidenav-trigger {
 
   display: unset !important;
 
   display: unset !important;
Line 35: Line 46:
 
.sidenav li:not(.tab) > a {
 
.sidenav li:not(.tab) > a {
 
   padding: 0 8px 0 32px;
 
   padding: 0 8px 0 32px;
 +
}
 +
/** Article area **/
 +
main {
 +
  margin-top: 50px;
 +
}
 +
main > .row {
 +
  margin-bottom: 0;
 +
}
 +
main h2 {
 +
  padding-top: 2px;
 +
  margin: 1em 0 0.5em;
 +
  border: none !important;
 +
  background: linear-gradient(90deg,rgb(127,172,255),rgba(210,232,255,0.53));
 +
  background-position: 0 30px !important;
 +
  background-repeat: repeat-x;
 +
  background-size: 100% 4px;
 +
  font-size: 30px;
 +
  text-shadow: 2px 0px 0px white;
 +
}
 +
main h3 {
 +
  padding-top: 2px;
 +
  margin: .8em 0 0.5em;
 +
  border: none !important;
 +
  background: linear-gradient(90deg,rgb(159,204,255),rgba(159,204,255,0));
 +
  background-position: 0 27px !important;
 +
  background-repeat: repeat-x;
 +
  background-size: 100% 4px;
 +
  font-size: 27px;
 +
  text-shadow: 2px 0px 0px white;
 +
}
 +
main h4 {
 +
  padding-top: 2px;
 +
  margin: .65em 0 0.4em;
 +
  border: none !important;
 +
  background: linear-gradient(90deg,rgb(159,204,255),rgba(159,204,255,0));
 +
  background-position: 0 24px !important;
 +
  background-repeat: repeat-x;
 +
  background-size: 100% 4px;
 +
  font-size: 24px;
 +
  text-shadow: 2px 0px 0px white;
 +
}
 +
@media screen and (max-width:800px) {
 +
  .row .col {
 +
    width: 100% !important;
 +
  }
 +
}
 +
table.highlight > tbody > tr:hover {
 +
  background-color: rgba(212, 212, 212, 0.5);
 +
}
 +
/** Footer **/
 +
.page-footer {
 +
  padding: 20px;
 +
  width: 100%;
 +
}
 +
 +
/** Fix input **/
 +
.input-field label {
 +
  z-index: -1;
 +
}
 +
 +
/** Notify Box **/
 +
.notify-box {
 +
  border-radius: 7px;
 +
  padding-left: 10px;
 +
}
 +
.notify-box:before {
 +
  font-family: 'Material icons';
 +
}
 +
.notify-box.info {
 +
  border-left: 6px solid #239cff;
 +
}
 +
.notify-box.info:before {
 +
  content: 'info';
 +
  color: #2196f3;
 +
}
 +
.notify-box.warn {
 +
  border-left: 6px solid #d16500;
 +
}
 +
.notify-box.warn:before {
 +
  content: 'warning';
 +
  color: #ff7b00;
 +
}
 +
.notify-box.done {
 +
  border-left: 6px solid #1bb400;
 +
}
 +
.notify-box.done:before {
 +
  content: 'done_all';
 +
  color: #1bb400;
 +
}
 +
.notify-box.error {
 +
  border-left: 6px solid #d10000;
 +
}
 +
.notify-box.error:before {
 +
  content: 'info';
 +
  color: #d10000;
 
}
 
}

Latest revision as of 02:07, 7 March 2020

/**
 *『Wjghj Project Static』
 * This _CascadingStyleSheets_ code is from https://common.wjghj.cn
 * CC BY-NC-SA
 **/
/** Background **/
body {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}
body:before {
  content: '';
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover !important;
  background: linear-gradient(65deg, #dbdbdb 5%, #f2f5f5 5%, #f2f5f5 80%, #90e7ff 80%, #a8d9f2 95%, #28caff 95%) center 0 no-repeat;
}
/** Top nav **/
.top-nav {
  position: fixed;
  z-index: 10;
}
.top-nav h1.header {
  font-size: 20px;
  margin: 18px;
}
/** Sidenav **/
nav a.sidenav-trigger {
  display: unset !important;
}
#sidenav {
  height: 100%;
}
#sidenav .tabs a {
  padding: 0 4px;
}
.sidenav li:not(.tab) > a {
  padding: 0 8px 0 32px;
}
/** Article area **/
main {
  margin-top: 50px;
}
main > .row {
  margin-bottom: 0;
}
main h2 {
  padding-top: 2px;
  margin: 1em 0 0.5em;
  border: none !important;
  background: linear-gradient(90deg,rgb(127,172,255),rgba(210,232,255,0.53));
  background-position: 0 30px !important;
  background-repeat: repeat-x;
  background-size: 100% 4px;
  font-size: 30px;
  text-shadow: 2px 0px 0px white;
}
main h3 {
  padding-top: 2px;
  margin: .8em 0 0.5em;
  border: none !important;
  background: linear-gradient(90deg,rgb(159,204,255),rgba(159,204,255,0));
  background-position: 0 27px !important;
  background-repeat: repeat-x;
  background-size: 100% 4px;
  font-size: 27px;
  text-shadow: 2px 0px 0px white;
}
main h4 {
  padding-top: 2px;
  margin: .65em 0 0.4em;
  border: none !important;
  background: linear-gradient(90deg,rgb(159,204,255),rgba(159,204,255,0));
  background-position: 0 24px !important;
  background-repeat: repeat-x;
  background-size: 100% 4px;
  font-size: 24px;
  text-shadow: 2px 0px 0px white;
}
@media screen and (max-width:800px) {
  .row .col {
    width: 100% !important;
  }
}
table.highlight > tbody > tr:hover {
  background-color: rgba(212, 212, 212, 0.5);
}
/** Footer **/
.page-footer {
  padding: 20px;
  width: 100%;
}

/** Fix input **/
.input-field label {
  z-index: -1;
}

/** Notify Box **/
.notify-box {
  border-radius: 7px;
  padding-left: 10px;
}
.notify-box:before {
  font-family: 'Material icons';
}
.notify-box.info {
  border-left: 6px solid #239cff;
}
.notify-box.info:before {
  content: 'info';
  color: #2196f3;
}
.notify-box.warn {
  border-left: 6px solid #d16500;
}
.notify-box.warn:before {
  content: 'warning';
  color: #ff7b00;
}
.notify-box.done {
  border-left: 6px solid #1bb400;
}
.notify-box.done:before {
  content: 'done_all';
  color: #1bb400;
}
.notify-box.error {
  border-left: 6px solid #d10000;
}
.notify-box.error:before {
  content: 'info';
  color: #d10000;
}