Skip to content

Commit

Permalink
Merge pull request #138 from null-open-security-community/fix/applica…
Browse files Browse the repository at this point in the history
…tion-css

fix: Invalid CSS in application.css
  • Loading branch information
anantshri authored Oct 14, 2024
2 parents e76cba8 + 2ae5806 commit 8e3af80
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions app/assets/stylesheets/application.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ body {
width: 100%;
margin-bottom:4rem!important;
}

/*go to top button css */
#back-to-top {
position: fixed;
Expand Down Expand Up @@ -101,16 +102,17 @@ body {

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

<%# search chapters Input css %>
.search-container {
display: flex;
justify-content: flex-end;
padding: 20px;
}

.search-wrapper {
position: relative;
width: 250px;
}

#searchInput {
width: 100%;
padding: 10px 15px 10px 40px;
Expand All @@ -121,6 +123,7 @@ body {
outline: none;
transition: border-color 0.3s ease;
}

#searchInput:focus {
border-color: #2980b9;
}
Expand All @@ -132,8 +135,7 @@ body {
transform: translateY(-50%);
color: #7f8c8d;
}

<%# chapters css %>

.chapters-row {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
Expand All @@ -158,17 +160,20 @@ body {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.chapter-img-container {
position: relative;
overflow: hidden;
height: 200px;
}

.chapter-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.chapter-card:hover .chapter-img {
transform: scale(1.1);
}
Expand All @@ -179,6 +184,7 @@ body {
display: flex;
flex-direction: column;
}

.card-title {
font-family: 'Montserrat', sans-serif;
font-size: 20px;
Expand Down Expand Up @@ -220,16 +226,12 @@ body {
.chapter-inactive {
background-image: radial-gradient(circle, rgba(255,102,102,0.1), rgba(255,102,102,0.6));
}
.chapter-active .chapter-status {
background-color: #2ecc71;
color: white;

.chapter-active .chapter-status {
background-color: #2ecc71;
color: white;
}
.chapter-inactive .chapter-status {
background-color: #e74c3c;
color: white;

.chapter-inactive .chapter-status {
background-color: #e74c3c;
color: white;
Expand All @@ -243,16 +245,17 @@ body {
padding-top: 15px;
border-top: 1px solid #ecf0f1;
}
<%# events css %>

.event-count {
display: flex;
align-items: center;
}

.event-icon {
margin-right: 5px;
font-size: 16px;
}
<%# learn more css %>

.learn-more {
background-color: #3498db;
color: white;
Expand All @@ -263,28 +266,24 @@ body {
font-weight: 600;
transition: background-color 0.3s ease;
}

.learn-more:hover {
background-color: #2980b9;
}

<%# upcoming events css %>
.upcoming-events {
display: flex;
margin-top: 10px;
margin-bottom: 10px;
}

.upcoming-events .event-icon {
margin-right: 8px;
}
.upcoming-events .text-muted {
color: #6c757d;
}






/* Autocomplete JS */
.autocomplete-suggestions { border: 1px solid #999; background: #FFF; cursor: default; overflow: auto; -webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); -moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
Expand Down

0 comments on commit 8e3af80

Please sign in to comment.