张小云的个人主页

Bear's Custom Dashboard CSS

body {
  font-family: monospace;
  font-size: 18px;
}

/* Headline styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif; /* Using a serif font for a more elegant look */
  color: #3498db; /* A bright blue for all headlines */
  margin-top: 0.5em; /* Adjust margin to avoid too much spacing at the top */
  margin-bottom: 0.5em;
  line-height: 1.2; /* Improved line spacing for readability */
}

h1 {
  font-size: 1.6em; /* Larger size for the main headline */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle text shadow for depth */
  margin-bottom: 0.75em; /* More space below the main headline */
}

h2 {
  font-size: 1.5em;
  border-bottom: 2px solid #2980b9; /* A darker blue for the border */
  padding-bottom: 0.3em; /* Space below the headline for the border */
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.45em;
  background-color: #ecf0f1; /* A light gray background for contrast */
  display: inline-block; /* Make the background only cover the text */
  padding: 0.3em 0.5em; /* Padding around the text */
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.3em;
  color: #509cea;
  text-transform: uppercase; /* All caps for a modern look */
  letter-spacing: 1px; /* Slightly spaced out letters */
  position: relative; /* For pseudo-element positioning */
}

h4::before {
  content: ''; /* Generate content for the pseudo-element */
  position: absolute;
  left: -0.5em; /* Position to the left of the headline */
  bottom: 0;
  height: 1px;
  width: 1em; /* A small line before the headline */
  background-color: #2980b9; /* A darker blue for the line */
}

h5 {
  font-size: 1.15em;
  color: #3498db; /* Bright blue for consistency */
  border-left: 4px solid #3498db; /* Bright blue border */
  padding-left: 0.5em; /* Space between the border and the text */
  margin-bottom: 0.5em;
}

h6 {
  font-size: 1em;
  color: #0ebeff; /* A softer purple-blue for the smallest headline */
  font-style: italic; /* Italic text for a softer look */
  margin-bottom: 0.75em;
}

/* Subheadings can be styled to complement headlines */
.subheading {
  color: #666;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* Link styles */
a {
  color: #06c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Button styles */
button,
.button {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover,
.button:hover {
  background-color: #0056b3;
}

button:active,
.button:active {
  transform: translateY(2px);
}

button.outline,
.button.outline {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
}

button.outline:hover,
.button.outline:hover {
  background-color: #e6f7ff;
}

/* Style for the textarea with id 'body_content' */
#body_content {
  // width: 100%; /* Full width of the container */
  // max-width: 100%; /* Ensures it doesn't exceed the container's width */
  // height: 150px; /* Fixed height, adjust as needed */
  // resize: vertical; /* Allows the user to resize vertically, but not horizontally */
  padding: 10px; /* Space inside the textarea */
  font-size: 1em; /* Font size, adjust if needed */
  Font-family: monospace;
  line-height: 1.5; /* Line spacing */
  // border: 1px solid #ccc; /* Border color and width */
  // border-radius: 4px; /* Rounded corners */
  outline: none; /* Removes the default outline */
  box-shadow: inset 0 1px 3px #ddd; /* Subtle inner shadow */
  transition: border-color 0.3s ease; /* Smooth transition for border color */
}

#body_content:focus {
  border-color: #3498db; /* Highlight color when focused */
  box-shadow: inset 0 1px 3px #ddd, 0 0 5px rgba(52, 152, 219, 0.5); /* Additional glow effect */
}

/* Footer styles */
footer {
  // background-color: #333;
  // color: white;
  text-align: center;
  // padding: 20px 0;
  // position: absolute;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 0.9em;
}