Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a .tiny modal size #5123

Merged
merged 1 commit into from
Apr 10, 2017
Merged
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
37 changes: 37 additions & 0 deletions src/definitions/modules/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,43 @@
font-size: @medium;
}

/* Tiny */
.ui.tiny.modal > .header:not(.ui) {
font-size: @tinyHeaderSize;
}

/* Tiny Modal Width */
@media only screen and (max-width : @largestMobileScreen) {
.ui.tiny.modal {
width: @tinyMobileWidth;
margin: @tinyMobileMargin;
}
}
@media only screen and (min-width : @tabletBreakpoint) {
.ui.tiny.modal {
width: @tinyTabletWidth;
margin: @tinyTabletMargin;
}
}
@media only screen and (min-width : @computerBreakpoint) {
.ui.tiny.modal {
width: @tinyComputerWidth;
margin: @tinyComputerMargin;
}
}
@media only screen and (min-width : @largeMonitorBreakpoint) {
.ui.tiny.modal {
width: @tinyLargeMonitorWidth;
margin: @tinyLargeMonitorMargin;
}
}
@media only screen and (min-width : @widescreenMonitorBreakpoint) {
.ui.tiny.modal {
width: @tinyWidescreenMonitorWidth;
margin: @tinyWidescreenMonitorMargin;
}
}

/* Small */
.ui.small.modal > .header:not(.ui) {
font-size: @smallHeaderSize;
Expand Down
14 changes: 14 additions & 0 deletions src/themes/default/modules/modal.variables
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,24 @@
--------------------*/

/* Size Widths */
@tinyRatio: 0.4;
@smallRatio: 0.8;
@largeRatio: 1.2;

/* Derived Responsive Sizes */
@tinyHeaderSize: 1.3em;
@tinyMobileWidth: @mobileWidth;
@tinyTabletWidth: (@tabletWidth * @tinyRatio);
@tinyComputerWidth: (@computerWidth * @tinyRatio);
@tinyLargeMonitorWidth: (@largeMonitorWidth * @tinyRatio);
@tinyWidescreenMonitorWidth: (@widescreenMonitorWidth * @tinyRatio);

@tinyMobileMargin: 0em 0em 0em -(@tinyMobileWidth / 2);
@tinyTabletMargin: 0em 0em 0em -(@tinyTabletWidth / 2);
@tinyComputerMargin: 0em 0em 0em -(@tinyComputerWidth / 2);
@tinyLargeMonitorMargin: 0em 0em 0em -(@tinyLargeMonitorWidth / 2);
@tinyWidescreenMonitorMargin: 0em 0em 0em -(@tinyWidescreenMonitorWidth / 2);

@smallHeaderSize: 1.3em;
@smallMobileWidth: @mobileWidth;
@smallTabletWidth: (@tabletWidth * @smallRatio);
Expand Down