Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- /*BEGIN OF INSTRAGRAM PROF*/
- :root {
- font-size: 10px;
- }
- img {
- display: block;
- }
- .container {
- max-width: 37rem;
- margin: 0 auto;
- padding:10px 10px 10px 10px;
- }
- .btn {
- display: inline-block;
- font-size:9px;
- line-height:10px;
- font-family:serif;
- padding:2px 2px;
- background: none;
- border: none;
- color: inherit;
- padding: 0;
- }
- .btn:focus {
- outline: 2rem auto #4d90fe;
- }
- .visually-hidden {
- position: absolute !important;
- height: 1px;
- width: 1px;
- overflow: hidden;
- clip: rect(1px, 1px, 1px, 1px);
- }
- /* Profile Section */
- .profile {
- padding: 10px 10px;
- }
- .profile::after {
- content: "";
- display: block;
- clear: both;
- }
- .profile-image {
- float: left;
- width: 300px;
- height: 150px;
- display: flex;
- justify-content: center;
- align-items: center;
- margin:2px 2px;
- }
- .profile-image img {
- border-radius: 50%;
- }
- .profile-user-settings,
- .profile-stats,
- .profile-bio {
- float: left;
- /*width: calc(66.666% - 1rem);*/
- }
- .profile-user-settings {
- margin-top: 1.1rem;
- }
- .profile-user-name {
- display: inline-block;
- font-size: 3.2rem;
- font-weight: 300;
- }
- .profile-edit-btn {
- font-size: 12px;
- line-height:12px;
- border: 1px solid #000;
- border-radius: 3%;
- padding:3px;
- margin-left: 2px;
- }
- .profile-settings-btn {
- font-size: 9px;
- line-height:11px;
- margin-left: 3px;
- }
- .profile-stats {
- margin-top: 3px;
- }
- .profile-stats li {
- display: inline-block;
- font-size: 9px;
- line-height: 11px;
- margin-right: 4rem;
- cursor: pointer;
- }
- .profile-stats li:last-of-type {
- margin-right: 0;
- }
- .profile-bio {
- font-size: 1rem;
- font-weight: 400;
- line-height: 1.5;
- margin-top: 1rem;
- }
- .profile-real-name,
- .profile-stat-count,
- .profile-edit-btn {
- width:250px;
- font-weight: 600;
- }
- /* Gallery Section */
- .gallery {
- display: flex;
- flex-wrap: wrap;
- margin: -1rem -1rem;
- padding-bottom: 3rem;
- }
- .gallery-item {
- position: relative;
- flex: 1 0 10rem;
- margin: 1rem;
- color: #fff;
- cursor: pointer;
- }
- .gallery-item:hover .gallery-item-info,
- .gallery-item:focus .gallery-item-info {
- display: flex;
- justify-content: center;
- align-items: center;
- position: absolute;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.3);
- }
- .gallery-item-info {
- display: none;
- }
- .gallery-item-info li {
- display: inline-block;
- font-size: 1rem;
- font-weight: lighter;
- }
- .gallery-item-likes {
- margin-right: 2.2rem;
- }
- .gallery-item-type {
- position: absolute;
- top: 1rem;
- right: 1rem;
- font-size: 2.5rem;
- text-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);
- }
- .fa-clone,
- .fa-comment {
- transform: rotateY(180deg);
- }
- /*changes the image width and height*/
- .gallery-image {
- width: 120px;
- height: 120px;
- object-fit: cover;
- }
- /* Media Query */
- @media screen and (max-width: 30rem) {
- .profile {
- display: flex;
- flex-wrap: wrap;
- padding: .5rem 0;
- }
- .profile::after {
- display: none;
- }
- .profile-image,
- .profile-user-settings,
- .profile-bio,
- .profile-stats {
- float: none;
- width: auto;
- }
- .profile-image img {
- width: 120px;
- height:120px;
- margin-left:-5px;
- }
- .profile-user-settings {
- flex-basis: calc(100% - 5.7rem);
- display: flex;
- flex-wrap: wrap;
- margin-top: 1rem;
- }
- .profile-user-name {
- font-size: 10px;
- line-height:9px;
- }
- .profile-edit-btn {
- order: 1;
- padding: 0;
- text-align: center;
- margin-top: 1rem;
- }
- .profile-edit-btn {
- margin-left: 0;
- }
- .profile-bio {
- font-size: 9px;
- line-height:11px;
- margin-top:5px;
- }
- .profile-edit-btn,
- .profile-bio,
- .profile-stats {
- flex-basis: 25%;
- }
- .profile-stats {
- order: 1;
- margin-top:5px;
- }
- .profile-stats ul {
- /* display: flex;*/
- width:135px;
- display:inline-block;
- float:left;
- text-align: center;
- padding: 2px 2px;
- border-top:1px solid #dadada;
- border-bottom:1px solid #dadada;
- }
- .profile-stats li {
- font-size: 9px;
- line-height:11px;
- flex: 1;
- margin: 0;
- }
- .profile-stat-count {
- display: inline-block;
- float:left
- font-family:serif;
- font-size:8px;
- line-height:8px;
- }
- }
- @supports (display: grid) {
- .profile {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: repeat(5, auto);
- grid-column-gap:10px;
- align-items: center;
- }
- .profile-image {
- grid-row: 1 / -1;
- }
- .gallery {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
- grid-gap:10px;
- }
- .profile-image,
- .profile-user-settings,
- .profile-stats,
- .profile-bio,
- .gallery-item,
- .gallery {
- width: auto;
- margin: 0;
- }
- @media (max-width: 30rem) {
- .profile {
- grid-template-columns: auto 1fr;
- grid-row-gap: 2px;
- }
- .profile-image {
- grid-row: 1 / 1;
- }
- .profile-user-settings {
- display: grid;
- grid-template-columns: auto 1fr;
- grid-gap: 1px;
- }
- .profile-edit-btn,
- .profile-stats,
- .profile-bio {
- grid-column: 1 / -1;
- }
- .profile-user-settings,
- .profile-edit-btn,
- .profile-settings-btn,
- .profile-bio,
- .profile-stats {
- margin: 10px;
- }
- }
- }
- </style>
- <div class="container">
- <div class="profile">
- <div class="profile-image">
- <img src="https://via.placeholder.com/120x120" alt="">
- </div>
- <div class="profile-user-settings">
- <div class="profile-user-name">display name here</div>
- <button class="btn profile-edit-btn">Edit Profile</button>
- <button class="btn profile-settings-btn" aria-label="profile settings"><i class="fas fa-cog" aria-hidden="true"></i></button>
- </div>
- <div class="profile-stats">
- <ul>
- <li><span class="profile-stat-count">2k</span> posts</li>
- <li><span class="profile-stat-count">2.1k</span> followers</li>
- <li><span class="profile-stat-count">5</span> following</li>
- </ul>
- </div>
- <div class="profile-bio">
- <p><span class="profile-real-name">Jane Doe</span> Lorem ipsum dolor sit, amet consectetur adipisicing elit 📷✈️🏕️</p>
- </div>
- </div>
- <!-- End of profile section -->
- </div>
- <!-- End of container -->
- </header>
- <main>
- <div class="container">
- <div class="gallery">
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 56</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 2</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 89</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 5</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-type">
- <span class="visually-hidden">Gallery</span><i class="fas fa-clone" aria-hidden="true"></i>
- </div>
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 42</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 1</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-type">
- <span class="visually-hidden">Video</span><i class="fas fa-video" aria-hidden="true"></i>
- </div>
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 38</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 0</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-type">
- <span class="visually-hidden">Gallery</span><i class="fas fa-clone" aria-hidden="true"></i>
- </div>
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 47</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 1</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 94</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 3</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-type">
- <span class="visually-hidden">Gallery</span><i class="fas fa-clone" aria-hidden="true"></i>
- </div>
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 52</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 4</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 66</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 2</li>
- </ul>
- </div>
- </div>
- <div class="gallery-item" tabindex="0">
- <img src="https://via.placeholder.com/100x100" class="gallery-image" alt="">
- <div class="gallery-item-type">
- <span class="visually-hidden">Gallery</span><i class="fas fa-clone" aria-hidden="true"></i>
- </div>
- <div class="gallery-item-info">
- <ul>
- <li class="gallery-item-likes"><span class="visually-hidden">Likes:</span><i class="fas fa-heart" aria-hidden="true"></i> 45</li>
- <li class="gallery-item-comments"><span class="visually-hidden">Comments:</span><i class="fas fa-comment" aria-hidden="true"></i> 0</li>
- </ul>
- </div>
- </div>
- </div>
- <!-- End of gallery -->
- </div>
- <!-- End of container -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement