|
| 1 | +body { |
| 2 | + background: black; |
| 3 | +} |
| 4 | +.button { |
| 5 | + background-image: linear-gradient(90deg, rgba(0,242,255,1) 0%, rgba(0,242,255,1) 100%); |
| 6 | + padding: 15px 32px; |
| 7 | + text-align: center; |
| 8 | + text-decoration: none; |
| 9 | + display: inline-block; |
| 10 | + font-size: 16px; |
| 11 | + margin: 4px 2px; |
| 12 | + cursor: pointer; |
| 13 | + border-radius: 50px; |
| 14 | + font-family: monospace; |
| 15 | + font-size: 20px; |
| 16 | + background-color: black; |
| 17 | + color: black; |
| 18 | + } |
| 19 | + |
| 20 | + .button { |
| 21 | + transition-duration: 0.4s; |
| 22 | + } |
| 23 | + |
| 24 | + |
| 25 | +.button1 { |
| 26 | + background-color: white; |
| 27 | + background-image: linear-gradient(90deg, rgba(0,242,255,1) 0%, rgba(0,242,255,1) 100%); |
| 28 | + color: black; |
| 29 | + border: 2px solid #4CAF50; |
| 30 | +} |
| 31 | + |
| 32 | +.button:hover { |
| 33 | + color: white; |
| 34 | + background-image: linear-gradient(90deg, #00cfd6, #00cfd6); |
| 35 | +font-size: 28px; |
| 36 | + |
| 37 | +.container { |
| 38 | + display: flex; |
| 39 | + justify-content: center; |
| 40 | + align-items: center; |
| 41 | + align-content: center; |
| 42 | + flex-wrap: wrap; |
| 43 | + width: 80vw; |
| 44 | + margin: 0 auto; |
| 45 | + min-height: 100vh; |
| 46 | +} |
| 47 | + |
| 48 | +p { |
| 49 | + font-family: vt323; |
| 50 | + font-size: 20px; |
| 51 | + color: #ffffff; |
| 52 | + border: 2px solid black; |
| 53 | + outline: #4CAF50 solid 10px; |
| 54 | +} |
| 55 | + |
| 56 | +h1 { |
| 57 | + font-family: vt323; |
| 58 | + color: #ffffff; |
| 59 | +} |
| 60 | + |
| 61 | +img { |
| 62 | + border: double 2px transparent; |
| 63 | + border-radius: 25px; |
| 64 | + background-image: linear-gradient(black, black), |
| 65 | + linear-gradient(to right, aqua, lime); |
| 66 | + background-origin: border-box; |
| 67 | + background-clip: content-box, border-box; |
| 68 | +} |
| 69 | + |
| 70 | +a { |
| 71 | + color: white; |
| 72 | + padding: 10px 10px; |
| 73 | + border: 4px solid linear-gradient(90deg, rgba(0,255,48,1) 0%, rgba(0,242,255,1) 100%); |
| 74 | + font-family: monospace; |
| 75 | +} |
| 76 | + |
| 77 | +img { |
| 78 | + transition-duration: 0.8s; |
| 79 | +} |
| 80 | + |
| 81 | +img:hover { |
| 82 | + border-radius: 0px; |
| 83 | + border-width: 0px; |
| 84 | +} |
| 85 | + |
| 86 | + |
| 87 | +.gradient-box { |
| 88 | + |
| 89 | + display: flex; |
| 90 | + align-items: center; |
| 91 | + //width: 50vw; |
| 92 | + width: 90%; |
| 93 | + margin: auto; |
| 94 | + max-width: 22em; |
| 95 | + |
| 96 | + position: relative; |
| 97 | + padding: 30% 2em; |
| 98 | + box-sizing: border-box; |
| 99 | + |
| 100 | + $border: 5px; |
| 101 | + color: #FFF; |
| 102 | + background: #000; |
| 103 | + background-clip: padding-box; /* !importanté */ |
| 104 | + border: solid $border transparent; /* !importanté */ |
| 105 | + border-radius: 1em; |
| 106 | + |
| 107 | + &:before { |
| 108 | + content: ''; |
| 109 | + position: absolute; |
| 110 | + top: 0; right: 0; bottom: 0; left: 0; |
| 111 | + z-index: -1; |
| 112 | + margin: -$border; /* !importanté */ |
| 113 | + border-radius: inherit; /* !importanté */ |
| 114 | + background: linear-gradient(to right, red, orange); |
| 115 | + } |
| 116 | +} |
| 117 | + |
| 118 | +html { height: 100%; background: #000; display: flex; } |
| 119 | +body { margin: auto; } |
0 commit comments