sh20raj commited on
Commit
b0be169
·
1 Parent(s): 089dd1b

Mobile Css

Browse files
Files changed (2) hide show
  1. index.html +4 -4
  2. style.css +40 -8
index.html CHANGED
@@ -11,12 +11,12 @@
11
  <h1>SopKit<span>.</span></h1>
12
 
13
  <ul>
14
- <li><a href="#">Tools</a></li>
15
- <li><a href="#">GitHub</a></li>
16
  <li><a href="#">Contact</a></li>
17
- <li><a href="#">Page</a></li>
18
  <li><a href="#">Files</a></li>
19
-
20
  </ul>
21
  </nav>
22
 
 
11
  <h1>SopKit<span>.</span></h1>
12
 
13
  <ul>
14
+ <li><a href="https://sopkit.github.io/SopKit#">Tools</a></li>
15
+ <li><a href="https://github.com/SopKit">GitHub</a></li>
16
  <li><a href="#">Contact</a></li>
17
+ <li><a href="#">Search</a></li>
18
  <li><a href="#">Files</a></li>
19
+
20
  </ul>
21
  </nav>
22
 
style.css CHANGED
@@ -11,7 +11,7 @@ body {
11
 
12
 
13
  nav {
14
- background: #032a39;
15
  color: aliceblue;
16
  justify-content: flex-end;
17
  display: flex;
@@ -37,6 +37,7 @@ nav ul {
37
  height: 4rem;
38
  }
39
 
 
40
 
41
  nav ul li {
42
  display: flex;
@@ -46,14 +47,16 @@ nav ul li a {
46
  padding: 10px;
47
  margin: 10px;
48
  border: 2px;
49
- background: #a649144d;
50
- color: aliceblue;
51
  text-decoration: none;
52
  transition: all 0.3s linear;
 
 
53
  }
54
  nav ul li a:hover {
55
  cursor: pointer;
56
- background-color: rgba(255, 0, 0, 0.464);
57
  border-bottom: 1px solid red;
58
  }
59
 
@@ -96,16 +99,45 @@ nav ul li a:hover {
96
  margin-top: 200px;
97
  margin-left: 50px;
98
  max-width: 50%;
99
- background: url(repo.gif);
100
  background-repeat: no-repeat;
101
  background-size: contain;
102
- }
103
-
104
-
 
 
105
 
 
106
 
107
  .container .hero-section .hero-image{
108
  width: 50%;
109
  margin: auto;
110
  flex-grow: 3;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
 
11
 
12
 
13
  nav {
14
+ background: #19274d;
15
  color: aliceblue;
16
  justify-content: flex-end;
17
  display: flex;
 
37
  height: 4rem;
38
  }
39
 
40
+ /* Nav */
41
 
42
  nav ul li {
43
  display: flex;
 
47
  padding: 10px;
48
  margin: 10px;
49
  border: 2px;
50
+ background: #5582f3;
51
+ color: rgb(255, 255, 255);
52
  text-decoration: none;
53
  transition: all 0.3s linear;
54
+ border-bottom: 1px solid #5582f3;
55
+
56
  }
57
  nav ul li a:hover {
58
  cursor: pointer;
59
+ background-color: rgba(234, 136, 208, 0.464);
60
  border-bottom: 1px solid red;
61
  }
62
 
 
99
  margin-top: 200px;
100
  margin-left: 50px;
101
  max-width: 50%;
102
+ /* background: url(repo.gif); */
103
  background-repeat: no-repeat;
104
  background-size: contain;
105
+ backdrop-filter: blur(2px);
106
+ height: fit-content;
107
+ padding: 20px;
108
+ border-radius: 10px;
109
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
110
 
111
+ }
112
 
113
  .container .hero-section .hero-image{
114
  width: 50%;
115
  margin: auto;
116
  flex-grow: 3;
117
+ }
118
+
119
+ @media (max-width:700px) {
120
+ nav {
121
+ display: inline-block;
122
+ width: 100%;
123
+ /* height: 100%; */
124
+ }
125
+ nav ul {
126
+ display: inline;
127
+ position: absolute;
128
+ height: 100%;
129
+ background: #5582f3;
130
+ width: 50%;
131
+ z-index: 2;
132
+ padding-top: 50px;
133
+ }
134
+ nav ul li a {
135
+ width: 100%;
136
+ }
137
+ nav ul li a:hover {
138
+ background: #5582f3;
139
+ }
140
+
141
+
142
+
143
  }