File size: 1,224 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Apply partial dependencies styles from Calypso (calypso/assets/stylesheets/style.scss) to Odyssey Stats Widgets.

// External Dependencies
@import "calypso/assets/stylesheets/vendor";
// Color Schemes
@import "@automattic/calypso-color-schemes/src/calypso-color-schemes-root";
@import "./variables";
@import "calypso/my-sites/stats/modernized-tooltip-styles";

@mixin stats-widget-single-column-view {

	// Full width Segmented Control.
	.stats-widget-content .segmented-control {
		width: 100%;
	}

	// Smaller padding.
	.stats-widget-wrapper {
		padding: 24px 16px;
	}

	.stats-widget-highlights {
		// Show highlights tabs.
		.stats-widget-highlights__tabs {
			display: block;
		}

		// Single column layout.
		.stats-widget-highlights__body {
			grid-template-columns: none;
		}

		// Only show one of the chosen highlights.
		.stats-widget-highlights__column {
			display: none;

			&.stats-widget-highlights__column--show-in-mobile {
				display: block;
				width: 100%;

				.stats-widget-highlights-card__title {
					display: none;
				}
			}
		}

	}

	// Single column layout for module cards.
	.stats-widget-modules {
		grid-template-columns: auto;
		grid-template-rows: repeat(2, 1fr);
		row-gap: 24px;
	}
}