|
233 | 233 | }
|
234 | 234 | }
|
235 | 235 |
|
| 236 | +// .alert-inline |
| 237 | + |
| 238 | +.alert-inline.alert { |
| 239 | + @include clay-css($alert-inline); |
| 240 | + |
| 241 | + &.alert-dismissible { |
| 242 | + $alert-dismissible: setter( |
| 243 | + map-get($alert-inline, alert-dismissible), |
| 244 | + () |
| 245 | + ); |
| 246 | + |
| 247 | + @include clay-css($alert-dismissible); |
| 248 | + |
| 249 | + &.alert-fluid { |
| 250 | + $alert-dismissible-alert-fluid: setter( |
| 251 | + map-get($alert-inline, alert-dismissible-alert-fluid), |
| 252 | + () |
| 253 | + ); |
| 254 | + |
| 255 | + @include clay-css($alert-dismissible-alert-fluid); |
| 256 | + |
| 257 | + > .container, |
| 258 | + > .container-fluid { |
| 259 | + $container-fluid: setter( |
| 260 | + map-get($alert-dismissible-alert-fluid, container-fluid), |
| 261 | + () |
| 262 | + ); |
| 263 | + |
| 264 | + @include clay-css($container-fluid); |
| 265 | + |
| 266 | + > .alert-autofit-row { |
| 267 | + $alert-autofit-row: setter( |
| 268 | + map-get($container-fluid, alert-autofit-row), |
| 269 | + map-get($alert-inline, alert-autofit-row), |
| 270 | + () |
| 271 | + ); |
| 272 | + |
| 273 | + @include clay-css($alert-autofit-row); |
| 274 | + } |
| 275 | + } |
| 276 | + } |
| 277 | + } |
| 278 | + |
| 279 | + > .alert-autofit-row { |
| 280 | + $alert-autofit-row: setter( |
| 281 | + map-get($alert-inline, alert-autofit-row), |
| 282 | + () |
| 283 | + ); |
| 284 | + |
| 285 | + @include clay-css($alert-autofit-row); |
| 286 | + } |
| 287 | + |
| 288 | + .close { |
| 289 | + $close: setter(map-get($alert-inline, close), ()); |
| 290 | + |
| 291 | + @include clay-close($close); |
| 292 | + } |
| 293 | +} |
| 294 | + |
| 295 | +// Alert Autofit Stacked |
| 296 | + |
| 297 | +.alert-autofit-stacked.alert { |
| 298 | + @include clay-css($alert-autofit-stacked); |
| 299 | + |
| 300 | + > .alert-autofit-row { |
| 301 | + $alert-autofit-row: setter( |
| 302 | + map-get($alert-autofit-stacked, alert-autofit-row), |
| 303 | + () |
| 304 | + ); |
| 305 | + |
| 306 | + @include clay-css($alert-autofit-row); |
| 307 | + |
| 308 | + > .autofit-col { |
| 309 | + $autofit-col: setter(map-get($alert-autofit-row, autofit-col), ()); |
| 310 | + |
| 311 | + @include clay-css($autofit-col); |
| 312 | + } |
| 313 | + |
| 314 | + .btn-group { |
| 315 | + $btn-group: setter(map-get($alert-autofit-row, btn-group), ()); |
| 316 | + |
| 317 | + @include clay-css($btn-group); |
| 318 | + } |
| 319 | + } |
| 320 | + |
| 321 | + .close { |
| 322 | + $close: setter(map-get($alert-autofit-stacked, close), ()); |
| 323 | + |
| 324 | + @include clay-close($close); |
| 325 | + } |
| 326 | +} |
| 327 | + |
| 328 | +// Alert Autofit Stacked Sm Down |
| 329 | + |
| 330 | +.alert-autofit-stacked-sm-down.alert { |
| 331 | + @include clay-css($alert-autofit-stacked-sm-down); |
| 332 | + |
| 333 | + > .alert-autofit-row { |
| 334 | + $alert-autofit-row: setter( |
| 335 | + map-get($alert-autofit-stacked-sm-down, alert-autofit-row), |
| 336 | + () |
| 337 | + ); |
| 338 | + |
| 339 | + @include media-breakpoint-down(sm) { |
| 340 | + @include clay-css($alert-autofit-row); |
| 341 | + } |
| 342 | + |
| 343 | + > .autofit-col { |
| 344 | + $autofit-col: setter(map-get($alert-autofit-row, autofit-col), ()); |
| 345 | + |
| 346 | + @include media-breakpoint-down(sm) { |
| 347 | + @include clay-css($autofit-col); |
| 348 | + } |
| 349 | + } |
| 350 | + |
| 351 | + .btn-group { |
| 352 | + $btn-group: setter(map-get($alert-autofit-row, btn-group), ()); |
| 353 | + |
| 354 | + @include media-breakpoint-down(sm) { |
| 355 | + @include clay-css($btn-group); |
| 356 | + } |
| 357 | + } |
| 358 | + } |
| 359 | + |
| 360 | + .close { |
| 361 | + $close: setter(map-get($alert-autofit-stacked-sm-down, close), ()); |
| 362 | + |
| 363 | + @include media-breakpoint-down(sm) { |
| 364 | + @include clay-css($close); |
| 365 | + } |
| 366 | + } |
| 367 | +} |
| 368 | + |
| 369 | +// Alert Autofit Stacked Xs Down |
| 370 | + |
| 371 | +.alert-autofit-stacked-xs-down.alert { |
| 372 | + @include clay-css($alert-autofit-stacked-xs-down); |
| 373 | + |
| 374 | + > .alert-autofit-row { |
| 375 | + $alert-autofit-row: setter( |
| 376 | + map-get($alert-autofit-stacked-xs-down, alert-autofit-row), |
| 377 | + () |
| 378 | + ); |
| 379 | + |
| 380 | + @include media-breakpoint-down(xs) { |
| 381 | + @include clay-css($alert-autofit-row); |
| 382 | + } |
| 383 | + |
| 384 | + > .autofit-col { |
| 385 | + $autofit-col: setter(map-get($alert-autofit-row, autofit-col), ()); |
| 386 | + |
| 387 | + @include media-breakpoint-down(xs) { |
| 388 | + @include clay-css($autofit-col); |
| 389 | + } |
| 390 | + } |
| 391 | + |
| 392 | + .btn-group { |
| 393 | + $btn-group: setter(map-get($alert-autofit-row, btn-group), ()); |
| 394 | + |
| 395 | + @include media-breakpoint-down(xs) { |
| 396 | + @include clay-css($btn-group); |
| 397 | + } |
| 398 | + } |
| 399 | + } |
| 400 | + |
| 401 | + .close { |
| 402 | + $close: setter(map-get($alert-autofit-stacked-xs-down, close), ()); |
| 403 | + |
| 404 | + @include media-breakpoint-down(xs) { |
| 405 | + @include clay-css($close); |
| 406 | + } |
| 407 | + } |
| 408 | +} |
| 409 | + |
| 410 | +// Alert Indicator Start |
| 411 | + |
| 412 | +.alert-indicator-start.alert { |
| 413 | + @include clay-css($alert-indicator-start); |
| 414 | + |
| 415 | + &.alert-fluid { |
| 416 | + $alert-fluid: setter(map-get($alert-indicator-start, alert-fluid), ()); |
| 417 | + |
| 418 | + @include clay-css($alert-fluid); |
| 419 | + |
| 420 | + > .container, |
| 421 | + > .container-fluid { |
| 422 | + $container-fluid: setter( |
| 423 | + map-get($alert-fluid, container-fluid), |
| 424 | + () |
| 425 | + ); |
| 426 | + |
| 427 | + @include clay-css($container-fluid); |
| 428 | + } |
| 429 | + } |
| 430 | + |
| 431 | + &.alert-feedback { |
| 432 | + $alert-feedback: setter( |
| 433 | + map-get($alert-indicator-start, alert-feedback), |
| 434 | + () |
| 435 | + ); |
| 436 | + |
| 437 | + @include clay-css($alert-feedback); |
| 438 | + } |
| 439 | + |
| 440 | + .alert-indicator { |
| 441 | + $alert-indicator: setter( |
| 442 | + map-get($alert-indicator-start, alert-indicator), |
| 443 | + () |
| 444 | + ); |
| 445 | + |
| 446 | + @include clay-css($alert-indicator); |
| 447 | + |
| 448 | + + .lead { |
| 449 | + $lead: setter(map-get($alert-indicator, lead), ()); |
| 450 | + |
| 451 | + @include clay-css($lead); |
| 452 | + } |
| 453 | + } |
| 454 | + |
| 455 | + .alert-autofit-row { |
| 456 | + $alert-autofit-row: setter( |
| 457 | + map-get($alert-indicator-start, alert-autofit-row), |
| 458 | + () |
| 459 | + ); |
| 460 | + |
| 461 | + @include clay-css($alert-autofit-row); |
| 462 | + |
| 463 | + .alert-indicator:only-child { |
| 464 | + $alert-indicator-only-child: setter( |
| 465 | + map-get($alert-autofit-row, alert-indicator-only-child), |
| 466 | + () |
| 467 | + ); |
| 468 | + |
| 469 | + @include clay-css($alert-indicator-only-child); |
| 470 | + } |
| 471 | + } |
| 472 | +} |
| 473 | + |
236 | 474 | // Alert Variants
|
237 | 475 |
|
238 | 476 | @each $color, $value in $alert-palette {
|
|
0 commit comments