forked from CodeYourFuture/Portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (115 loc) · 2.08 KB
/
style.css
File metadata and controls
128 lines (115 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* Design tokens */
:root {
--paper: hsla(251, 28%, 88%, 0.99);
--ink: hsla(244, 16%, 17%, 0.95);
--brand: hsla(0, 79%, 63%, 0.9);
--font: "Raleway", system-ui, sans-serif;
--gap: 20px;
--container: clamp(280px, calc(100vw - calc(var(--gap) * 2)), 1180px);
}
/* General Styles */
html,
body {
scroll-behavior: smooth;
background: var(--paper);
color: var(--ink);
font-family: var(--font);
}
body {
display: grid;
margin: auto;
min-height: 100vh;
gap: var(--gap);
max-width: var(--container);
}
a,
a:any-link {
color: currentColor;
text-decoration: none;
border-bottom: 2px solid transparent;
transition: border-color ease-in-out 0.3s;
}
a:hover,
a:focus {
color: var(--brand);
border-color: currentColor;
}
/* Site header and navigation */
body > header {
background: var(--paper);
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 1;
}
nav ul {
display: flex;
list-style: none;
gap: var(--gap);
}
/* Text readability */
section p {
line-height: 1.5;
max-width: 55ch;
}
/* ----------------profile--------------- */
.profile-container{
display: flex;
/* flex-direction: row; */
justify-content: center;
}
.profile-img{
width: 150px;
border-radius: 50%;
}
.profile-info{
display: flex;
justify-content: center;
}
/* ----------------project--------------- */
.project-container{
display: flex;
}
.profile-card{
padding: 20px;
}
.project-card{
justify-content: center;
}
img{
width: 200px;
}
button{
background-color: #04AA6D;
color: #ffffff;
border-color: #04AA6D;
padding: 10px;
cursor: pointer;
border-radius: 4px;
border: none;
}
button:hover{
background-color:#4CAF50 ;
}
/* ----------------contact--------------- */
.contact-container{
display: flex;
justify-content: space-evenly;
margin: 20px;
}
.contact-info{
justify-content: flex-end;
align-self: center;
}
input, textarea {
width: 100%;
padding: 15px 70px;
margin: 8px 0;
display: inline-block;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}