-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
123 lines (101 loc) · 2.14 KB
/
style.css
File metadata and controls
123 lines (101 loc) · 2.14 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
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');
/*TODO EL DOCUMENTO*/
html, body {
height: 100%;
margin: 0;
font-family: 'Raleway', sans-serif;
}
/*MAIN*/
main {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
padding: 30px;
}
.item_container {
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #7c7a7a;
margin: 20px;
overflow: hidden;
}
.img_fondo_item {
width: 100%;
height: 200px;
background-size: cover;
background-position: center;
transition: width 0.3s ease, filter 0.3s ease;
}
.item_container:hover .img_fondo_item, .item_container:focus .img_fondo_item {
width: 107%;
-webkit-filter: brightness(120%);
filter: brightness(120%);
}
#item1 .img_fondo_item{
background-image: url("img/html5.png");
}
#item2 .img_fondo_item{
background-image: url("img/python.jpeg");
}
#item3 .img_fondo_item{
background-image: url("img/html_css_js.png");
}
#item4 .img_fondo_item{
background-image: url("img/php_mysql.jpg");
}
.parrafo_item {
height: 100px;
overflow: auto;
}
.parrafo_item::-webkit-scrollbar {
width: 1em;
}
.parrafo_item, .btn_item {
margin: 10px 20px;
text-align: justify;
}
.btn_item {
display: flex;
justify-items: center;
align-items: center;
font-family: 'Raleway', sans-serif;
font-size: 1.2em;
font-weight: bold;
outline: none;
border: 1px #E04545 solid;
width: 95%;
text-align: center;
color: #E04545;
background-color: white;
cursor: pointer;
height: 40px;
transition: color 0.3s ease-in, background-color 0.3s ease-in;
text-decoration: none;
}
.btn_item span {
width: 100%;
}
/*Cuando el ratón este encima de este elemento*/
.btn_item:hover, .btn_item:focus {
color: white;
background-color: #E04545;
}
/*Media querys*/
@media screen and (max-width: 845px) {
main {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 1fr);
}
}
@media screen and (max-width: 450px) {
.item_container:hover .img_fondo_item {
width: 400px;
}
}
@media screen and (max-width: 380px) {
.btn_item {
width: 90%;
}
}