Skip to content

Commit

Permalink
css load bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuyue Zhang committed Apr 11, 2024
1 parent 92b42d3 commit 7e21b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<title>OPTICS</title>

<link rel="icon" type="image/svg+xml" href="./resources/images/logo.svg" />
<link rel="stylesheet" type="text/css" href="./stylesheet/general.css">
<link rel="stylesheet" type="text/css" href="./stylesheet/home.css">
<link rel="icon" type="image/svg+xml" href="resources/images/logo.svg" />
<link rel="stylesheet" type="text/css" href="stylesheet/general.css">
<link rel="stylesheet" type="text/css" href="stylesheet/home.css">
<script src="./script/home.js" defer></script>
</head>
<body>
Expand Down
12 changes: 3 additions & 9 deletions stylesheet/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@ main{
transition: all .5s ease;
}

.intro-images:hover
, #logo:hover img{

#logo:hover img{
border-radius: var(--border-radius);
box-shadow: 3px 3px 6px var(--text-color);
transform: scale(1.05);
transition: all .5s ease;
}

.intro-images{
width: 50%;
margin: var(--mb-2-5) 0;
transition: all .5s ease;
}

h2{
margin: var(--mb-0-75) 0 0 0;
align-self: center;
Expand All @@ -55,7 +49,7 @@ h2{
display: flex;
justify-content: center;
flex-direction: column;
width: 70%;
width: 60%;
margin: var(--mb-2) auto;
padding: 5px;
overflow: hidden;
Expand Down

0 comments on commit 7e21b89

Please sign in to comment.