Skip to content

Commit dfa0c30

Browse files
author
Donovan Vernon
committed
Added Search-Tips functionality into the _search-bar.scss file
1 parent a781ec5 commit dfa0c30

2 files changed

Lines changed: 81 additions & 79 deletions

File tree

_sass/elements/_search-bar.scss

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,84 @@ form#search-bar {
5353
padding: 0;
5454
margin: 0;
5555
border: none;
56-
}
56+
}
57+
58+
// Further instructions for search-bar functionality using a modal.
59+
.search-tip-link {
60+
text-decoration: underline;
61+
cursor: pointer;
62+
display: block;
63+
margin: 10px 0;
64+
padding: 10px 0;
65+
border-top: solid 1px #cccccc;
66+
}
67+
68+
69+
// page
70+
.search-tip-card{
71+
padding: 45px;
72+
display: flex;
73+
position: relative;
74+
flex-direction: column;
75+
overflow: visible;
76+
}
77+
78+
.search-tip-card-top{
79+
display: flex;
80+
}
81+
82+
.search-tip-card-title{
83+
display: flex;
84+
justify-content: space-between;
85+
}
86+
87+
.search-tip-card-name{
88+
font-size: 19px;
89+
line-height: 22px;
90+
}
91+
92+
93+
//modal overlay
94+
.overlay {
95+
display: none;
96+
z-index: 1;
97+
position: fixed;
98+
left: 0px;
99+
top: 0px;
100+
width: calc(100vw + 17px);
101+
height: 100%;
102+
background-color: rgba(70, 70, 70, 0.5);
103+
padding: 10px;
104+
overflow-y: auto;
105+
overflow-x: hidden;
106+
}
107+
108+
.top-buffer{
109+
height: 20vh;
110+
}
111+
.bottom-buffer {
112+
height: 5vh;
113+
}
114+
.search-tip-modal-container{
115+
position: absolute;
116+
width: 60%;
117+
left: 20%;
118+
}
119+
.overlay-close-icon {
120+
float: right;
121+
padding: 20px 20px 0 0;
122+
cursor: pointer;
123+
}
124+
.center-screen {
125+
opacity: 1;
126+
}
127+
.overlay-card-text{
128+
padding-top: 40px;
129+
}
130+
131+
@media screen and (max-width: 768px) {
132+
.search-tip-modal-container {
133+
width: 90%;
134+
left: 5%;
135+
}
136+
}

_sass/elements/_search-tip-modal.scss

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)