ml-summit / src /sustech.scss
facat's picture
init
2fc4496 unverified
/*-- scss:defaults --*/
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital@0;1&family=Sail&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code_Pro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Waiting+for+the+Sunrise&display=swap');
$font-family-sans-serif: "Crimson Text";
$font-family-monospace: 'Source Code Pro', monospace;
$theme-purple: #BF65C5;
$theme-blue: #76AADB;
$theme-teal: #50847B;
$theme-cream: #F5F5F5;
$theme-dark-purple: #1A1626;
$theme-white: #ffffff;
$theme-martinique: #312745;
$theme-yellow: #FFD571;
$theme-brown: #a37100;
$theme-pink: #FED7E1;
$theme-orange: #ff8831;
$theme-red: #e31c54;
$theme-green: #3faf72;
$theme-citron: #87ad25;
$theme-lemon: #f9f991;
$theme-ml: #10144C;
$body-bg: white;
$body-color: black;
// $link-color: darken($theme-cream, 20%);
$selection-bg: $theme-blue;
// $body-bg: $theme-martinique;
$body-bg: $theme-ml;
$link-color: $theme-yellow;
$code-color: $theme-orange;
$body-color: $theme-white;
$presentation-heading-color: $theme-white;
// $presentation-heading-font: 'Amatic SC', sans-serif;
// $font-family-sans-serif: 'ABeeZee', sans-serif;
/*-- scss:rules --*/
.adlery {
font-family: "Waiting for the Sunrise";
font-weight: 400;
font-style: normal;
}
.waiting-for-the-sunrise-regular {
font-family: "Waiting for the Sunrise", cursive;
font-weight: 400;
font-style: normal;
}
.titlebox {
padding: 0.2em 0.4em;
background-color: rgba(255, 255, 255, .15);
backdrop-filter: blur(10px);
box-shadow: 0 0 3rem 0 rgba(0, 0, 0, .2);
border-radius: 5px;
}
@mixin center-text {
position: absolute;
transform: translate(-50%, -50%);
}
@mixin background-full {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.theme-content {
&:is(.slide-background) {
background-image: url('../../../../../background/content.png');
@include background-full;
}
}
.theme-title {
&:is(.slide-background) {
background-image: url('../../../../../background/title.png');
@include background-full;
}
h2 {
text-align: center;
font-size: 3em;
}
h3 {
text-align: center;
font-size: 2em;
}
}
.theme-section {
&:is(.slide-background) {
background-image: url('../../../../../background/section.png');
@include background-full;
}
}
.theme-end {
&:is(.slide-background) {
background-image: url('../../../../../background/end.png');
@include background-full;
}
h1 {
margin-top: 200px;
text-align: center;
font-size: 5em;
}
h2 {
text-align: center;
font-size: 2em;
}
}
// Added SUSTech color classes
.sustech-bg-orange {
background-color: #ed6c00 !important;
}
.sustech-bg-green {
background-color: #003f43 !important;
}
.sustech-bg-cyan {
background-color: #2bb7b3 !important;
}
.sustech-orange,
.sustech-orange code,
.sustech-orange a {
color: #ed6c00 !important;
}
.sustech-green,
.sustech-green code,
.sustech-green a {
color: #003f43 !important;
}
.sustech-cyan,
.sustech-cyan code,
.sustech-cyan a {
color: #2bb7b3 !important;
}
.red,
.red code,
.red a {
color: $theme-red !important;
}
.sustech-green,
.sustech-green code,
.sustech-green a {
color: #5f5 !important;
}
.sustech-border-orange {
border-color: #ed6c00 !important;
}
.sustech-border-green {
border-color: #003f43 !important;
}
.sustech-border-cyan {
border-color: #2bb7b3 !important;
}
.flow {
background-image: url(https://images.unsplash.com/photo-1532153975070-2e9ab71f1b14?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80);
background-attachment: fixed;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
animation: animate 40s linear infinite;
font-weight: 900;
}
@keyframes animate {
0% {
background-position: left 0px top 10px;
}
40% {
background-position: left 800px top 10px;
}
}
// 混入定义阴影效果
.title {
text-align: center;
width: 65%;
height: 150px;
margin: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
user-select: none;
}
.title b {
font: 400 10vh "Vibur";
color: #fee;
text-shadow: 0 -40px 100px, 0 0 2px, 0 0 1em $theme-purple, 0 0 0.5em $theme-purple, 0 0 0.1em $theme-purple, 0 10px 3px #000;
}
.title b span{
animation: blink linear infinite 2s;
}
.title b span:nth-of-type(2){
animation: blink linear infinite 3s;
}
@keyframes blink {
78% {
color: inherit;
text-shadow: inherit;
}
79%{
color: #333;
}
80% {
text-shadow: none;
}
81% {
color: inherit;
text-shadow: inherit;
}
82% {
color: #333;
text-shadow: none;
}
83% {
color: inherit;
text-shadow: inherit;
}
92% {
color: #333;
text-shadow: none;
}
92.5% {
color: inherit;
text-shadow: inherit;
}
}
.slide-deck {
width: 100%;
height: 400px;
border-radius: 5px;
margin-bottom: 10px !important;
box-shadow: 0 15px 30px rgba($theme-dark-purple, 0.5);
}
// svg.main-svg > :not(g):not(path):not(circle):not(rect):not(text) {
// style: "background: transparent;"
// }