86 lines
1.8 KiB
CSS
86 lines
1.8 KiB
CSS
/*
|
|
Theme Name: IT Studio Theme
|
|
Theme URI: https://github.com/itstudio-2002/ITStudioMainSite
|
|
Description: 中国海洋大学爱特工作室官方网站主题 - A modern WordPress theme for IT Studio of Ocean University of China
|
|
Version: 1.0.0
|
|
Author: IT Studio
|
|
Author URI: https://it.ouc.edu.cn
|
|
License: MIT
|
|
License URI: https://opensource.org/licenses/MIT
|
|
Text Domain: itstudio
|
|
Tags: responsive, modern, dark-mode, bilingual
|
|
*/
|
|
|
|
:root {
|
|
--ocean-light-blue: #f0f8ff;
|
|
--ocean-deep-blue: #0a1929;
|
|
--accent-color: #8e88c7;
|
|
--white: #ffffff;
|
|
--black: #000000;
|
|
--gray-100: #f5f5f5;
|
|
--gray-200: #e0e0e0;
|
|
--gray-300: #bdbdbd;
|
|
--gray-400: #9e9e9e;
|
|
--gray-500: #757575;
|
|
--gray-600: #616161;
|
|
--gray-700: #424242;
|
|
--gray-800: #303030;
|
|
--gray-900: #212121;
|
|
|
|
--bg-color: var(--ocean-light-blue);
|
|
--text-color: var(--black);
|
|
--header-bg: var(--white);
|
|
--footer-bg: var(--gray-100);
|
|
--border-color: var(--gray-200);
|
|
|
|
--transition-speed: 0.3s;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg-color: var(--ocean-deep-blue);
|
|
--text-color: var(--white);
|
|
--header-bg: #0d1f30;
|
|
--footer-bg: #050f1a;
|
|
--border-color: var(--gray-700);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
transition: background-color var(--transition-speed), color var(--transition-speed);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
transition: opacity var(--transition-speed);
|
|
}
|
|
|
|
a:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 0 15px;
|
|
}
|
|
}
|