Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ enableEmoji = true

[params.notification]
enable = true
url = "https://mattermost.com/blog/microsoft-teams-m365-mission-critical-workflows/"
text = "Mattermost v10.0 is now available! Learn what’s new »"
url = "https://docs.mattermost.com/about/maximize-microsoft-investments.html"
text = "Maximize your Microsoft investments"

[params.search]
enable = true
Expand Down
29 changes: 0 additions & 29 deletions site/layouts/partials/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,3 @@
</div>
</div>
</div>
<div class='c-thermometer-modal__container hide'>
<div>
<div class='c-thermometer-modal__content'>
<div class="c-thermometer-modal__header">
<div class='c-thermometer-modal__close'>
<span id="c-thermometer-modal__close-x">×</span>
</div>
</div>
<h2>Tell us more</h2>
<p class="ff--trade-gothic">Your feedback helps us improve the Mattermost developer documentation.<br/>
<textarea id="c-thermometer-modal__textarea" maxlength='186' rows='4' placeholder='How can we make this page more helpful?'></textarea>
<div class='c-thermometer-modal__textarea-footer'>
<div></div>
<div class='c-thermometer-modal__counter'>
<span id="c-thermometer-modal__counter-span" class="ff--trade-gothic">0</span><span class="ff--trade-gothic">/186</span>
</div>
</div>
<p class="ff--trade-gothic">
Have a feature request? <a href='https://mattermost.uservoice.com/forums/306457-general' target='blank'> Share it here.</a>
</p>
<p class="ff--trade-gothic">
Having issues? <a href='https://community.mattermost.com' target='blank'> Join our Community server.</a>
</p>
<div class='c-thermometer-modal__footer'>
<a id="c-thermometer-modal__footer-submit" class='btn btn-shadow btn-xs ff--fira-mono'>Submit</a>
</div>
</div>
</div>
</div>
236 changes: 40 additions & 196 deletions site/static/css/feedback.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,7 @@
color: var(--center-channel-text-64);
}

.c-thermometer__close {
cursor: pointer;
position: absolute;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
color: #999;
font-size: 1.4rem;
right: 0.4rem;
top: 0.4rem;
}

.c-thermometer__close:hover {
color: #444;
}

.c-thermometer__emojis {
position: relative;
Expand Down Expand Up @@ -99,223 +83,83 @@
}
/* Thermometer ends */

/* Thermometer Modal */
.c-thermometer-modal__container {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 9999;
background: rgb(0 0 0 / 50%);
}

.c-thermometer-modal__container.show {
visibility: visible;
opacity: 1;
transition: opacity 500ms;
}

.c-thermometer-modal__container.hide {
visibility: hidden;
opacity: 0;
transition: opacity 500ms;
}

.c-thermometer-modal__container > div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: 0 24px;
}

.c-thermometer-modal__content {
background: white;
border-radius: 10px;
padding: 22px 45px 45px;
max-width: 400px;
width: 100%;
}

.c-thermometer-modal__content > h2 {
color: var(--center-channel-text);
margin-bottom: 12px;
}

.c-thermometer-modal__header {
display: flex;
justify-content: flex-end;
}

.c-thermometer-modal__close {
cursor: pointer;
}

#c-thermometer-modal__close-x {
color: #818698; /* Black/03 */
font-size: 3em;
font-weight: bold;
text-align: center;
line-height: 45px;
}

.c-thermometer-modal__textarea-footer {
display: flex;
justify-content: space-between;
font-size: 12px;
line-height: 24px;
}

.c-thermometer-modal__textarea__error {
color: #FD5960;
display: none;
}

.c-thermometer-modal__counter {
text-align: right;
color: #818698; /* Black/03 */
}

.c-thermometer-modal__content p {
font-size: 15px;
line-height: 22px;
margin-bottom: 5px;
color: #363A45; /* Black/05 */
}

.c-thermometer-modal__content textarea {
border-radius: 4px;
height: 142px;
width: 100%;
padding: 15px;
font-size: 15px;
resize: none;
border: 1px solid rgba(61, 60, 64, 0.16);
box-shadow: none;
margin-top: 24px;
color: #363A45; /* Black/05 */
}

.c-thermometer-modal__content textarea:focus {
border-color: #166DE0;
}

.c-thermometer-modal__footer {
display: flex;
justify-content: left;
padding-top: 20px;
}

.c-thermometer-modal__footer .btn {
background: #FFBC1F; /* Marigold/03 Core */
border-radius: 30px;
color: black;
font-size: 14px;
line-height: 1;
font-weight: bold;
padding: 15px 25px;
display: inline-block;
transition: all 0.3s ease;
}

@media (max-width: 420px) {
.c-thermometer-modal__container > div {
padding: unset;
}
.c-thermometer-modal__content {
border-radius: unset;
max-width: unset;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
}
/* Thermometer Modal Ends */

/* Thermometer Confirmation Popup */
.c-thermometer-popup {
position: fixed;
bottom: 2rem;
right: 2rem;
background: white;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 5px;
box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
padding: 25px;
text-align: center;
width: 280px;
background: white;
z-index: 9;
margin-right: 14px;
position: absolute;
bottom: 150px;
max-width: 350px;
z-index: 1000;
}

.c-thermometer-popup.show {
visibility: visible;
opacity: 1;
transition: opacity 500ms;
height: unset;
position: absolute;
bottom: 150px;
transform: translateY(0);
transition: all 0.3s ease;
}

.c-thermometer-popup.hide {
visibility: hidden;
opacity: 0;
transition: opacity 500ms;
height: 0;
position: absolute;
bottom: 0;
transform: translateY(20px);
transition: all 0.3s ease;
}

.c-thermometer-popup > svg {
width: 33px;
height: 29px;
margin-bottom: 11px;
flex-shrink: 0;
width: 24px;
height: 24px;
margin-right: 1rem;
}

.c-thermometer-popup__text {
display: flex;
flex-direction: column;
flex: 1;
}

.c-thermometer-popup__title {
font-weight: 700;
font-size: 18px;
line-height: 150%;
display: block;
font-weight: 600;
color: var(--center-channel-text);
margin-bottom: 0.25rem;
}

.c-thermometer-popup__message {
font-weight: 400;
font-size: 15px;
line-height: 150%;
display: block;
color: var(--center-channel-text-64);
font-size: 14px;
}



@media (max-width: 420px) {
.c-thermometer-popup {
flex-direction: row;
justify-content: unset;
align-items: center;
text-align: initial;
width: 90%;
padding: 24px;
position: absolute;
position: fixed;
bottom: 1rem;
left: 1rem;
right: 1rem;
max-width: none;
}

.c-thermometer-popup.show {
position: absolute;
bottom: 1rem;
transform: translateY(0);
}

.c-thermometer-popup.hide {
position: absolute;
bottom: 0;
transform: translateY(100%);
}

.c-thermometer-popup > svg {
width: 42px;
height: 37px;
margin-right: 24px;
width: 20px;
height: 20px;
}
}
/* Thermometer Confirmation Popup Ends */
Loading
Loading